#Decerease vanilla item durability by 1
1 messages · Page 1 of 1 (latest)
Decerease vanilla item durability by 1
u can use simulated player to do that for u
hmm
how can i use simulated player without the structure
just dont use structure
bruh how
thats not helpful at all
ye
vanilla item durability is most of times controlled by data value
ibut if he knows how to summmon player with structure then its helpful, u can put null into the structure param
you can change that
rly? i got typeerr
i was able to, maybe try empty string
tried, same
it needs structure, there's no way to avoid it
i was able to
since when?
might've changed since then
it doesn't seem logical anyways to not to use structure to test...
although you can make a 1x1 empty structure and export it, that might work
🤔
still gonna leave out junks like command block, beacon, the iron base
might need temp area
is there way of empty structure via editing nbt?
idk, but a 1x1x1 structure with structure void in it is enough
what function can be used to damage item in simulated player anyway?
break block or useItem
get its inventory
get specific item stack
apply damage
and set the item stack to same slot of inventory
ya, vanilla items have no damage or durability component
so u must use simulated player to simulate use of the item 🥲
that, or use hasitem selector and find the durability from data
data dont works?
to get the durability, no
to set, idk
it's gonna be removed anyways, the recent 1.19.70 update removed the data property from itemstack
i just tried setting it with data and no luck
after setting did you applied item stack back to player
yes