
# -> Detect special material

# -> Copper fragments
execute if items entity @s weapon.mainhand *[custom_data~{IsCopperFragments:1b}] run \
    return 1

# -> Iron fragments
execute if items entity @s weapon.mainhand *[custom_data~{IsIronFragments:1b}] run \
    return 1

# -> Gold fragments
execute if items entity @s weapon.mainhand *[custom_data~{IsGoldFragments:1b}] run \
    return 1
