{"format_version":"1.16.100","minecraft:item":{"description":{"category":"equipment","identifier":"bbr:ruler"},"components":{"minecraft:icon":{"texture":"bbr_ruler"},"minecraft:max_stack_size":1,"minecraft:stacked_by_data":true,"minecraft:foil":false,"minecraft:hand_equipped":true,"minecraft:enchantable":{"value":10,"slot":"sword"},"minecraft:durability":{"max_durability":200},"minecraft:mining_speed":1,"minecraft:weapon":{"on_hurt_entity":{"event":"hurt"},"on_not_hurt_entity":{"event":"hurt"},"on_hit_block":{"event":"hurt"}},"minecraft:render_offsets":{"main_hand":{"third_person":{"scale":[0.1,0.1,0.1]},"first_person":{"scale":[0.037999999999977205,0.037999999999977205,0.037999999999977205]}},"off_hand":{"third_person":{"scale":[0.1,0.1,0.1]},"first_person":{"scale":[0.037999999999977205,0.037999999999977205,0.037999999999977205]}}},"minecraft:creative_category":{"parent":"itemGroup.name.sword"},"minecraft:repairable":{"repair_items":[{"items":["minecraft:stick"],"repair_amount":10},{"items":["bbr:ruler"],"repair_amount":"context.other->query.remaining_durability + 0.2 * context.other->query.max_durability"}]},"minecraft:damage":10,"minecraft:can_destroy_in_creative":false,"minecraft:display_name":{"value":"Ruler"},"tag:minecraft:is_sword":{},"tag:minecraft:transformable_items":{},"tag:minecraft:trimmable_armors":{},"minecraft:allow_off_hand":true},"events":{"on_use_event":{"sequence":[{"damage":{"type":"magic","amount":1,"target":"self"}}]},"hurt":{"damage":{"type":"magic","amount":1,"target":"self"}}}}}