Aller au contenu

Messages recommandés

Posté(e)

Je cherche à faire un truc du genre si l'élément choisis est "Rail" alors une action s’exécute j'ai essayer

if {@annonce} is Rail mais ça ne marche pas

 

Merci!

 

options:
   annonce : "", "Rail", "Boussole", "Beacon", "Diamond ChestPlate", "Échelle", "Piston", "Montre"

command /choice:
   trigger:
       set {_tempList::*} to {@annonce}
       set {_tempRandom} to random integer from 1 to size of {_tempList::*}
       message "%{_tempList::%{_tempRandom}%}%"
       broadcast "&e%{_tempList::%{_tempRandom}%}%"

every 2 seconds:
   loop all players:
       display board named "      &6&lBattleOfCraft  " to loop-player
       make score "&fTemps restant: &c%{time.m}%/%{time.s}%" in board of loop-player to 1
       move display of loop-player to sidebar

Posté(e)

et comme ça ?

command /choice:
   trigger:
       set {_tempList::*} to {@annonce}
       set {_tempRandom} to random integer from 1 to size of {_tempList::*}
       if {_tempList::%{_tempRandom}%} is "Rail":
           message "Action particuliere car Rail es selectioné"
       message "%{_tempList::%{_tempRandom}%}%"
       broadcast "&e%{_tempList::%{_tempRandom}%}%"

Posté(e)
et comme ça ?

command /choice:
   trigger:
       set {_tempList::*} to {@annonce}
       set {_tempRandom} to random integer from 1 to size of {_tempList::*}
       if {_tempList::%{_tempRandom}%} is "Rail":
           message "Action particuliere car Rail es selectioné"
       message "%{_tempList::%{_tempRandom}%}%"
       broadcast "&e%{_tempList::%{_tempRandom}%}%"

Nice! Rapide merci :D

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • 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.