AIGoal

goToSpawnLocation

since v4.8

Path to the mob's spawn location

Aliases

goToSpawn

Examples & Notes

Goal: goToSpawnLocation

Aliases: goToSpawn

Makes the mob travel to its original spawn location.

Examples

This zombie will try to melee attack its target until it is more than 20 blocks from its spawn location, then will turn around and walk back to where it spawned.

ExampleMob:
  Type: ZOMBIE
  AIGoalSelectors:
    - clear
    - goToSpawn{speed=1;max=20;min=4}
    - meleeattack

Universal AI Goal Options

Generated from @Mythic* annotations in the MythicMobs source.