Skip to content

Drowned 5.46.0 ​

class · pocketmine\entity\monster\Drowned · source

Extends Zombie

Bedrock values (drowned.json): 20 health, movement 0.23, attack 3, swims in water, burns in daylight, breathes underwater. 6.25% spawn with a trident and throw it (every 1-3 seconds, within 10 blocks) when the target is more than 3 blocks away; 3.75% hold a fishing rod and 8% a nautilus shell in the off hand (always dropped). Targets players in water or at night within 20 blocks. Loot: 0-2 rotten flesh (+0-1 per Looting level); 11% (+2% per Looting level) copper ingot when killed by a player.

Constants ​

SWIM_SPEED ​

php
public const SWIM_SPEED = 0.15

TRIDENT_RANGE ​

php
public const TRIDENT_RANGE = 10.0

Methods ​

burnsInDaylight() ​

php
public function burnsInDaylight() : bool

canBreathe() ​

php
public function canBreathe() : bool

canHunt() ​

php
public function canHunt(\pocketmine\player\Player $player) : bool

Drowned only go after players who are in water, or anyone at night.

destroyCycles() protected ​

php
protected function destroyCycles() : void

getDrops() ​

php
public function getDrops() : array

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getPickedItem() ​

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

getSwimControl() ​

php
public function getSwimControl() : \pocketmine\entity\ai\hostile\FreeMoveControl

getXpDropAmount() ​

php
public function getXpDropAmount() : int

hasTrident() ​

php
public function hasTrident() : bool

initEntity() protected ​

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

registerGoals() protected ​

php
protected function registerGoals() : void

saveNBT() ​

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

throwTrident() ​

php
public function throwTrident(\pocketmine\entity\Living $target, float $distance) : 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.