item modify entity @s[gamemode=!creative] weapon.mainhand nucleus:reduce_count/1
execute if predicate nucleus:entity/full_inventory if data entity @s SelectedItem run loot spawn ~ ~ ~ loot manic:technical/items/netherite_ingot
execute unless predicate nucleus:entity/full_inventory if data entity @s SelectedItem run loot give @s loot manic:technical/items/netherite_ingot
execute unless data entity @s SelectedItem run loot replace entity @s weapon.mainhand loot manic:technical/items/netherite_ingot
