Skip to content

SkeletonHorse 5.46.0 ​

class · pocketmine\entity\animal\SkeletonHorse · source

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 ​

php
public const TAG_TRAP = "SkeletonTrap"

TAG_TRAP_TIME ​

php
public const TAG_TRAP_TIME = "SkeletonTrapTime"

TRAP_HORSEMEN ​

php
public const TRAP_HORSEMEN = 4

TRAP_LIFETIME ​

php
public const TRAP_LIFETIME = 18000

TRAP_RADIUS ​

php
public const TRAP_RADIUS = 10.0

Methods ​

canBeRiddenBy() ​

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

canBreathe() ​

php
public function canBreathe() : bool

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

getName() ​

php
public function getName() : string

getNetworkTypeId() ​

php
public static function getNetworkTypeId() : string

initEntity() protected ​

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

isBreedingItem() ​

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

isTameable() ​

php
public function isTameable() : bool

isTemptItem() protected ​

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

isTrap() ​

php
public function isTrap() : bool

Whether this is a skeleton trap waiting for a player.

randomStats() protected ​

php
protected function randomStats() : array

saveNBT() ​

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

setTrap() ​

php
public function setTrap(bool $trap) : void

springTrap() ​

php
public function springTrap() : void

Sets 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.

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