Aller au contenu
  • 0

Question

Posté(e)

Bonsoir ! Voilà j'ai un gros problème avec ce Skript.. Quand je " Right Click " sur le beacon ça m'ouvre ce menu. Je click sur le beacon ( dans le menu ) donc ça met le beacon en Off quand je quitte le menu et que je revais deans, ça remet le beacon en on. Comment laisser le beacon en off ? :-/

 

Merci d'avance ! :D

6 réponses à cette question

Messages recommandés

  • 0
Posté(e)
command /regles2:
   trigger:
       wait 1 tick
       open chest with 5 rows named "&eTest." to player
       wait 1 tick
       format slot 0 of player with 1 beacon named "Test 1" with lore "&cOn" to run "sudo %player% regles"

command /regles:
   trigger:
       wait 1 tick
       open chest with 5 rows named "&eTest." to player
       wait 1 tick
       format slot 0 of player with 1 beacon named "Test 1" with lore "&cOff" to run "sudo %player% regles"

on rightclick with beacon:
   execute player command "regles2"

Voilà le code

  • 0
Posté(e)

Après l'optimisation existe @Yakuro_ :)

 

Voila , j'ai mis 2 items pour bien te montrer

 

variables:
   {menu.beacon.%player%} = 1
   {menu.star.%player%} = 1

command /menu [<text>] [<text>]:
   trigger:
       if arg 1 is not set:
           open chest with 3 rows named "&9➤ &4&lMenu" to player
           wait 3 tick
           format slot 26 of player with redstone block named "&4Quitter" to close
           if {menu.beacon.%player%} = "1":
               format slot 0 of player with beacon named "&eBeacon test" with lore "||&a[On]" to run [make player execute command "/menu beacon 2"]
           else:
               format slot 0 of player with beacon named "&eBeacon test" with lore "||&c[Off]" to run [make player execute command "/menu beacon 1"]
           if {menu.star.%player%} = "1":
               format slot 2 of player with nether star named "&eBeacon test" with lore "||&a[On]" to run [make player execute command "/menu star 2"]
           else:
               format slot 2 of player with nether star named "&eBeacon test" with lore "||&c[Off]" to run [make player execute command "/menu star 1"]

       else:
           if arg 2 is set:
               set {menu.%arg 1%.%player%} to "%arg 2%"
               close player's inventory
               make player execute command "/menu"

  • J'aime 2
×
×
  • 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.