Aller au contenu

Vanish | L'erreur ?


Messages recommandés

Posté(e)

Je voudrais savoir l'Erreur ?

 

 

command /vanish:
   trigger:
       make console execute command "/effect %player% invisibility 9999 255"
       spawn 10 bats
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       wait 15 ticks
       kill all bats
       set {vanish.%player%} to true   
       else if set {vanish.%player%} to false
       make console execute command "/effect %player% invisibility 0 0"

1456600868-erreur.png

Posté(e)
Je voudrais savoir l'Erreur ?

 

 

command /vanish:
   trigger:
       make console execute command "/effect %player% invisibility 9999 255"
       spawn 10 bats
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       wait 15 ticks
       kill all bats
       set {vanish.%player%} to true  
       else if set {vanish.%player%} to false
       make console execute command "/effect %player% invisibility 0 0"

1456600868-erreur.png

 

Je ne comprend pas ton code mais pour corriger l'erreur

 

command /vanish:
   trigger:
       make console execute command "/effect %player% invisibility 9999 255"
       spawn 10 bats
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       wait 15 ticks
       kill all bats
       set {vanish.%player%} to true  
       else:
           if {vanish.%player%} is false:
               make console execute command "/effect %player% invisibility 0 0"

  • J'aime 1
Posté(e)

Sachant qu'il n'y a pas de if , il ne peut donc pas y avoir de else , l'erreur vient de là.

Et aussi , je te conseille d'utiliser le "hide player to players" , au moins il n'y aura pas de particules.

 

command /vanish:
   trigger:
       hide player to players
       spawn 10 bats
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       strike lightning at the player
       wait 15 ticks
       kill all bats
       set {vanish.%player%} to true 
       if {vanish.%player%} is false:
           reveal player to players

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