Mojira Archive
MC-54584

Crash when creating an item with an AttributeModifier with an Operation of > 2

I was trying to figure out how to correctly do AttributeModifiers, but in the process I accidentally set Operation to 3, which isn't a valid Operation. Just having the item in my inventory caused the game to crash. I kept having to delete the item using NBTExplorer in order to load the world again without crashing. I eventually realized my mistake and set Operation to 1.

Here's the command I used:

/give @p beef 1 0 {AttributeModifiers:[{AttributeName:generic.attackDamage,Name:noDamage,Amount:-1d,Operation:3,UUIDMost:20l,UUIDLeast:10l}]}

Fixed

BoxFigs

2014-05-04, 09:40 PM

2015-09-07, 06:10 AM

2014-08-01, 01:17 AM

0

1

Unconfirmed

AttributeModifiers, attribute, crash, item, modifier, operation

Minecraft 1.7.9

Minecraft 14w31a