Bonjour, voici le code, remplace gold par l'item que tu veux pour les billet, et je te laisse mettre la commande pour ajoutez l'argent dans la banque en fonction de la somme, tiens moi au jus si tu as des erreurs.
command /atm:
trigger:
open chest with 1 rows named "&aATM" to player
wait 2 ticks
format slot 3 of player with 1 green wool named "&2Déposer" to close then run [make player execute command "/depot"]
format slot 4 of player with 1 red wool named "&cRetirer" to close then run [make player execute command "/retrait"]
format slot 8 of player with 1 redstone lamp named "&4Quittez" to close
command /depot:
trigger:
close player's inventory
wait 2 ticks
open chest with 3 rows named "&2Dépot" to player
wait 2 ticks
format slot 0 of player with 1 gold named "&aDéposer 1$" with lore "&7Cliquer pour déposer 1$" to close then run [make player execute command "/tacommmand pour mettre l'argent dans la banque"]
format slot 2 of player with 1 gold named "&aDéposer 5$" with lore "&7Cliquer pour déposer 5$" to close then run [make player execute command "/tacommmand pour mettre l'argent dans la banque"]
format slot 4 of player with 1 gold named "&aDéposer 10$" with lore "&7Cliquer pour déposer 10$" to close then run [make player execute command "/tacommmand pour mettre l'argent dans la banque"]
format slot 6 of player with 1 gold named "&aDéposer 50$" with lore "&7Cliquer pour déposer 50$" to close then run [make player execute command "/tacommmand pour mettre l'argent dans la banque"]
format slot 8 of player with 1 gold named "&aDéposer 100$" with lore "&7Cliquer pour déposer 100$" to close then run [make player execute command "/tacommmand pour mettre l'argent dans la banque"]
format slot 11 of player with 1 gold named "&aDéposer 200$" with lore "&7Cliquer pour déposer 200$" to close then run [make player execute command "/tacommmand pour mettre l'argent dans la banque"]
format slot 13 of player with 1 gold named "&aDéposer 500$" with lore "&7Cliquer pour déposer 500$" to close then run [make player execute command "/tacommmand pour mettre l'argent dans la banque"]
command /retrait:
trigger:
close player's inventory
wait 2 ticks
open chest with 3 rows named "&2Dépot" to player
wait 2 ticks
format slot 0 of player with 1 gold named "&cRetirer 1$" with lore "&7Cliquer pour retirer 1$" to close then run [make player execute command "/tacommmand pour retirer l'argent dans la banque"]
format slot 2 of player with 1 gold named "&cRetirer 5$" with lore "&7Cliquer pour retirer 5$" to close then run [make player execute command "/tacommmand pour retirer l'argent dans la banque"]
format slot 4 of player with 1 gold named "&cRetirer 10$" with lore "&7Cliquer pour retirer 10$" to close then run [make player execute command "/tacommmand pour retirer l'argent dans la banque"]
format slot 6 of player with 1 gold named "&cRetirer 50$" with lore "&7Cliquer pour retirer 50$" to close then run [make player execute command "/tacommmand pour retirer l'argent dans la banque"]
format slot 0 of player with 1 gold named "&cRetirer 100$" with lore "&7Cliquer pour retirer 100$" to close then run [make player execute command "/tacommmand pour retirer l'argent dans la banque"]
format slot 0 of player with 1 gold named "&cRetirer 200$" with lore "&7Cliquer pour retirer 200$" to close then run [make player execute command "/tacommmand pour retirer l'argent dans la banque"]
format slot 0 of player with 1 gold named "&cRetirer 500$" with lore "&7Cliquer pour retirer 500$" to close then run [make player execute command "/tacommmand pour retirer l'argent dans la banque"]