MobGoalEditSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".targeted.MobGoalEditSpell"

[!WARNING] Introduced in 4.0 Beta 14.

targeting cast argument values:

Value Supported
entity true
location false
entity_from_location false

Description:

Modifies Mob Goals of an entity.

Configuration:

  • You can find configuration info here.
  • Only remove-all supports dynamic values through string expressions.

Example:

follow_me:
    spell-class: ".targeted.MobGoalEditSpell"
    always-granted: true
    cast-item: stick
    add:
      - goal: path_to
        priority: 1
        data:
            position:
                x: "%var:meta_location_x%"
                y: "%var:meta_location_y%"
                z: "%var:meta_location_z%"