{"format_version":"1.16.100","minecraft:item":{"components":{"minecraft:allow_off_hand":true,"minecraft:can_destroy_in_creative":true,"minecraft:cooldown":{"category":"action_cooldown","duration":1},"minecraft:creative_category":{"parent":"itemGroup.name.shovel"},"minecraft:damage":1,"minecraft:display_name":{},"minecraft:durability":{"damage_chance":{"max":100,"min":60},"max_durability":0},"minecraft:enchantable":{"slot":"shovel","value":15},"minecraft:foil":false,"minecraft:hand_equipped":true,"minecraft:icon":{"texture":"item_flashlightoff"},"minecraft:max_stack_size":1,"minecraft:mining_speed":1,"minecraft:on_use":{"on_use":{"event":"on_use_event"}},"minecraft:render_offsets":{"main_hand":{"first_person":{"scale":[0.037999999999977205,0.037999999999977205,0.037999999999977205]},"third_person":{"scale":[0.1,0.1,0.1]}},"off_hand":{"first_person":{"scale":[0.037999999999977205,0.037999999999977205,0.037999999999977205]},"third_person":{"scale":[0.1,0.1,0.1]}}},"minecraft:repairable":{"repair_items":[{"items":["minecraft:emerald"],"repair_amount":10},{"items":["item:flashlightoff"],"repair_amount":"context.other->query.remaining_durability + 0.2 * context.other->query.max_durability"}]},"minecraft:weapon":{"on_hit_block":{"event":"hurt"},"on_hurt_entity":{"event":"hurt"},"on_not_hurt_entity":{"event":"hurt"}},"tag:minecraft:is_shovel":{}},"description":{"category":"equipment","identifier":"item:flashlightoff"},"events":{"hurt":{"damage":{"amount":1,"target":"self","type":"magic"}},"on_use_event":{"sequence":[{"run_command":{"command":["function flashlighton"],"target":"self"}},{"damage":{"amount":1,"target":"self","type":"magic"}}]}}}}