NoNetheriteArmor/data/nonetherite/functions/tick.mcfunction
SeaswimmerTheFsh 4a19e5053a
All checks were successful
Upload .zip file / Upload .zip file (push) Successful in 5s
fixed workflow only grabbing the readme
2024-03-22 18:18:00 -04:00

17 lines
1.1 KiB
Mcfunction

#armor
execute as @a[nbt={Inventory:[{id:"minecraft:netherite_helmet"}]}] run give @s diamond_helmet 1
execute as @a[nbt={Inventory:[{id:"minecraft:netherite_chestplate"}]}] run give @s diamond_chestplate 1
execute as @a[nbt={Inventory:[{id:"minecraft:netherite_leggings"}]}] run give @s diamond_leggings 1
execute as @a[nbt={Inventory:[{id:"minecraft:netherite_boots"}]}] run give @s diamond_boots 1
#refund netherite ingot
execute as @a[nbt={Inventory:[{id:"minecraft:netherite_helmet"}]}] run give @s netherite_ingot 1
execute as @a[nbt={Inventory:[{id:"minecraft:netherite_chestplate"}]}] run give @s netherite_ingot 1
execute as @a[nbt={Inventory:[{id:"minecraft:netherite_leggings"}]}] run give @s netherite_ingot 1
execute as @a[nbt={Inventory:[{id:"minecraft:netherite_boots"}]}] run give @s netherite_ingot 1
#clear everything
clear @a[nbt={Inventory:[{id:"minecraft:netherite_helmet"}]}] netherite_helmet 1
clear @a[nbt={Inventory:[{id:"minecraft:netherite_chestplate"}]}] netherite_chestplate 1
clear @a[nbt={Inventory:[{id:"minecraft:netherite_leggings"}]}] netherite_leggings 1
clear @a[nbt={Inventory:[{id:"minecraft:netherite_boots"}]}] netherite_boots 1