
# -> Get user's item
execute on target run \
    item replace entity 00000001-0000-002b-0000-00010000002b contents from entity @s weapon.mainhand

# -> If player is not using a pickaxe then return
execute unless items entity 00000001-0000-002b-0000-00010000002b contents *[custom_data~{or_tool_type:"pickaxe"}] run \
    return fail

# -> If heated bloom already has an indicator then return
execute if entity @s[tag=OverlyRealistic.Block.HeatedBloom_HasIndicator] run \
    return fail

# -> Add indicator tag
tag @s add OverlyRealistic.Block.HeatedBloom_HasIndicator

# -> Create indicator
execute at @s run \
    summon interaction ~ ~0.2 ~ {Tags:["OverlyRealistic.Block.HeatedBloomIndicator"],data:{or_is_custom_block:1b,or_custom_block_id:"heated_bloom_indicator"},response:1b,width:0.2f,height:0.03f,Passengers:[{id:"item_display",interpolation_duration: 10, item: {components: {"minecraft:item_model": "overlyrealistic:blocks/interaction_indicators/interaction_indicator_0"}, count: 1, id: "minecraft:dirt"}, transformation: {left_rotation: [0.0f, 0.0f, 0.0f, 1.0f], right_rotation: [0.0f, 0.0f, 0.0f, 1.0f], scale: [0.25f, 0.25f, 0.25f], translation: [0.0f, 0.1f, 0.0f]}}]}
