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

Crash when set_ominous_bottle_amplifier item modifier sets out-of-range amplifier

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20.5 Pre-Release 3
    • 24w13a, 1.20.5 Pre-Release 1
    • None
    • Confirmed
    • Crash
    • Normal
    • 1216329
    • Expansion B

      Summary
      This is yet another "item modifier setting invalid component causing crash" bug. Here, the new set_ominous_bottle_amplifier item modifier does not clamp or validate the amplifier, causing a crash.

      Steps to Reproduce

      1. Give yourself a stick.
      2. Run the following command:
        /item modify entity @s hotbar.0 {function:"set_ominous_bottle_amplifier",amplifier:10}
        
      3. Pause the game.

      Expected Result
      The game does not crash.

      Actual Result
      The game crashes.

            Unassigned Unassigned
            apple502j apple502j
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: