Skip to content

pocketmine\entity\ai\goal ​

Classes ​

NameKindSummary
AvoidEntityGoal 5.46.0classRuns away from nearby entities accepted by the filter (vanilla behavior
BreedGoal 5.46.0classWalks to another animal of the same kind in love and makes a baby with it (vanilla behavior
DropGiftForOwnerGoal 5.46.0classMorning gift of a cat which slept with its owner (vanilla behavior
EatGrassGoal 5.46.0classSheep eat the grass they stand on (vanilla behavior
FindMountGoal 5.46.0classA mob looks for something to ride within a radius, walks to it and gets on (vanilla behavior
FloatGoal 5.46.0classKeeps the mob afloat in water by swimming up (vanilla behavior
FollowOwnerGoal 5.46.0classFollows the owner (or another leader given by the callback) when it gets farther than $startDistance, stopping at $stopDistance, and telepor
FollowParentGoal 5.46.0classBabies follow the nearest adult of their kind (vanilla behavior
FrogEatMobGoal 5.46.0classA frog eats its target (vanilla behavior
Goal 5.46.0classA behaviour of a mob (wander, panic, attack
GoalSelector 5.46.0classRuns a set of prioritised goals (lower number = more important), giving each control flag (move, look, jump, target) to at most one running
HurtByTargetGoal 5.46.0classTargets whoever hurt the mob (vanilla behavior
InvestigateLocationGoal 5.46.0classWalks to a suspicious location (vanilla behavior
LayEggGoal 5.46.0classA pregnant animal walks to a suitable block and lays its eggs there (vanilla behavior
LeapAtTargetGoal 5.46.0classPounces at the target when it's a few blocks away (vanilla behavior
LongJumpGoal 5.46.0classJumps up onto a high block (vanilla behavior
LookAtPlayerGoal 5.46.0classLooks at a nearby player for a few seconds (vanilla behavior
MeleeAttackGoal 5.46.0classChases the attack target and hits it when in reach (vanilla behavior
MountPathingGoal 5.46.0classA ridden mob walks towards the attack target of its rider (vanilla behavior
NearestAttackableEntityGoal 5.46.0classTargets the nearest living entity in range accepted by the filter (vanilla behavior
NearestAttackableTargetGoal 5.46.0classTargets the nearest survival/adventure player in range (vanilla behavior
OwnerHurtByTargetGoal 5.46.0classA tamed animal attacks whoever hurt its owner (vanilla behavior
PanicGoal 5.46.0classRuns away at a higher speed after being hurt or while burning (vanilla behavior
PetSleepWithOwnerGoal 5.46.0classA tamed cat goes to sleep on the bed its owner is sleeping in (vanilla behavior
RandomLookAroundGoal 5.46.0classLooks in a random direction for a moment while idle (vanilla behavior
RandomStrollGoal 5.46.0classWalks to a random spot nearby from time to time (vanilla behavior
RangedAttackGoal 5.46.0classKeeps the target at range, strafing around it, and shoots it at a fixed interval (vanilla behavior
SitOnBlockGoal 5.46.0classTamed cats like to sit on chests, lit furnaces and the foot of beds (vanilla behavior
SitWhenOrderedGoal 5.46.0classA tamed animal ordered to sit stays where it is (vanilla behavior
SwellGoal 5.46.0classCreepers start their fuse when their target comes within 2
TemptGoal 5.46.0classFollows a player holding a food item the mob likes (vanilla behavior

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