Skip to content
JasperLorelai edited this page Apr 23, 2026 · 5 revisions

Source Code

spell-class: ".targeted.MobGoalEditSpell"

Warning

Introduced in 4.0 Beta 14.

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%"

Clone this wiki locally