Denizen Script Mechanisms


Mechanisms are found in object properties, the 'adjust' command, and similar. These are used to change the state of an object.
Learn about how mechanisms work in The Beginner's Guide.


Showing 1 out of 625 mechanisms...
Namedistance_margin
ObjectNPCTag
InputElementTag(Decimal)
Related Tags<NPCTag.distance_margin> Returns the NPC's current pathfinding distance margin. That is, how close it needs to get to its destination (in block-lengths).
DescriptionSets the NPC's distance margin.
Generated Example
- adjust <npc> distance_margin:-1
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/NPCTag.java#L1904