Denizen Script Tags


Tags are always written with a <between these marks>, and are critical to scripts, as the primary way to read data.
Learn about how tags work in The Beginner's Guide.


Showing 1 out of 2451 tags...
Name<EntityTag.equipment_drop_chance>
ReturnsMapTag
MechanismEntityTag.equipment_drop_chance
Description(Property) Returns 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 narrate the drop chances of a zombie's equipment:
- narrate <[zombie].equipment_drop_chance>
GroupProperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityEquipmentDropChance.java#L12