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...
Nameequipment_drop_chance
ObjectEntityTag
InputMapTag
Related Tags<EntityTag.equipment_drop_chance> (Property) Returns the chance of each piece of equipment dropping when the entity dies. (...)
Description(Property) Sets the chance of each piece of equipment dropping when the entity dies.
A drop chance of 0 will prevent the item from dropping, a drop chance of 1 will always drop the item if killed by a player, and a drop chance of higher than 1 will always drop the item no matter what the entity was killed by.
A map of equipment slots to drop chances, with keys "head", "chest", "legs", "feet", "hand", and "off_hand".
Example
# Use to prevent a zombie from dropping any of its equipped items, no matter what:
- adjust <[zombie]> equipment_drop_chance:[head=0;chest=0;legs=0;feet=0;hand=0;off_hand=0]
GroupProperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityEquipmentDropChance.java#L12