mojira.dev
MC-186903

Command blocks wont spawn items with attributes

while experimenting with the /give command i was unable to give the player a item that had attributes attached to it, the first photo was the item generated in 1.15 and the second item has been generated in the latest snapshot 20w22a

here is the line of text put into the command block generated by a website because its messy but quick.

/give @p stone{AttributeModifiers:[{AttributeName:generic.maxHealth,Amount:20,Operation:0,UUIDLeast:151462100,UUIDMost:99,Name:generic.maxHealth},{AttributeName:generic.maxHealth,Amount:20,Operation:0,UUIDLeast:151462200,UUIDMost:99,Name:generic.maxHealth}]} 1
/give @p stone{AttributeModifiers:[{AttributeName:generic.maxHealth,Amount:20,Operation:0,UUIDLeast:151462100,UUIDMost:99,Name:generic.maxHealth},{AttributeName:generic.maxHealth,Amount:20,Operation:0,UUIDLeast:151462200,UUIDMost:99,Name:generic.maxHealth}]} 1

Attachments

Comments 3

Attribute names are changing for 1.16, see here: https://minecraft.gamepedia.com/Attribute

Please let us know if this fixes the issue.

Looks to have resolved the issue! big dumb on my behalf. Also amazing response time

No worries, and thank you 🙂

Nick

(Unassigned)

Unconfirmed

(Unassigned)

20w22a

Retrieved