1

Attribute modifiers not working

AgilityDude's Avatar AgilityDude6/23/18 10:52 pm
1 emeralds 556 3
6/24/2018 10:01 pm
SUPERIONtheKnight's Avatar SUPERIONtheKnight
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's Avatar
AgilityDude
Level 1 : New Miner
0

Create an account or sign in to comment.

3

1
06/24/2018 9:03 pm
Level 1 : New Miner
AgilityDude
AgilityDude's Avatar
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
06/24/2018 10:01 pm
Level 29 : Expert Engineer
SUPERIONtheKnight
SUPERIONtheKnight's Avatar
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
2
06/24/2018 1:17 am
Level 29 : Expert Engineer
SUPERIONtheKnight
SUPERIONtheKnight's Avatar
/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
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome