ElderGuardian 5.46.0
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 = 60CURSE_AMPLIFIER
php
public const CURSE_AMPLIFIER = 2CURSE_INTERVAL
php
public const CURSE_INTERVAL = 1200CURSE_RANGE
php
public const CURSE_RANGE = 50CURSE_TICKS
php
public const CURSE_TICKS = 6000Methods
curseNearbyPlayers()
php
public function curseNearbyPlayers() : arrayGives 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) : boolgetAttackDuration()
php
public function getAttackDuration() : intgetDrops()
php
public function getDrops() : arraygetInitialSizeInfo() protected
php
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetName()
php
public function getName() : stringgetNetworkTypeId()
php
public static function getNetworkTypeId() : stringgetPickedItem()
php
public function getPickedItem() : ?\pocketmine\item\ItemgetSwimSpeed() protected
php
protected function getSwimSpeed() : floatinitEntity() protected
php
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisElder()
php
public function isElder() : bool