Denizen Script Tags


Tags are always written with a <between these marks>, and are critical to scripts, as the primary way to read data.
Learn about how tags work in The Beginner's Guide.


Showing 1 out of 2407 tags...
Name<EntityTag.target_goals>
ReturnsMapTag
MechanismEntityTag.add_target_goal
DescriptionReturns the target goals that were added to a mob by Mechanism:EntityTag.add_target_goal, as a map of goal ID to a map of its settings:
"matcher", "priority", "range" and "must_see", plus "target" (the entity being chased) while the goal is the one driving the mob's current target.
Vanilla goals are not included. Returns an empty map for a mob with no such goals.
Generated Example
- foreach <player.target_goals> key:key as:val:
    - narrate "<[key]> is set as <[val]>"
Grouppaper
RequiresPaper
Sourcehttps://github.com/MINEZ/Denizen/blob/dev/paper/src/main/java/com/denizenscript/denizen/paper/properties/PaperEntityExtensions.java#L362