Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-54584

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

    XMLWordPrintable

    Details

    • Confirmation Status:
      Unconfirmed

      Description

      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}]}

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            BoxFigs BoxFigs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: