Aller au contenu
  • 0

Les TABs


Question

Posté(e)

Bonjour,

J'ai crée un script et j'ai 111 erreurs , que des erreurs de tab , voila ce qu'il me dit : Expected 6 spaces , but found 20 spaces , qu'est ce que je dois faire , aidez moi

4 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Mais pourtant j'ai mis le code , bon tenais :)

(Noa normalement sa te rappelle quelques choses x)

 

 

Command /mdr <text>:

   usage: &e/mdr <Hulk/Thor/Flash/Superman/Batman>
   trigger:
       if arg 1 is "list":
           message "&6Commande : &e/mdr <Hulk/Thor/Flash/Superman/Batman>"
#!==========================!#
#!                         HULK                  !#
#!==========================!#
       if player is in world "jail"
           if arg 1 is "Hulk":
               clear player's inventory
               execute console command "heal %player%"
               set hunger to 10
               set rf max hp of player to 40
               heal the player by 40 hearts
               wait 1 tick
               equip player with zombie head
               equip player with leather chestplate
               equip player with leather leggings
               equip player with leather boots
               dye player's chestplate green
               dye player's leggings white
               dye player's boots green
               apply potion of strength 4 to the player for 300 seconds
               apply potion of speed 2 to the player for 300 seconds

#!=========================================!#
#!                    THOR                     !#
#!=========================================!#
       if player is in world "jail":
           if arg 1 is "Thor":
               clear player's inventory
               equip player with leather helmet
               equip player with leather chestplate
               equip player with leather leggings
               equip player with leather boots
               dye player's helmet grey
               dye player's chestplate white
               dye player's leggings white
               dye player's boots white
               give player iron axe named "<Yellow>Mjöllnir"
               set {kit.%player%} to "Thor"

#!==========================!#
#!                          FLASH                    !#
#!==========================!#
       if player is in world "jail":
           if arg 1 is "Flash":
               clear player's inventory
               give iron sword named "&6Epée de Flash" to player               
               equip player with leather helmet
               equip player with leather chestplate
               equip player with leather leggings
               equip player with leather boots
               dye player's helmet red
               dye player's chestplate red
               dye player's leggings red
               dye player's boots yellow
               set {flash.%UUID of player%} to true
               apply speed 10 to player for 1000000000 seconds
               apply potion of strength 2 to the player for 1000000000 seconds

#!==========================!#
#!                   SUPERMAN                   !#
#!==========================!#
       if player is in world "jail"
           if arg 1 is "Superman":
               clear player's inventory
               execute console command "heal %player%"
               set hunger to 10
               set rf max hp of player to 30
               wait 1 tick
               equip player with head
               equip player with leather chestplate
               equip player with leather leggings
               equip player with leather boots
               dye player's chestplate blue
               dye player's leggings red
               dye player's boots red
               give 5 feathers named "<white><italic>Vole" to player
               apply potion of strength 2 to the player for 600 seconds

#!==========================!#
#!                  BATMAN                 !#
#!==========================!#
       if player is in world "jail":
           if arg 1 is "Batman":
               make player execute command "/gamemode 2"
               clear the player's inventory
               make player execute command "/effect %player% clear"
               equip player with chainmail helmet
               equip player with chainmail chestplate
               equip player with chainmail leggings
               equip player with chainmail boots
               give 10 snowball named "&8&lBatarang" to player
               give Fishing Rod named "&8&lBat Grapin" to player
               give 10 egg named "&8&lBataEgg" to player
               set {kit.%player%} to "poison"
               apply resistance to the player for 1000000 seconds
               apply strength to the player for 1000000 seconds

#!==========================!#
#!                  SpiderMan                !#
#!==========================!#
       if player is in world "jail":
           if arg 1 is "Spiderman":
               make player execute command "/gamemode 2"
               clear the player's inventory
               make player execute command "/effect %player% clear"
               equip player with leather helmet
               dye player's helmet red
               equip player with leather chestplate
               dye player's chestplate red
               equip player with leather leggings
               dye player's leggings blue
               equip player with leather boots
               dye player's boots red
               give cobweb named "&4Spiderman" to player
               give iron sword named "&4Epée de SpiderMan" to player
               set {kit.%player%} to "Spiderman"
               apply jump boost 5 to the player for 1000000 seconds

