on right click with cobble:
open chest with 3 rows named "test" to player
wait 2 ticks
format slot 0 of player with 1 grass named "teste" to close then run [make player execute command "/test1"]
command /test1:
trigger:
close player's inventory # On ferme d'abord l'inventaire sinon ça ne marchera pas.
wait 2 ticks # Très important !
open chest with 2 rows named "test1" to player
wait 2 ticks # Ne pas mettre de wait 1 tick (bug), ni de 3 ticks (trop long). 2 ticks = best !
format slot 0 of player with 1 sandstone named "retour" to close then run [make player execute command "/retour"]
command /retour:
trigger:
close player's inventory # On ferme d'abord l'inventaire sinon ça ne marchera pas.
wait 2 ticks # Très important !
open chest with 3 rows named "test" to player
wait 2 ticks # Ne pas mettre de wait 1 tick (bug), ni de 3 ticks (trop long). 2 ticks = best !
format slot 0 of player with 1 grass named "teste" to close then run [make player execute command "/test1"]