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

Clearing an item instantly after being sold by a villager sometimes causes the game to crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.2.5.0
    • None
    • Unconfirmed
    • Windows

      Working on a map, I encountered a bug that crashes the game when trading with a villager.
      From the video attachment I complete the trade and it gives me the custom trapped_chest. However once I put it in my inventory the game crashes. (If I complete the trade but throw the chest on the ground it doesn't crash)

      The commands running at the time of the crash:
      Repeat: /clear @a trapped_chest 0 0
      3 Chain Conditionals that setblocks at various locations
      Some entity teleport commands (I am teleporting the villager who just traded away and replacing him with a new villager)
      A clone command that copies in a small error nearby.

      Through testing I've managed to narrow it down and it seems to happen even if only the Repeat clear command is running. But whats makes this even more interesting is that I have several other villagers who do the exact same thing with nearly the same commands running and they work fine without issue. I wondered if its an issue with the item being traded but the game still crashes even if its a "Stone Axe" or "Bricks" or "StoneBricks" (These were ones I tested)

      I also wondered if it could be something with the lore that I have on the traded item. But even removing the lore did not seem to fix the issue.

      I've included the Debug log as an attachment

      Again I have several other villagers who do trades exactly like this one aside from the specific items that are traded. Similar command blocks systems are run that clear the item as soon as it is detected in a player's inventory. I've tried everything I could think of but have not been able to come up with a solution.

            R3DsKingdom Darien Vechinski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: