Aller au contenu

Messages recommandés

Posté(e)

Bonjour; avec un ami on fait des vidéo minecraft mais on cherche un Skript de timer cette à dire je execute une command par exemple /timer 18min ça mets en route un compte à rebours de 18min (ps: si possible de modifié le temps du timer) et si possible afficher le timer sur un scoreboard si sela est trop complexe dans le chat ^^

Posté(e)

command /timer <text>:
   permission: timer.op
   trigger:
       if {timer_} is 0:
           set {timermin_} to %arg-1%
           display board named "Timer" to player
           make score "minute" in board of player to {timermin_}
           move display of player to "sidebar"

every minute:
   if {timermin_} is greater than or equal to 1:
       subtract 1 from {timermin_}
       if {timermin_} is 0:
           loop all players:
               display board named " " to loop-player
               move display of loop-player to " "

 

Dit moi si tout marche.

Posté(e)

Après modification:

command /timer <text>:
   permission: timer.op
   trigger:
       if {timer_} is 0:
           set {timermin_} to arg-1
           display board named "Timer" to player
           make score "minute" in board of player to {timermin_}
           move display of player to sidebar

every minute:
   if {timermin_} is greater than or equal to 1:
       subtract 1 from {timermin_}
       if {timermin_} is 0:
           loop all players:
               display board named "nul" to loop-player
               move display of loop-player to "{null}"

Tu devrais plus avoir d'erreur maintenant.

Posté(e)

Oups...

command /timer <text>:
   permission: timer.op
   trigger:
       if {timer_} is 0:
           set {timermin_} to arg-1
           display board named "Timer" to player
           make score "minute" in board of player to {timermin_}
           move display of player to sidebar

every minute:
   if {timermin_} is greater than or equal to 1:
       subtract 1 from {timermin_}
       if {timermin_} is 0:
           loop all players:
               display board named "nul" to loop-player
               move display of loop-player to {null}

Posté(e)

Tu l'as afficher à droite de ton minecraft une fois la commande /timer exécuter.

Fonctionnement:

Toute les minutes, ça va vérifier si c'est bien au dessus de 1 ou égale à 1.

Si c'est le cas on retire 1 à la variable {timermin_}, sinon on fait rien.

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.