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

Cloning Trapped Chest causes the game to crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.62, 1.19.70, 1.19.71, 1.20.0
    • None
    • Plausible
    • Windows

      Recently I have been working on a Mystery box system for a Minecraft map. My goal is to create a chest that would give a player a random item for 5 xp per use. I was able to come up with a system to do this, but it would often crash the game after 1-2 uses.

      The commands I used for this are:

      1. clone 15 -62 13 15 -62 12 2 -60 12 (This clones an empty trapped chest to the "Mystery Box" location )
      2.  xp 5l @a[x=-1,y=-60,z=11,r=5,lm=5] (Takes away 5 xp from the player at the "Mystery Box" location)
      3. execute at @r[type=armor_stand,name="Box"] run clone ~ ~ ~ ~ ~ ~1 12 -62 12 (Clones a trapped chest at a random armor stand location to Location 2)
      4. clone 12 -62 12 12 -62 13 2 -60 12 (Clone the Trapped Chest from Location 2 to the Mystery Box)

      Regarding the contents of the trapped chests, they are usually equipment items such as Iron Sword or Bow. Each trapped Chest only contains 1 item.

      They following is a copy of my Minecraft World.

            Minh1010 Minh Nguyen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: