SkeletonHorse 5.46.0
Extends AbstractHorse
Implements Undead
Bedrock values (entities/skeleton_horse.json): 15 health, movement 0.2, 1.4x1.6, breathes under water. Passive. Needs no taming: it can be ridden right away (by players, skeletons and zombies) and steered once saddled. Can't breed. Skeleton trap: a natural lightning strike may spawn a trap horse instead (see \pocketmine\world\weather\Weather). When a player comes within 10 blocks, a visual lightning bolt strikes and the trap turns into four skeleton horsemen (this horse and three more, each ridden by a skeleton with an iron helmet). An untriggered trap disappears after 15 minutes. Loot (loot_tables/entities/skeleton_horse.json): 0-2 bones (+0-1 per Looting level); XP 1-3.
Constants
TAG_TRAP
public const TAG_TRAP = "SkeletonTrap"TAG_TRAP_TIME
public const TAG_TRAP_TIME = "SkeletonTrapTime"TRAP_HORSEMEN
public const TRAP_HORSEMEN = 4TRAP_LIFETIME
public const TRAP_LIFETIME = 18000TRAP_RADIUS
public const TRAP_RADIUS = 10.0Methods
canBeRiddenBy()
public function canBeRiddenBy(\pocketmine\entity\Entity $entity) : boolcanBreathe()
public function canBreathe() : boolcreateBaby() protected
protected function createBaby(\pocketmine\entity\animal\Animal $partner, \pocketmine\entity\Location $location) : \pocketmine\entity\animal\AnimalentityBaseTick() protected
protected function entityBaseTick(int $tickDiff = 1) : boolgetAdultDrops() protected
protected function getAdultDrops() : arraygetInitialSizeInfo() protected
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetName()
public function getName() : stringgetNetworkTypeId()
public static function getNetworkTypeId() : stringinitEntity() protected
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisBreedingItem()
public function isBreedingItem(\pocketmine\item\Item $item) : boolisTameable()
public function isTameable() : boolisTemptItem() protected
protected function isTemptItem(\pocketmine\item\Item $item) : boolisTrap()
public function isTrap() : boolWhether this is a skeleton trap waiting for a player.
randomStats() protected
protected function randomStats() : arraysaveNBT()
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsetTrap()
public function setTrap(bool $trap) : voidspringTrap()
public function springTrap() : voidSets off the skeleton trap (vanilla SkeletonTrapGoal): a visual lightning bolt, then this horse and three more appear ridden by skeletons with iron helmets, the new ones pushed away a little.
