Aller au contenu

Besoin de Skript de Menu avec 2 page


Messages recommandés

Posté(e)
command /menu <text=Menu-1>:
   trigger:
       if arg 1 is "Menu-1":
           wait 3 tick
           open chest with 1 row named "Menu 1" to player
           wait 4 tick
           format slot 5 of player with arrow named "&aPage suivante" with lore "" to close then run [make player execute "/Menu Menu-2"]
       if arg 1 is "Menu-2":
           wait 4 tick
           open chest with 1 row named "Menu 2" to player
           wait 3 tick
           format slot 5 of player with arrow named "&aPage suivante" with lore "" to close then run [make player execute "/Menu Menu-3"]
           format slot 4 of player with arrow named "&aPage précédente" with lore "" to close then run [make player execute "/Menu Menu-1"]
       if arg 1 is "Menu-3":
           wait 4 tick
           open chest with 1 row named "Menu 3" to player
           wait 3 tick
           format slot 4 of player with arrow named "&aPage précédente" with lore "" to close then run [make player execute "/Menu Menu-2"]

Posté(e)
command /menu:
   trigger:
       if arg 1 is "Menu-1":
           open chest with 1 row named "Menu" to player
           wait 4 tick
           format slot 5 of player with arrow named "&aPage suivante" with lore "" to close then run [make player execute "/Menu-2"]
       if arg 1 is "Menu-2":
           wait 4 tick
           open chest with 1 row named "Menu" to player
           wait 3 tick
           format slot 5 of player with arrow named "&aPage suivante" with lore "" to close then run [make player execute "/Menu-3"]
           format slot 4 of player with arrow named "&aPage précédente" with lore "" to close then run [make player execute "/Menu-1"]
       if arg 1 is "Menu-3":
           wait 4 tick
           open chest with 1 row named "Menu" to player
           wait 3 tick
           format slot 5 of player with arrow named "&aPage suivante" with lore "" to close then run [make player execute "/Menu-4"]
           format slot 4 of player with arrow named "&aPage précédente" with lore "" to close then run [make player execute "/Menu-2"]
       if arg 1 is "Menu-4":
           wait 4 tick
           open chest with 1 row named "Menu" to player
           wait 3 tick
           format slot 5 of player with arrow named "&aPage suivante" with lore "" to close
           format slot 4 of player with arrow named "&aPage précédente" with lore "" to close then run [make player execute "/Menu-3"]

Merci je vais voir se que sa donne

Posté(e)

Non mais ton skript ne marchera jamais car sa vas pas ouvrir l'autre menu sa va ferme sa va execute bien la commande mais le menu ne s'ouvrira pas faut mettre to run a la place de to close then run

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.