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 644 mechanisms...
Namepersistent
ObjectEntityTag
InputElementTag(Boolean)
Related Tags<EntityTag.is_persistent> Returns whether the mob-entity will not be removed completely when far away from players. (...)
DescriptionSets whether the mob-entity will not be removed completely when far away from players.
This is Bukkit's "setRemoveWhenFarAway" which is Mojang's "isPersistenceRequired".
In many cases, Mechanism:EntityTag.force_no_persist may be preferred.
The entity must be a mob-type entity.
Generated Example
- adjust <player> persistent:false
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/EntityTag.java#L3719