Found a couple of bugs! The first bug is that when TNT explodes, the chest explodes, but the hologram remains, the second bug was discovered by accident! And this is because I pressed many times to create a chest and ran, and 1 of 5 chests just flew into the abyss even though I created them at 60+. + if chunks are not loaded then the chest will not be created.
And I would also like the items to be created in a random order, for example, in 1 slot there is a stone, in the second nothing, and in the seventh, for example, earth
And I also want to write for the final cherry so that you add chips:
Turn off the purchase of chests, add a timer after how long the chest will be created, for example, in the chat it will write "in 10 minutes at the coordinates ~ ~ ~ the normal chest will be spawned" and
At that time, the players must run there and at this time take away the chest from the player, add the timing of opening the chest, for example, when you open the chest, you need another 60 seconds to open the chest, you can simply add 60 chests in the middle of the chest and every second so that this number of chests decreased