
# -> If block is not in air then return and break
execute unless block ~ ~ ~ #air \
    unless block ~ ~ ~ #campfires[lit=false] run \
        return run \
            function overly_realistic:general/custom_blocks/fire_starter/fire_starter_break

# -> Sound
playsound block.wood.place block @a ~ ~ ~ 0.45 2

# -> Place interaction
summon interaction ~ ~ ~ {response:1b,Tags:["OverlyRealistic.Block.FireStarter","OverlyRealistic.Block.IsCustomBlock"],width:0.5f,height:1.0f,data:{interaction_call:"overly_realistic:general/custom_blocks/fire_starter/fire_starter_interaction",break_call:"overly_realistic:general/custom_blocks/fire_starter/fire_starter_broken_by_player"},Passengers:[{id:"item_display",Tags:["OverlyRealistic.Block.FireStarter_Part_0"],teleport_duration:2,item: {count: 1, id: "minecraft:stick",components:{item_model:"overlyrealistic:blocks/fire_starter/fire_starter_part_0"}}, transformation: {left_rotation: [0.0f, 0.0f, -0.38268346f, 0.9238795f], right_rotation: [0.0f, 0.0f, 0.0f, 1.0f], scale: [1.0f, 1.0f, 1.0f], translation: [0.050f, -0.65f, 0.0f]}},{id:"item_display",Tags:["OverlyRealistic.Block.FireStarter_Part_1"],teleport_duration:2,item: {count: 1, id: "minecraft:stick",components:{item_model:"overlyrealistic:blocks/fire_starter/fire_starter_part_1"}}, transformation: {left_rotation: [-0.65328145f, 0.27059823f, 0.27059823f, 0.65328145f], right_rotation: [0.0f, 0.0f, 0.0f, 1.0f], scale: [1.0f, 0.9999996f, 0.99999857f], translation: [0.0f, -1.230f, -0.05f]}}]}
