Skip to content

MoveOutdoorsGoal 5.47.0 ​

class · pocketmine\entity\ai\villager\MoveOutdoorsGoal · source

Extends VillagerGoal

Celebrating villagers go outdoors, where they can launch their fireworks (vanilla minecraft:celebrate behavior.move_outdoors: priority 2, speed 0.8, timeout_cooldown 8 s). Looks for a spot under the open sky among a few random spots around; tries again 8 seconds later if there was none or it couldn't get there.

Constants ​

SPEED ​

php
public const SPEED = 0.8

Methods ​

canContinue() ​

php
public function canContinue() : bool

canStart() ​

php
public function canStart() : bool

findSpot() protected ​

php
protected function findSpot(bool $outdoors) : ?\pocketmine\math\Vector3

Returns a random spot around where the villager can stand under the open sky ($outdoors) or under a roof.

getFlags() ​

php
public function getFlags() : int

start() ​

php
public function start() : void

stop() ​

php
public function stop() : void

VanillaMine is a fork of PocketMine-MP. Not affiliated with the PMMP team or Mojang.