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 632 mechanisms...
Nameloot_table_id
ObjectLocationTag
InputElementTag
Related Tags<LocationTag.loot_table_id> Returns an element indicating the minecraft key for the loot-table for the chest at this location (if any).
<LocationTag.has_loot_table> Returns an element indicating whether the chest at this location has a loot-table set.
DescriptionSets the loot table of a lootable container at this location.
This is the namespaced path of the loot table, provided by a datapack or Minecraft's default data.
Example
# Sets the chest's loot table to a bonus chest
- adjust <[location]> loot_table_id:chests/ancient_city
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L5204