{"format_version":"1.16.100","minecraft:block":{"description":{"identifier":"loled:car_tool_box","properties":{"loled:face":[0,1,2,3],"loled:tool":[0,1,2,3]}},"components":{"minecraft:material_instances":{"*":{"texture":"tool_box","render_method":"alpha_test"}},"minecraft:pick_collision":{"origin":[-7,0,-5],"size":[14,15,10]},"minecraft:creative_category":{"group":"itemGroup.name.garage","category":"construction"},"minecraft:loot":"loot_tables/car/car_tool_box.json","minecraft:geometry":"geometry.tool_box","minecraft:destroy_time":2,"minecraft:block_light_absorption":0,"minecraft:unwalkable":true,"minecraft:entity_collision":{"origin":[-7,0,-5],"size":[14,15,10]},"minecraft:friction":0.6,"minecraft:map_color":"#00ff00","minecraft:flammable":{"flame_odds":0,"burn_odds":0},"minecraft:on_interact":{"event":"loled:toggle"},"minecraft:on_player_placing":{"event":"loled:face"}},"permutations":[{"condition":"query.block_property('loled:face') == 0","components":{"minecraft:rotation":[0,180,0]}},{"condition":"query.block_property('loled:face') == 1","components":{"minecraft:rotation":[0,0,0]}},{"condition":"query.block_property('loled:face') == 2","components":{"minecraft:rotation":[0,270,0]}},{"condition":"query.block_property('loled:face') == 3","components":{"minecraft:rotation":[0,90,0]}},{"condition":"query.block_property('loled:tool')==1","components":{"minecraft:geometry":"geometry.tool_box_1","minecraft:block_light_absorption":0,"minecraft:on_interact":{"event":"tool_1"},"minecraft:material_instances":{"*":{"texture":"tool_box","render_method":"alpha_test"}}}},{"condition":"query.block_property('loled:tool')==2","components":{"minecraft:geometry":"geometry.tool_box_2","minecraft:block_light_absorption":0,"minecraft:on_interact":{"event":"tool_2","condition":"query.get_equipped_item_name=='item_tool'"},"minecraft:material_instances":{"*":{"texture":"tool_box","render_method":"alpha_test"}}}},{"condition":"query.block_property('loled:tool')==3","components":{"minecraft:geometry":"geometry.tool_box_1","minecraft:block_light_absorption":0,"minecraft:on_interact":{"event":"tool_3","condition":"query.get_equipped_item_name=='item_hammer'"},"minecraft:material_instances":{"*":{"texture":"tool_box","render_method":"alpha_test"}}}}],"events":{"loled:face":{"set_block_property":{"loled:face":"query.cardinal_facing_2d-2"}},"loled:toggle":{"set_block_property":{"loled:tool":"query.block_property('loled:tool')+1"},"spawn_loot":{"table":"loot_tables/car/item_hammer.json"}},"tool_1":{"set_block_property":{"loled:tool":2},"spawn_loot":{"table":"loot_tables/car/item_tool.json"}},"tool_2":{"set_block_property":{"loled:tool":3},"decrement_stack":{}},"tool_3":{"set_block_property":{"loled:tool":0},"decrement_stack":{}}}}}