Skip to content

Spider 5.46.0 ​

class · pocketmine\entity\monster\Spider · source

Extends Monster

Bedrock values: 16 health, movement 0.3, 1.4x0.9, attack 2, climbs walls, leaps at its target. Neutral in bright places (light 12 or more, vanilla brightness > 0.49) unless attacked. Carries a skeleton (spider jockey, see \pocketmine\entity\riding\Jockeys) or a baby zombie, and walks to its rider's target (vanilla behavior.mount_pathing). Loot: 0-2 string, and 0-1 spider eye when killed by a player, +0-1 each per Looting level.

Constants ​

ATTACK_DAMAGE ​

php
public const ATTACK_DAMAGE = 2.0

NEUTRAL_LIGHT ​

php
public const NEUTRAL_LIGHT = 12

Methods ​

calculateFallDamage() protected ​

php
protected function calculateFallDamage(float $fallDistance) : float

canBeRiddenBy() ​

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

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

getRideableSeats() ​

php
public function getRideableSeats() : array

initEntity() protected ​

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

isInBrightLight() ​

php
public function isInBrightLight() : bool

Spiders don't look for targets in bright places.

registerGoals() protected ​

php
protected function registerGoals() : 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.