#how do i get the attack damage of a weapon?
1 messages · Page 1 of 1 (latest)
wdym
Retrieve nbt of the tool
this is the only nbt on the tool
i am holding a non edited sword
the tag "Damage" refers to the durability on the tool and not the actual attack damage
I have looked everywhere and either its way more complicated then what I can figure out or its not possible, Id just recommend creating a list of all base damages of items then wasting anymore time trying to find a solution
Send the full nbt of tool
doesnt result in obtaining the attack damage of the item
What does it send
Hm
dont think its possible using just skript, probably possible with sk-mirror but Im not advanced enough in that
Ye, we need to get the attributemodifier but skript only has it for entities
https://skripthub.net/docs/?id=4272
Aha
Try this
!send compound list tag "AttributeModifiers" of nbt compound of tool
this sends nothing
sorry for waiting 2 hours for testing it
there is no modifier as that is the base damage of the weapon.
AFAIK there is no way to do that, as it is built into minecraft code, and thus not editable
Dang
so i can't even see what the damage of a player's tool is?
or can i just not modify it?
I think damage event is your only bet
You can store the damage in the nbt of the weapon to use later ig
well, i suppose you could check what the tool is, but unless you want to hardcode values for each base tool, it might be better to do it on damage.
what do you need it for?