Skip to content

ZombieNautilus 5.46.0 ​

class · pocketmine\entity\monster\ZombieNautilus · source

Extends AquaticMonster
Implements Angerable, MountInventoryHolder, Undead

Bedrock values (zombie_nautilus.json): 15 health, 0.875x0.95, swims (movement 0.15), attack 3, knockback resistance 0.3, undead, burns in daylight out of water unless it wears nautilus armor (protection_slot slot.armor.body). Neutral: when hurt it gets angry for 20 seconds and charges its attacker (behavior.aquatic_charge_attack, 4 seconds between charges). Spawned in warm (not deep) oceans it is the coral variant (actor property minecraft:variant). Loot: 0-3 rotten flesh (+0-1 per Looting level), and its equipment. Experience 1-3.

Wild ones carry a drowned (seat 0.925 up, 0.2 back; drowned riders spawn with it, see \pocketmine\entity\riding\Jockeys::spawnDrownedRider()) and swim it to its target (behavior.mount_pathing, 0.15 blocks per tick). Without a rider and while calm, pufferfish (or their buckets) tame it with a 1/3 chance; a tamed one never gets angry, is healed by fish, takes a saddle and nautilus armor and is ridden by players like a nautilus (see NautilusTrait).

Constants ​

ANGER_TICKS ​

php
public const ANGER_TICKS = 400

ATTACK_DAMAGE ​

php
public const ATTACK_DAMAGE = 3.0

CHARGE_COOLDOWN ​

php
public const CHARGE_COOLDOWN = 80

MOUNTED_SPEED ​

php
public const MOUNTED_SPEED = 0.15

Swimming speed with a drowned rider, in blocks per tick (zombie_nautilus_wild_mounted).

TAG_OWNER_UUID ​

php
public const TAG_OWNER_UUID = "OwnerUUID"

TAG_TAMED ​

php
public const TAG_TAMED = "IsTamed"

TAG_VARIANT ​

php
public const TAG_VARIANT = "Variant"

TAME_CHANCE ​

php
public const TAME_CHANCE = 1 / 3

VARIANT_CORAL ​

php
public const VARIANT_CORAL = "coral"

VARIANT_DEFAULT ​

php
public const VARIANT_DEFAULT = "default"

Methods ​

attack() ​

php
public function attack(\pocketmine\event\entity\EntityDamageEvent $source) : void

breathesAir() ​

php
public function breathesAir() : bool

burnsInDaylight() ​

php
public function burnsInDaylight() : bool

canBeRiddenBy() ​

php
public function canBeRiddenBy(\pocketmine\entity\Entity $entity) : bool

entityBaseTick() protected ​

php
protected function entityBaseTick(int $tickDiff = 1) : bool

getDrops() ​

php
public function getDrops() : array

getInitialSizeInfo() protected ​

php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfo

getItemInteractButtonText() protected ​

php
protected function getItemInteractButtonText(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : ?string

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getOwnerUuid() ​

php
public function getOwnerUuid() : ?\Ramsey\Uuid\UuidInterface

getPickedItem() ​

php
public function getPickedItem() : ?\pocketmine\item\Item

getRideableSeats() ​

php
public function getRideableSeats() : array

getXpDropAmount() ​

php
public function getXpDropAmount() : int

handleRiderInput() ​

php
public function handleRiderInput(\pocketmine\player\Player $rider, \pocketmine\entity\riding\RiderInput $input) : void

hasDrownedRider() ​

php
public function hasDrownedRider() : bool

Whether a drowned rides it (vanilla zombie_nautilus_wild_mounted): it can't be tamed then.

initEntity() protected ​

php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : void

isBaby() ​

php
public function isBaby() : bool

isCoral() ​

php
public function isCoral() : bool

isCoralSpawn() ​

php
public static function isCoralSpawn(\pocketmine\entity\Location $location) : bool

Whether a zombie nautilus spawned here is the coral variant (vanilla entity_spawned: warm, not deep, ocean).

isInWaterForRiding() ​

php
public function isInWaterForRiding() : bool

isTamed() ​

php
public function isTamed() : bool

onDeath() protected ​

php
protected function onDeath() : void

onDispose() protected ​

php
protected function onDispose() : void

onInteractWithItem() protected ​

php
protected function onInteractWithItem(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : bool

registerGoals() protected ​

php
protected function registerGoals() : void

saveNBT() ​

php
public function saveNBT() : \pocketmine\nbt\tag\CompoundTag

setCoral() ​

php
public function setCoral(bool $coral) : void

setOwner() ​

php
public function setOwner(?\pocketmine\player\Player $owner) : void

Tames it for the player (no chance roll), or makes it wild again (null). A tamed one forgets its anger.

stopSwimming() protected ​

php
protected function stopSwimming() : void

swimTowards() protected ​

php
protected function swimTowards(float $x, float $y, float $z, float $speed) : void

syncNetworkData() protected ​

php
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void

tryChangeMovement() protected ​

php
protected function tryChangeMovement() : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.