#item durability change?
1 messages · Page 1 of 1 (latest)
its like i want to made a zombie drops an sword with random durability left like 7..10 with an custom tag and if i pick this sword up a function checkt my inventory and merges the durability together so like my normal swort has 20 durability left and the drop sword is 7 then it combines and the remain durability is 27
nvm got it with
/execute store result block 10 101 -493 Items[0].components.minecraft:damage int 1 run scoreboard players get rng rng