Skip to content

ElderGuardian 5.46.0 ​

class · pocketmine\entity\monster\ElderGuardian · source

Extends Guardian

Bedrock values (elder_guardian.json): 80 health, 1.99x1.99, movement 0.3, follow range 16, attack 5, laser charged in 60 ticks. Every minute it curses the survival players within 50 blocks: Mining Fatigue III for 5 minutes, with the elder guardian ghost (LevelEvent GUARDIAN_CURSE) and sound. Loot: 0-2 prismarine shards (+0-1 per Looting level); raw cod (3/6), prismarine crystals (2/6) or nothing (1/6); a wet sponge when killed by a player; 2.5% a fish; 20% a tide armor trim. Experience 10.

Constants ​

ATTACK_DURATION ​

php
public const ATTACK_DURATION = 60

CURSE_AMPLIFIER ​

php
public const CURSE_AMPLIFIER = 2

CURSE_INTERVAL ​

php
public const CURSE_INTERVAL = 1200

CURSE_RANGE ​

php
public const CURSE_RANGE = 50

CURSE_TICKS ​

php
public const CURSE_TICKS = 6000

Methods ​

curseNearbyPlayers() ​

php
public function curseNearbyPlayers() : array

Gives Mining Fatigue III to the survival players within 50 blocks that don't have it yet (or will lose it within a minute), showing them the elder guardian ghost. Returns the players cursed.

entityBaseTick() protected ​

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

getAttackDuration() ​

php
public function getAttackDuration() : int

getDrops() ​

php
public function getDrops() : array

getInitialSizeInfo() protected ​

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

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

getPickedItem() ​

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

getSwimSpeed() protected ​

php
protected function getSwimSpeed() : float

initEntity() protected ​

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

isElder() ​

php
public function isElder() : bool

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