Super Héros
Bonjour à tous, aujourd'hui je vous présente un Skript je j'ai finalisé il y a peu. :)
Il s'agit d'un Skript de Super Héros, je précise qu'il ne fonctionne qu'en 1.8.
Il y a pour le moment 5 kits disponibles, le Skript est donc en version 1.0. ;)
Je précise qu'il faut WildSkript pour que cela fonctionne bien. :)
★ Les Commandes :★
/Hero Liste : Permet de voir la liste des Héros disponible.
/Hero Hulk : Permet d'obtenir le kit Hulk.
/Hero Thor : Permet d'obtenir le kit Thor.
/Hero Flash : Permet d'obtenir le kit Flash.
/Hero Superman : Permet d'obtenir le kit Superman.
/Hero Batman : Permet d'obtenir le kit Batman.
Pour découvrir tous ces kits, je vous laisse les tester de votre côté ! :)
N'hésitez pas à me proposer de nouveaux kits à rajouter pour la version 2.0. :)
Cordialement :)
★ Le Code :★
[spoiler=Le Code]
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 GENERALE #
#==========================#
On damage:
damage was caused by fall:
cancel event
On drop:
cancel event
On explode:
cancel event
On break:
cancel event
#======================#
# 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
create an explosion of force 3 at the targeted block
#========================================#
# EVENT FLASH #
#========================================#
On rightclick with redstone torch:
cancel event
if {flash.%UUID of player%} is true:
apply speed 10 to player
message "<Yellow><italic>La Vitesse est en moi !!"
set {flash.%UUID of player%} to false
else:
remove speed from player
message "<Yellow><italic>Ah! Enfin un peu de repos."
set {flash.%UUID of player%} to true
if {flash.%UUID of player%} is true:
apply speed 10 to player
message "<Yellow><italic>La Vitesse est en moi !!"
set {flash.%UUID of player%} to false
else:
remove speed from player
message "<Yellow><italic>Ah! Enfin un peu de repos."
set {flash.%UUID of player%} to true
#==========================#
# 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