Minecraft Blogs / Tutorial

Adding Attribute Modifiers to items using NBT Tags

  • 32,829 views, 2 today
  • 7
  • 4
  • 10
TheXsource's Avatar TheXsource
Level 44 : Master Warrior
13
In this short blog tutorial I will explain how to give items Attribute Modifiers.
Now if you don't know what these are, then they are basically attributes that will take effect when you wear or
hold the item with the attribute.
The following attributes are for the player and mobs.
generic.movementSpeed
generic.maxHealth
generic.attackDamage
generic.knockbackResistance
generic.followRange

The following are for Horses.
horse.jumpStrength

The following are for Zombies.
zombie.spawnReinforcements

Now here's an example on the command your going to use.

/give @p 301 1 0 {AttributeModifier:[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.5,Operation:0,UUIDLeast:8000,UUIDMost:4000}]}

If you used this command you will know that this will give you leather boots with a Speed attribute of 0.5

This is not very hard to do all you need to do is memorize on how to write the command.
The attributes listed above are all self-explanatory
If you still don't understand go to this link:http://www.planetminecraft.com/project/item-attribute-template-with-command/
This link will lead you to my Template world about this topic it will contain a item template and a command block template.
Tags

Create an account or sign in to comment.

billybobjr2019
06/08/2019 3:10 pm
Level 1 : New Miner
billybobjr2019's Avatar
I don't get it?
1
billybobjr2019
06/08/2019 3:10 pm
Level 1 : New Miner
billybobjr2019's Avatar
hi
1
El Scipio
06/27/2016 4:44 am
Level 22 : Expert Architect
El Scipio's Avatar
doesn't work for me, it just gives me leather boots with nothing on it
1
picmaster
04/13/2015 11:46 pm
Level 1 : New Miner
picmaster's Avatar
Wow thanks this helped me out a lot I was looking for someone who would give me the command and not the freaking mc edit filter!!
1
BorisVassilev
11/13/2017 9:26 am
Level 1 : New Miner
BorisVassilev's Avatar
and can i do something similar with jump boost??
1
InfectedPvP
08/12/2014 4:47 am
Level 1 : New Explorer
InfectedPvP's Avatar
its not working... im in 1.7.9 FYI
1
San The Panja
12/18/2013 5:44 pm
Level 37 : Artisan Narwhal
San The Panja's Avatar
The esample command don't work
1
TheXsource
12/18/2013 9:08 pm
Level 44 : Master Warrior
TheXsource's Avatar
did you use the comand block?
1
San The Panja
12/19/2013 5:50 pm
Level 37 : Artisan Narwhal
San The Panja's Avatar
Yes
1
JMOWw7
06/19/2014 3:26 pm
Level 2 : Apprentice Crafter
JMOWw7's Avatar
you are probably using a minecraft version that requires the new name rether than the number, such as "minecraft:iron_sword"
try replacing the 301 with the new id(google it), place it in a command block, and remove the slash for good measure.

Stay frosty
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome