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 555 mechanisms...
Related Tags<EntityTag.time_lived> Returns how long the entity has lived.
DescriptionSets the amount of time this entity has lived for.
For entities that automatically despawn such as dropped_items or falling_blocks, it can be useful to set this value to "-2147483648t" (the minimum valid number of ticks) to cause it to persist indefinitely.
For falling_block usage, see also Mechanism:EntityTag.auto_expire
Generated Example
- adjust <player> time_lived:1s
Synonyms (Search Aid)entitytag.age_nbt, entitytag.time_nbt