#======================#
#                EVENT THOR               #
#======================#
on right click:
 world of player is "jail"
 if {kit.%player%} is "Thor":
   if player is holding a iron axe named "<Yellow>Mjöllnir":
     set {_diffkit} to difference between {kitThor.%player%} and now
     if {_diffkit} is smaller than 5 seconds:
       send "&cAttendez avant d'utiliser votre compétence !"
     else:
       strike lightning at the targeted block
       set {kitThor.%player%} to now   
#==========================#
#                EVENT SUPERMAN              #
#==========================#
On rightclick with feather:
   push the player upwards
   push player forwards
#==========================#
#                EVENT BATMAN                  #
#==========================#

On damage:
   if damage was caused by projectile:
       if projectile is egg:
           if victim is a player:
               apply slowness to victim for 5 seconds
On damage:
   if damage was caused by projectile:
       if projectile is snowball:
           if victim is a player:
               apply blindness 10 to victim for 10 seconds
               apply nausea to victim for 2 seconds

on right click:
 world of player is "jail"
 if {kit.%player%} is "Batman":
   if player is holding a fishing rod named "&8Bat Grapin":
     set {_diffkit} to difference between {kitBatman.%player%} and now
     if {_diffkit} is smaller than 5 seconds:
       send "&cAttendez avant d'utiliser votre compétence !"
     else:
       push player forward at speed 2
       set {kitBatman.%player%} to now

#==========================#
#                EVENT SpiderMan                #
#==========================#
   if {kit.%attacker%} is "Spiderman":
       if attacker is holding a cobweb named "&4Spiderman":
           if {coolDown.%attacker%} isn't set:
               set {coolDown.%attacker%} to now
           else:
               if difference between now and {coolDown.%attacker%} is greater than 5 seconds:

                   set {_feetLocation} to location of victim
                   set {_headLocation} to location of victim
                   increase y-coord of {_headLocation} by 1

                   set block at {_feetLocation} to cobweb
                   set block at {_headLocation} to cobweb

                   wait 5 seconds

                   set block at {_feetLocation} to air
                   set block at {_headLocation} to air

                   set {coolDown.%attacker%} to now
               else:
                   send "<orange>Vous devez attendre 5 secondes avant de ré-utiliser cet effet" to attacker

  • 0
Posté(e)

-_- x) le jail ta oublié les :::: je te l'avais déja dit tien. refait les tabs car le forum et les tabs sa fait 2 ;) :rolleyes::rolleyes::rolleyes::rolleyes::rolleyes:

Command /mdr <text>:

   usage: &e/mdr <Hulk/Thor/Flash/Superman/Batman>
   trigger:
       if arg 1 is "list":
           message "&6Commande : &e/mdr <Hulk/Thor/Flash/Superman/Batman>"
#!==========================!#
#!                         HULK                  !#
#!==========================!#
       if player is in world "jail"
           if arg 1 is "Hulk":
               clear player's inventory
               execute console command "heal %player%"
               set hunger to 10
               set rf max hp of player to 40
               heal the player by 40 hearts
               wait 1 tick
               equip player with zombie head
               equip player with leather chestplate
               equip player with leather leggings
               equip player with leather boots
               dye player's chestplate green
               dye player's leggings white
               dye player's boots green
               apply potion of strength 4 to the player for 300 seconds
               apply potion of speed 2 to the player for 300 seconds

#!=========================================!#
#!                    THOR                     !#
#!=========================================!#
       if player is in world "jail":
           if arg 1 is "Thor":
               clear player's inventory
               equip player with leather helmet
               equip player with leather chestplate
               equip player with leather leggings
               equip player with leather boots
               dye player's helmet grey
               dye player's chestplate white
               dye player's leggings white
               dye player's boots white
               give player iron axe named "<Yellow>Mjöllnir"
               set {kit.%player%} to "Thor"

#!==========================!#
#!                          FLASH                    !#
#!==========================!#
       if player is in world "jail":
           if arg 1 is "Flash":
               clear player's inventory
               give iron sword named "&6Epée de Flash" to player              
               equip player with leather helmet
               equip player with leather chestplate
               equip player with leather leggings
               equip player with leather boots
               dye player's helmet red
               dye player's chestplate red
               dye player's leggings red
               dye player's boots yellow
               set {flash.%UUID of player%} to true
               apply speed 10 to player for 1000000000 seconds
               apply potion of strength 2 to the player for 1000000000 seconds

