View difference between Paste ID: kQsXAEvK and LVZtxGa4
SHOW: | | - or go back to the newest paste.
1
Site with all attributes: http://minecraft.gamepedia.com/Attribute
2
3-
val attributeItem = <minecraft:dirt>.withTag({AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:5.0,AttributeName:generic.movementSpeed,Name:Speed}]});
3+
val attributeItem = <minecraft:dirt>.withTag({AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:5.0,AttributeName:"generic.movementSpeed",Name:"Speed"}]});
4
5
Operation: 0 is additive, 1 is multiplicitive. For the speed dirt example, 0 adds five to the speed, but 1 multplies the speed by five.
6
UUIDLeast/most: ignore. Not important unless you're using modifiers. Which you shouldn't for individual powerful items.
7
Amount: The amount of attribute added.
8
AttributeName: the name of the attribute being added, based on the wiki.
9
Name: name of the attribute.
10
11-
NOTE: If using the item as an ingredient, you need to use .onlyWithTag along with .withTag.
11+
NOTE: If using the item as an ingredient, you need to use .onlyWithTag along with .withTag.
12
Also note: the quotes around the attribute and the name are neccesary. You will get an error without them.