#how do i get the attack damage of a weapon?

1 messages · Page 1 of 1 (latest)

sage sonnet
signal river
#

wdym

minor gull
#

ye

#

wdym

errant moon
#

Retrieve nbt of the tool

sage sonnet
#

i am holding a non edited sword

#

the tag "Damage" refers to the durability on the tool and not the actual attack damage

vale shoal
#

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

umbral heron
vale shoal
#

doesnt result in obtaining the attack damage of the item

umbral heron
#

What does it send

sage sonnet
#

i just got back home

#

one sec

umbral heron
#

It should be an item attribute

#

Something like generic.attackDamage

vale shoal
#

the result of full nbt and nbt

umbral heron
#

Hm

vale shoal
#

dont think its possible using just skript, probably possible with sk-mirror but Im not advanced enough in that

umbral heron
#

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

sage sonnet
#

sorry for waiting 2 hours for testing it

upbeat sluice
#

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

umbral heron
#

Dang

sage sonnet
#

or can i just not modify it?

umbral heron
#

I think damage event is your only bet

#

You can store the damage in the nbt of the weapon to use later ig

upbeat sluice