mojira.dev
MCPE-167633

Cloning Trapped Chest causes the game to crash

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.

Linked issues

Attachments

Comments 3

Please do not mark reports as Private unless they contain an exploit. Never share personal information on this bug tracker. (Sharing worlds is ok though.)

Can confirm in 1.21.2 Hotfix.

Hi!

Does this issue still occur on the latest build?
If yes, can you record and upload a video of the repro steps and the main issue?

This ticket will automatically reopen when you reply.

Minh Nguyen

(Unassigned)

Community Consensus

Windows

Windows 10

1.19.62, 1.19.70, 1.19.71, 1.20.0, 1.21.2 Hotfix

Retrieved