1
Attribute modifiers not working
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.
/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.
Create an account or sign in to comment.
3
1
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
Have you tried a negative number for the amount? I wouldn't use -4 or less as that seems to mess up things.
~SUPERIONtheKnight
/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
2
/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