Skip to content

VillageCatSpawner 5.46.0 ​

final class · pocketmine\world\mobs\VillageCatSpawner · source

Spawns stray cats in villages (Bedrock population "cat", https://minecraft.wiki/w/Cat#Spawning): a village wants one cat per 4 claimed beds, at most 5; every VillageCatSpawner::INTERVAL ticks, each village a player is in that has fewer cats inside its boundary tries to spawn one in the 17x13x17 blocks around its centre, a baby 25% of the time. Village cats don't despawn.

Constants ​

BABY_CHANCE ​

php
public const BABY_CHANCE = 25

BEDS_PER_CAT ​

php
public const BEDS_PER_CAT = 4

INTERVAL ​

php
public const INTERVAL = 1200

MAX_CATS ​

php
public const MAX_CATS = 5

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\World $world)

tick() ​

php
public function tick(int $currentTick) : void

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