#!==========================!#
#!                   SUPERMAN                   !#
#!==========================!#
       if player is in world "jail":
           if arg 1 is "Superman":
               clear player's inventory
               execute console command "heal %player%"
               set hunger to 10
               set rf max hp of player to 30
               wait 1 tick
               equip player with head
               equip player with leather chestplate
               equip player with leather leggings
               equip player with leather boots
               dye player's chestplate blue
               dye player's leggings red
               dye player's boots red
               give 5 feathers named "<white><italic>Vole" to player
               apply potion of strength 2 to the player for 600 seconds

#!==========================!#
#!                  BATMAN                 !#
#!==========================!#
       if player is in world "jail":
           if arg 1 is "Batman":
               make player execute command "/gamemode 2"
               clear the player's inventory
               make player execute command "/effect %player% clear"
               equip player with chainmail helmet
               equip player with chainmail chestplate
               equip player with chainmail leggings
               equip player with chainmail boots
               give 10 snowball named "&8&lBatarang" to player
               give Fishing Rod named "&8&lBat Grapin" to player
               give 10 egg named "&8&lBataEgg" to player
               set {kit.%player%} to "poison"
               apply resistance to the player for 1000000 seconds
               apply strength to the player for 1000000 seconds

#!==========================!#
#!                  SpiderMan                !#
#!==========================!#
       if player is in world "jail":
           if arg 1 is "Spiderman":
               make player execute command "/gamemode 2"
               clear the player's inventory
               make player execute command "/effect %player% clear"
               equip player with leather helmet
               dye player's helmet red
               equip player with leather chestplate
               dye player's chestplate red
               equip player with leather leggings
               dye player's leggings blue
               equip player with leather boots
               dye player's boots red
               give cobweb named "&4Spiderman" to player
               give iron sword named "&4Epée de SpiderMan" to player
               set {kit.%player%} to "Spiderman"
               apply jump boost 5 to the player for 1000000 seconds

#======================#
#                EVENT THOR               #
#======================#
on right click:
 world of player is "jail":
 if {kit.%player%} is "Thor":
   if player is holding a iron axe named "<Yellow>Mjöllnir":
     set {_diffkit} to difference between {kitThor.%player%} and now
     if {_diffkit} is smaller than 5 seconds:
       send "&cAttendez avant d'utiliser votre compétence !"
     else:
       strike lightning at the targeted block
       set {kitThor.%player%} to now  
#==========================#
#                EVENT SUPERMAN              #
#==========================#
On rightclick with feather:
   push the player upwards
   push player forwards
#==========================#
#                EVENT BATMAN                  #
#==========================#

On damage:
   if damage was caused by projectile:
       if projectile is egg:
           if victim is a player:
               apply slowness to victim for 5 seconds
On damage:
   if damage was caused by projectile:
       if projectile is snowball:
           if victim is a player:
               apply blindness 10 to victim for 10 seconds
               apply nausea to victim for 2 seconds

on right click:
 world of player is "jail"
 if {kit.%player%} is "Batman":
   if player is holding a fishing rod named "&8Bat Grapin":
     set {_diffkit} to difference between {kitBatman.%player%} and now
     if {_diffkit} is smaller than 5 seconds:
       send "&cAttendez avant d'utiliser votre compétence !"
     else:
       push player forward at speed 2
       set {kitBatman.%player%} to now

#==========================#
#                EVENT SpiderMan                #
#==========================#
   if {kit.%attacker%} is "Spiderman":
       if attacker is holding a cobweb named "&4Spiderman":
           if {coolDown.%attacker%} isn't set:
               set {coolDown.%attacker%} to now
           else:
               if difference between now and {coolDown.%attacker%} is greater than 5 seconds:

                   set {_feetLocation} to location of victim
                   set {_headLocation} to location of victim
                   increase y-coord of {_headLocation} by 1

                   set block at {_feetLocation} to cobweb
                   set block at {_headLocation} to cobweb

                   wait 5 seconds

                   set block at {_feetLocation} to air
                   set block at {_headLocation} to air

                   set {coolDown.%attacker%} to now
               else:
                   send "<orange>Vous devez attendre 5 secondes avant de ré-utiliser cet effet" to attacker

×
×
  • 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.