J'ai un petit problème de variable, je veux que quand le joueur clique sur le paneau sa le tp et ajoute 1 point a la variable ça sa marche aucun problème. Mais quand je veux que toutes les 1 secondes si le panneau contient les mots que je souhaite et si la variable est égal a un certain nombre le set line s'active. Mais c'est la que sa coince les 8 lignes sont considéré en temps que erreur.
Voici le code:
#Panneau Rush 1
options:
logo: &f[&3Rush&f]&r
on rightclick on sign:
if line 1 of the clicked block is "&1&l[Rush]":
if line 2 of the clicked block is "&oMap 1":
if line 4 of the clicked block is "&2&l0/8":
add 1 to {rush1.counter.sign}
set {rush1.score.%player%} to 1
teleport player to {attr1}
clear inventory of the player
wait 1 tick
give a lapis lazuli named "&1Rush1bleu" to the player
give a rose red named "&4Rush1rouge" to the player
give a bone meal named "&eQuitRush1" to the player
message "{@logo} &7Veuillez cliquez sur les items pour choisir votre équipe."
stop
if line 1 of the clicked block is "&1&l[Rush]":
if line 2 of the clicked block is "&oMap 1":
if line 4 of the clicked block is "&2&l1/8":
add 1 to {rush1.counter.sign}
set {rush1.score.%player%} to 1
teleport player to {attr1}
clear inventory of the player
wait 1 tick
give a lapis lazuli named "&1Rush1bleu" to the player
give a rose red named "&4Rush1rouge" to the player
give a bone meal named "&eQuitRush1" to the player
message "{@logo} &7Veuillez cliquez sur les items pour choisir votre équipe."
stop
if line 1 of the clicked block is "&1&l[Rush]":
if line 2 of the clicked block is "&oMap 1":
if line 4 of the clicked block is "&2&l2/8":
add 1 to {rush1.counter.sign}
set {rush1.score.%player%} to 1
teleport player to {attr1}
clear inventory of the player
wait 1 tick
give a lapis lazuli named "&1Rush1bleu" to the player
give a rose red named "&4Rush1rouge" to the player
give a bone meal named "&eQuitRush1" to the player
message "{@logo} &7Veuillez cliquez sur les items pour choisir votre équipe."
stop
if line 1 of the clicked block is "&1&l[Rush]":
if line 2 of the clicked block is "&oMap 1":
if line 4 of the clicked block is "&2&l3/8":
add 1 to {rush1.counter.sign}
set {rush1.score.%player%} to 1
teleport player to {attr1}
clear inventory of the player
wait 1 tick
give a lapis lazuli named "&1Rush1bleu" to the player
give a rose red named "&4Rush1rouge" to the player
give a bone meal named "&eQuitRush1" to the player
message "{@logo} &7Veuillez cliquez sur les items pour choisir votre équipe."
stop
if line 1 of the clicked block is "&1&l[Rush]":
if line 2 of the clicked block is "&oMap 1":
if line 4 of the clicked block is "&2&l4/8":
add 1 to {rush1.counter.sign}
set {rush1.score.%player%} to 1
teleport player to {attr1}
clear inventory of the player
wait 1 tick
give a lapis lazuli named "&1Rush1bleu" to the player
give a rose red named "&4Rush1rouge" to the player
give a bone meal named "&eQuitRush1" to the player
message "{@logo} &7Veuillez cliquez sur les items pour choisir votre équipe."
stop
if line 1 of the clicked block is "&1&l[Rush]":
if line 2 of the clicked block is "&oMap 1":
if line 4 of the clicked block is "&2&l5/8":
add 1 to {rush1.counter.sign}
set {rush1.score.%player%} to 1
teleport player to {attr1}
clear inventory of the player
wait 1 tick
give a lapis lazuli named "&1Rush1bleu" to the player
give a rose red named "&4Rush1rouge" to the player
give a bone meal named "&eQuitRush1" to the player
message "{@logo} &7Veuillez cliquez sur les items pour choisir votre équipe."
stop
if line 1 of the clicked block is "&1&l[Rush]":
if line 2 of the clicked block is "&oMap 1":
if line 4 of the clicked block is "&2&l6/8":
add 1 to {rush1.counter.sign}
set {rush1.score.%player%} to 1
teleport player to {attr1}
clear inventory of the player
wait 1 tick
give a lapis lazuli named "&1Rush1bleu" to the player
give a rose red named "&4Rush1rouge" to the player
give a bone meal named "&eQuitRush1" to the player
message "{@logo} &7Veuillez cliquez sur les items pour choisir votre équipe."
stop
if line 1 of the clicked block is "&1&l[Rush]":
if line 2 of the clicked block is "&oMap 1":
if line 4 of the clicked block is "&2&l7/8":
add 1 to {rush1.counter.sign}
set {rush1.score.%player%} to 1
teleport player to {attr1}
clear inventory of the player
wait 1 tick
give a lapis lazuli named "&1Rush1bleu" to the player
give a rose red named "&4Rush1rouge" to the player
give a bone meal named "&eQuitRush1" to the player
message "{@logo} &7Veuillez cliquez sur les items pour choisir votre équipe."
stop
every 1 second:
if line 1 of block is "&1&l[Rush]":
if line 2 of block is "&oMap 1":
if line 4 of block is "&2&l0/8":
if {rush1.counter.sign} is 1:
set line 4 of block to "&2&l1/8"
if line 1 of block is "&1&l[Rush]":
if line 2 of block is "&oMap 1":
if line 4 of block is "&2&l1/8":
if {rush1.counter.sign} is 2:
set line 4 of block to "&2&l2/8"
if line 1 of block is "&1&l[Rush]":
if line 2 of block is "&oMap 1":
if line 4 of block is "&2&l2/8":
if {rush1.counter.sign} is 3:
set line 4 of block to "&2&l3/8"
if line 1 of block is "&1&l[Rush]":
if line 2 of block is "&oMap 1":
if line 4 of block is "&2&l3/8":
if {rush1.counter.sign} is 4:
set line 4 of block to "&2&l4/8"
if line 1 of block is "&1&l[Rush]":
if line 2 of block is "&oMap 1":
if line 4 of block is "&2&l4/8":
if {rush1.counter.sign} is 5:
set line 4 of block to "&2&l5/8"
if line 1 of block is "&1&l[Rush]":
if line 2 of block is "&oMap 1":
if line 4 of block is "&2&l5/8":
if {rush1.counter.sign} is 6:
set line 4 of block to "&2&l6/8"
if line 1 of block is "&1&l[Rush]":
if line 2 of block is "&oMap 1":
if line 4 of block is "&2&l6/8":
if {rush1.counter.sign} is 7:
set line 4 of block to "&2&l7/8"
if line 1 of block is "&1&l[Rush]":
if line 2 of block is "&oMap 1":
if line 4 of block is "&2&l7/8":
if {rush1.counter.sign} is 8:
set line 4 of block to "&4&l8/8"
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.
Question
near67
Bonjour,
J'ai un petit problème de variable, je veux que quand le joueur clique sur le paneau sa le tp et ajoute 1 point a la variable ça sa marche aucun problème. Mais quand je veux que toutes les 1 secondes si le panneau contient les mots que je souhaite et si la variable est égal a un certain nombre le set line s'active. Mais c'est la que sa coince les 8 lignes sont considéré en temps que erreur.
Voici le code:
Je vous remercie d'avance
Cordialement,Near67
16 réponses à cette question
Messages recommandés