1

Attribute modifiers not working

AgilityDude 6/23/18 10:52 pm
656
6/24/2018 10:01 pm
I tried this command in a command block and it doesn't work:

/give @p diamond_axe 1 0 {AttributeModifiers:[{Slot:"mainhand",AttributeName:"generic.attackDamage",Amount:20,Operation:0,UUIDLeast:1,UUIDMost:1},{Slot:"mainhand",AttributeName:"generic.attackSpeed",Amount:0.5,Operation:0,UUIDLeast:1,UUIDMost:1}]}

It's supposed to give an attack speed lower than a wooden axe and 20 attack damage, but what it does instead is give me an axe that just says "Diamond Axe" without saying anything about attack speed and attack damage. I'm wondering how can I fix it.
Posted by
AgilityDude
Level 1 : New Miner
0

  Have something to say?

JoinSign in

3

AgilityDude
06/24/2018 9:03 pm
Level 1 : New Miner
Hello thanks for helping. The problem is that there is no attack speed anymore. It's like 1.8. It doesn't matter what I change the value of attack speed to.
1
SUPERIONtheKnight
06/24/2018 10:01 pm
Level 30 : Artisan System
Have you tried a negative number for the amount? I wouldn't use -4 or less as that seems to mess up things.
/give @p diamond_axe 1 0 {AttributeModifiers:[{Slot:"mainhand",AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:20,Operation:0,UUIDLeast:1,UUIDMost:1},{Slot:"mainhand",AttributeName:"generic.attackSpeed","Name":"generic.attackSpeed",Amount:-3.9,Operation:0,UUIDLeast:1,UUIDMost:2}]}
~SUPERIONtheKnight
1
SUPERIONtheKnight
06/24/2018 1:17 am
Level 30 : Artisan System
/give @p diamond_axe 1 0 {AttributeModifiers:[{Slot:"mainhand",AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:20,Operation:0,UUIDLeast:1,UUIDMost:1},{Slot:"mainhand",AttributeName:"generic.attackSpeed","Name":"generic.attackSpeed",Amount:0.5,Operation:0,UUIDLeast:1,UUIDMost:2}]}
~SUPERIONtheKnight
2

Welcome