I am trying to call the Damage tag of an item in my selected hand, but cannot for the life of me figure out how to do it!
If there needs to be a work around in place for this I would be entirely happy to use it.
Arqade is a question and answer site for passionate videogamers on all platforms. It only takes a minute to sign up.Sign up to join this community
An example code:
/scoreboard objectives add damage dummy
/execute as @a store result score @s damage run data get entity @s SelectedItem.tag.Damage
this stores for each player the damage of the item in his hand in the scoreboard