Skip to content

Nautilus 5.46.0 ​

class · pocketmine\entity\aquatic\Nautilus · source

Extends TameableAnimal
Implements MountInventoryHolder

Bedrock values (entities/nautilus.json, 1.26.50): 15 health, 0.875x0.95 (babies 0.44x0.5), knockback resistance 0.3, swims (underwater speed 0.07 when not ridden), attacks whoever hurts it (3 damage). Wild adults are tempted by pufferfish (and their buckets), which tame them with a 1/3 chance; tamed ones and babies are tempted by every fish (or fish bucket, which gives back a water bucket), tamed ones panic when hurt, are healed by fish (2 to 12 health) and breed (only tamed ones). Tamed adults take a saddle and nautilus armor and are ridden underwater, see NautilusTrait. Loot (loot_tables/entities/nautilus.json): nautilus shell, 5% (+1% per Looting level), player kills only; and its equipment.

Constants ​

TAME_CHANCE ​

php
public const TAME_CHANCE = 1 / 3

Methods ​

canBeRiddenBy() ​

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

consumeFood() protected ​

php
protected function consumeFood(\pocketmine\player\Player $player, \pocketmine\item\Item $item) : void

createBaby() protected ​

php
protected function createBaby(\pocketmine\entity\animal\Animal $partner, \pocketmine\entity\Location $location) : \pocketmine\entity\animal\Animal

entityBaseTick() protected ​

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

getAdultDrops() protected ​

php
protected function getAdultDrops() : 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

getRideableSeats() ​

php
public function getRideableSeats() : array

getSwimSpeed() protected ​

php
protected function getSwimSpeed() : float

handleRiderInput() ​

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

initEntity() protected ​

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

isBreedingItem() ​

php
public function isBreedingItem(\pocketmine\item\Item $item) : bool

isInWaterForRiding() ​

php
public function isInWaterForRiding() : bool

isTemptItem() ​

php
public function isTemptItem(\pocketmine\item\Item $item) : bool

Wild adults only follow pufferfish, the others any fish.

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

setSitting() ​

php
public function setSitting(bool $sitting) : void

A nautilus never sits.

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

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