Damage
Determines the items that should still be dropped on death.
effects:
damage:
mode: "PERCENTAGE"
min: 10.0
max: 25.0 # Between 10% and 25%
dont_break: true
use_enchantments: true
filters:
items:
- "SHEARS"
- "G:RESOURCES"
slots:
- "ALL"
mode
mode: "PERCENTAGE"
SIMPLE: Damages for a random amount of durability points betweenminandmaxPERCENTAGE: Damages for a percentage of max durability betweenminandmaxfor the stackALL: Damages for a percentage of current durability betweenminandmaxfor the stack
min
min: 10.0
the minimum bounds for the operation
max
max: 10.0
the max bounds for the operation
dont_break
dont_break: true
If true, items will not be allowed to break from damage. Defaults to false.
use_enchantments
use_enchantments: true
If true, the item's enchantments (like Unbreaking) will be taken into account when applying damage. Defaults to false.
Filters:
filters:
items:
- "SHEARS"
- "G:RESOURCES"
slots:
- "ALL"
Allows you to make sure the effect only applies to certain items based on various criteria.
Filter options
Items
items:
- "SHEARS"
- "G:RESOURCES"
A list of slots that are affected by this effect. Defaults to all slots.
Slots
slots:
- "ALL"
A list of slots that are affected by this effect. Defaults to all slots.
Name
name:
- '!Crate Key'
A String or list of strings for item names that the affected item must have. Supports ! to negate the filter.
Lore
name:
- 'Dropped on death'
A String or list of strings for item lore lines that the affected item must have. Supports ! to negate the filter.