Aller au contenu
  • 0

Dans un monde


Question

Posté(e)

Bonjour ,

J'ai fais des cherchers sur internet pour avoir un skript de super heros , et je voudrais les mettres sur un seul monde disont sur le monde "Heros". Puis si vous avez quelque idée pour m'aider , je ne dis pas non :)

 

Command /hero <text>:

   usage: &e/hero <Hulk/Thor/Flash/Superman/Batman>
   trigger:
       if arg 1 is "liste":
           message "&6Commande : &e/hero <Hulk/Thor/Flash/Superman/Batman>"
#!==========================!#
#!                         HULK                  !#
#!==========================!#
       if arg 1 is "Hulk":
           clear player's inventory
           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 60 seconds
           apply potion of speed 2 to the player for 60 seconds

#!=========================================!#
#!                    THOR                     !#
#!=========================================!#
       if arg 1 is "Thor":
           clear player's inventory
           set hunger to 10
           set rf max hp of player to 30
           wait 1 tick
           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><bold>Mjöllnir"

#!==========================!#
#!                          FLASH                    !#
#!==========================!#
       if arg 1 is "Flash":
           clear player's inventory
           set hunger to 10
           set rf max hp of player to 10
           wait 1 tick
           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
           give a redstone torch named "<red><italic>Vitesse" to player
           set {flash.%UUID of player%} to true

#!==========================!#
#!                   SUPERMAN                   !#
#!==========================!#
       if arg 1 is "Superman":
           clear player's inventory
           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

#!==========================!#
#!                  BATMAN                 !#
#!==========================!#
       if arg 1 is "Batman":
           clear player's inventory
           set hunger to 10
           set rf max hp of player to 30
           wait 1 tick
           equip player with leather helmet
           equip player with leather chestplate
           equip player with leather leggings
           equip player with leather boots
           dye player's helmet black
           dye player's chestplate grey
           dye player's leggings black
           dye player's boots black
           give 5 snowball named "<white><bold>Batarang" to player

#======================#
#                EVENT THOR               #
#======================#
On rightclick with iron axe:
   cancel event
   if player is holding a iron axe named "<Yellow><bold>Mjöllnir":
       strike lightning at the targeted block
#========================================#
#                EVENT FLASH              #
#========================================#
On rightclick with redstone torch:
   cancel event
   if {flash.%UUID of player%} is true:
       apply speed 6 to player
#==========================#
#                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 snowball:
           if victim is a player:
               poison the victim for 5 seconds

3 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Tu as juste à ajouter if player is in world "monde": après le if arg 1 is Hulk et rajouter une tab après

if arg 1 is "Hulk":
If player is in world "monde":
clear player's inventory
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 Boots
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 60 seconds
apply potion of speed 2 to the player for 60 seconds[/Code]

Je suis sur tablette mais tu a une idée de la mise en forme comme sa :)

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