Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-184732

Combining 2 items with negative durability results in an invisible item that can cause the game to crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.2 Hotfix, 1.21.40.23 Preview, 1.21.31 Hotfix
    • None
    • Confirmed
    • Multiple
    • 1274496

      Steps to reproduce:

      1. Run /give @s golden_leggings 2 16500. This should result in you obtaining 2 pieces of golden armor with negative durability
      2. Combine the 2 pieces of armor in the crafting table
      3. Shift click the resulting item into your leggings slot (on Windows)/Unequip the item from your leggings slot (on Android)

      Observed result:
      Upon combining the 2 pieces of armor, you receive an invisible piece of armor. Shift clicking/unequipping the item results in a game crash.

      Expected result:
      You receive a visible piece of armor that does not crash the game.

      Original description:
      As the name of the post implies, upon combining two negative durability items that are low enough to underflow, (a.k.a if the durability of the combination of items goes below -32768), it will generate an item with an invisible texture that if you right click, the game will proceed to crash as shown here.

      https://drive.google.com/file/d/1p7H8wZtPN24aijEGs01PDmVyl1MfWc4Q/view?usp=drive_link 

      I suspect it has to do with negative IDs and how the game handle such items. But I have no clue on why this happens

            MrThink15000 MrThink15000
            Votes:
            7 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: