#item durability change?

1 messages · Page 1 of 1 (latest)

bronze bear
#

is it possible to combine the durability of an item with an scoreboard so that i made an rng score an add them with the durability and both gives a summ and thats the new durability

south fulcrumBOT
#

-# (helpers summoned) <@&1166082198152159386> <@&1202694677766348840>

weak whale
#

maybe with loot tables

#

It depends on what exactly you want to do

bronze bear
#

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

bronze bear
#

nvm got it with
/execute store result block 10 101 -493 Items[0].components.minecraft:damage int 1 run scoreboard players get rng rng