#Attack damage for tool

1 messages · Page 1 of 1 (latest)

sullen spade
#

How can I set the attack damage for say a netherite pickaxe in preferably a variable but could also be in an event?

hazy island
#
    add nbt compound of "{AttributeModifiers:[{AttributeName:""generic.attack_damage"",Amount:2,Operation:0,Slot:mainhand,UUID:[I;-42031124,10338,124332,-21426],Name:""generic.attack_damage""}]}" to nbt compound of {_pickaxe}
    set {pickaxeTest} to {_pickaxe}```
lethal pivot
hazy island
sullen spade
#

Thanks

sullen spade
#

That works, but I can't find a way to do it for mining speed on pickaxes so I'll just go with enchanting them I guess

hazy island
#

give the item an enchant with hidden flag

sullen spade
#

I will

hazy island
#

this is what I usually do

sullen spade
#

Like this right?

#

add nbt compound of "{Enchantments:[{id:efficiency,lvl:2}],HideFlags:1}" to nbt compound of {pickaxe}

lethal pivot
sullen spade
#

Ok

hazy island
#

easier way with hidden enchants flag

#

I love SkBee makes everything easier

sullen spade
#

Right, but how can I format it with enchantment, name, lore and hidden flags in one line?

hazy island
#

Here is an example:
set {_sword} to trident of Riptide 1 named "&9&lDrowned trident" with lore "&7RARE" with hidden enchants flag

north karma
#

Damn you set a variable named sword to a trident

hazy island
dense prawn
#

add nbt compound of "{Size:20}" to nbt compound of last spawned slime
invalid line???