Is there a way to make an item that has extra armor or armor toughness?

I wanted to make a pair of Elytra wings that you could get on my private server after going to a specific point that unlike all other elytra would actually give you armor points(which show up above your hearts) just like any armor piece. I have seen this done with other armor just not the commands themselves used to make these items. I also HAD done some research to ensure that there was a way to do it before I came here and I couldn't find one.

4

1 Answer

Try using attribute modifiers, they can be used to modify anything from health to attack speed to hunger to armor value. The command your looking for is like this:

/give @p elytra 1 0 {AttributeModifiers:[{AttributeName:"generic.armor",Name:"Test",Amount:6,Operation:0,UUIDLeast:1l,UUIDMost:1l,Slot:"chest"}]} 

Where it says Amount:6 that is how many half armor points it is so eight is the equivalent of a diamond chestplate.

You Might Also Like