
# -> Set item
item replace entity @s contents from entity 00000001-0000-002b-0000-00010000002b contents

# -> Play sound
execute if items entity @s contents *[custom_data~{ToolPartMaterial: "stone"}] run \
    return run \
        playsound block.calcite.place block @a ~ ~ ~ 0.5 2
execute if items entity @s contents *[custom_data~{ToolPartMaterial: "copper"}] run \
    return run \
        playsound minecraft:block.spawner.place block @a ~ ~ ~ 0.5 1.8
execute if items entity @s contents *[custom_data~{ToolPartMaterial: "iron"}] run \
    return run \
        playsound minecraft:block.spawner.place block @a ~ ~ ~ 0.5 2
execute if items entity @s contents *[custom_data~{ToolPartMaterial: "gold"}] run \
    return run \
        playsound minecraft:block.spawner.place block @a ~ ~ ~ 0.5 1.8
