MoveOutdoorsGoal 5.47.0
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.8Methods
canContinue()
php
public function canContinue() : boolcanStart()
php
public function canStart() : boolfindSpot() protected
php
protected function findSpot(bool $outdoors) : ?\pocketmine\math\Vector3Returns a random spot around where the villager can stand under the open sky ($outdoors) or under a roof.
getFlags()
php
public function getFlags() : intstart()
php
public function start() : voidstop()
php
public function stop() : void