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...
Nameloot_table_id
ObjectEntityTag
InputElementTag
Related Tags<EntityTag.loot_table_id> Returns an element indicating the minecraft key for the loot-table for the entity (if any).
DescriptionSets the loot table of a lootable entity.
This is the namespaced path of the loot table, provided by a datapack or Minecraft's default data.
Example
# Sets the nearest zombie's loot table to a phantom's
- adjust <player.location.find_entities[zombie].within[5].first> loot_table_id:entities/phantom
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/EntityTag.java#L4480