-
Bug
-
Resolution: Incomplete
-
None
-
1.16.210.59 Beta, 1.16.201 Hotfix
-
None
-
Unconfirmed
-
Multiple
When a player holds a custom item, he can turn on death drop. If he is killed by a monster, he will drop double of the custom item
Here is the JSON text
{
"format_version": "1.16.100",
"minecraft:item": {
"description": {
"identifier": "dofes:pan",
"category": "equipment"
},
"components": {
"minecraft:max_stack_size": 1,
"minecraft:damage": 10,
"minecraft:weapon": {
"on_hurt_entity": {
"event": "attack",
"target": "self"
}
},
"minecraft:enchantable": {
"value": 22,
"slot": "sword"
},
"minecraft:durability": {
"max_durability": 500
},
"minecraft:allow_off_hand": true,
"minecraft:hand_equipped": true,
"minecraft:creative_category": {
"parent": "itemGroup.name.sword"
},
"minecraft:can_destroy_in_creative": false,
"minecraft:icon": {
"texture": "pan"
},
"minecraft:render_offsets": "tools",
"minecraft:display_name": {
"value": "§4平底锅"
}
},
"events": {
"attack": {
"sequence": [
{
"damage": {
"type": "none",
"amount": 1
}
},
{
"randomize": [
{
"weight": 3,
"add_mob_effect": {
"effect": "weakness",
"target": "holder",
"duration": 3,
"amplifier": 2
}
},
{
"weight": 6,
"add_mob_effect": {
"effect": "blindness",
"target": "other",
"duration": 2,
"amplifier": 0
}
}
]
}
]
}
}
}
}