Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &6[&cHydra&4Box&6]
- on join:
- make console execute "/clear %player%"
- give 1 chest named "&cHydraKits" to the player
- set slot 8 of player to a emerald named "&bBoutique &7(Clic droit)"
- wait 5 seconds
- send "{@prefix} &bToutes les semaines un kit payant devient gratuit pendant une semaines !"
- send "{@prefix} &6le Kit gratuit cette semaines &a: %{semaines.kit}%"
- on right click with chest:
- if name of tool is "&cHydraKits":
- cancel event
- make player execute "/hydrabox menu"
- on right click with emerald:
- if name of tool is "&bBoutique &7(Clic droit)":
- cancel event
- make player execute "/hydramoney menu"
- command /hydrabox <text=menu> [<text>]:
- trigger:
- if arg 1 is "menu":
- open chest with 6 row named "{@prefix}" to player
- wait 4 tick
- format slot 0 of player with stick named "&CPvp" with lore "&aKit de Base" to close then run [make player execute "/hydrabox kit pvp"]
- format slot 1 of player with diamond named "&1Poseidon" with lore "&aQuand tu nage dans l'eau tu a force et speed II ! " to close then run [make player execute "/hydrabox kit poseidon"]
- format slot 2 of player with snowball named "&8Switcher" with lore "%{lore.%player%.Switcher}% " to close then run [make player execute "/hydrabox kit Switcher"]
- format slot 3 of player with Cobweb named "&8Spiderman" with lore "%{lore.%player%.spiderman}% " to close then run [make player execute "/hydrabox kit spiderman"]
- format slot 4 of player with spider eye named "&cViper" with lore "%{lore.%player%.viper}%" to close then run [make player execute "/hydrabox kit viper"]
- format slot 5 of player with iron axe named "&6Berserker" with lore "&aKit pour le moment Inutile .. " to close then run [make player execute "/hydrabox kit berserker"]
- format slot 6 of player with redstone named "&6Vampire" with lore "%{lore.%player%.vampire}% " to close then run [make player execute "/hydrabox kit Vampire"]
- format slot 7 of player with iron boots named "&cStomper" with lore "&aQuand tu saute sur tes enemi il prenne des degats ! " to close then run [make player execute "/hydrabox kit stomper"]
- format slot 8 of player with feather named "&8Iron-Man" with lore "%{lore.%player%.IronMan}%" to close then run [make player execute "/hydrabox kit IronMan"]
- format slot 9 of player with stone axe named "&6Thor" with lore "%{lore.%player%.Thor}%" to close then run [make player execute "/hydrabox kit Thor"]
- format slot 10 of player with bow named "&bArcher" with lore "%{lore.%player%.Archer}%" to close then run [make player execute "/hydrabox kit Archer"]
- format slot 11 of player with potion:16450 named "&eScoot" with lore "%{lore.%player%.scoot}%" to close then run [make player execute "/hydrabox kit scoot"]
- format slot 12 of player with bars named "&8Gladiator" with lore "%{lore.%player%.gladiator}%" to close then run [make player execute "/hydrabox kit Gladiator"]
- format slot 13 of player with blaze rod named "&7Monk" with lore "%{lore.%player%.monk}%" to close then run [make player execute "/hydrabox kit Monk"]
- format slot 14 of player with fire charge named "&cGhastMan" with lore "%{lore.%player%.ghastman}%" to close then run [make player execute "/hydrabox kit GhastMan"]
- format slot 15 of player with diamond hoe named "&cFossoyeur" with lore "%{lore.%player%.Fossoyeur}%" to close then run [make player execute "/hydrabox kit Fossoyeur"]
- format slot 16 of player with Tnt named "&cExplode" with lore "%{lore.%player%.explode}%" to close then run [make player execute "/hydrabox kit Explode"]
- format slot 17 of player with leather chestplate named "&cPaladin" with lore "%{lore.%player%.paladin}%" to close then run [make player execute "/hydrabox kit paladin"]
- format slot 18 of player with iron ingot named "&6P&4G&2M" with lore "%{lore.%player%.pgm}%" to close then run [make player execute "/hydrabox kit pgm"]
- format slot 19 of player with bone named "&aDresseur" with lore "%{lore.%player%.Dresseur}%" to close then run [make player execute "/hydrabox kit Dresseur"]
- format slot 39 of player with stick named "&8D&lernier Kit sélectionné:" with lore "&c&l%{kitprix.%player%}%" to be unstealable
- format slot 40 of player with player's skull named "&a&lStats" with lore "&c&lKill: %{killj.%player%}% ||&4&lMort: %{mortj.%player%}% ||&b&lGrade: %{grade.%player%}% " to be unstealable
- if arg 1 is "setspawn":
- if player has permission "Hydrabox.admin.*":
- send "{@prefix} Spawn Defini !"
- set {hydraspawnbox} to location of player
- if arg 1 is "semaines":
- if player have permission "ops.kit":
- set {semaines.kit} to "%arg 2%"
- send "&cTu viens de Set le kit &a: %arg 2%"
- make player execute "/mangaddp default kit.%arg 2%"
- if arg 1 is "dernier":
- if player have permission "ops.kit":
- set {semaines.kit} to "&cAucun Kit"
- send "&cTu viens d'enlever le kit &a: %arg 2%"
- make player execute "/mangdelp default kit.%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "pvp":
- execute console command "/effect %player% clear"
- execute console command "/clear %player%"
- execute console command "/kit pvp %player%"
- teleport player to {hydraspawnbox}
- set {kit.%player%} to true
- set {kitprix.%player%} to "%arg 2%"
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "poseidon":
- execute console command "/effect %player% clear"
- execute console command "/clear %player%"
- execute console command "/kit pvp %player%"
- apply Water Breathing to the player for 8 minutes
- set {kit.poseidon.%player%} to true
- teleport player to {hydraspawnbox}
- set {kit.%player%} to true
- set {kitprix.%player%} to "%arg 2%"
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "switcher":
- send "{@prefix} &cKit Non Disponible !"
- if arg 1 is "kit":
- if arg 2 is "spiderman":
- player have permission "kit.spiderman" or "kit.*":
- execute console command "/effect %player% clear"
- execute console command "/clear %player%"
- execute console command "/kit spiderman %player%"
- teleport player to {hydraspawnbox}
- set {kit.%player%} to true
- set {kitprix.%player%} to "%arg 2%"
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "stomper":
- execute console command "/effect %player% clear"
- execute console command "/clear %player%"
- execute console command "/kit Stomper %player%"
- set {stomper.%player%} to true
- set {plume.%player%} to true
- set {kit.%player%} to true
- set {kit.IronMan.%player%} to true
- teleport player to {hydraspawnbox}
- set {kitprix.%player%} to "%arg 2%"
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- set {plume.%player%} to true
- if arg 1 is "kit":
- if arg 2 is "viper":
- execute console command "/effect %player% clear"
- execute console command "/clear %player%"
- execute console command "/kit pvp %player%"
- set {viper.%player%} to true
- set {kit.%player%} to true
- teleport player to {hydraspawnbox}
- set {kitprix.%player%} to "%arg 2%"
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "berseker":
- execute console command "/effect %player% clear"
- execute console command "/clear %player%"
- execute console command "/kit berseker %player%"
- set {berseker.%player%} to true
- set {kit.%player%} to true
- teleport player to {hydraspawnbox}
- set {kitprix.%player%} to "%arg 2%"
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "vampire":
- player have permission "kit.vampire" or "kit.*":
- execute console command "/effect %player% clear"
- execute console command "/clear %player%"
- execute console command "/kit pvp %player%"
- set {vampire.%player%} to true
- set {kit.%player%} to true
- teleport player to {hydraspawnbox}
- set {kitprix.%player%} to "%arg 2%"
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "IronMan":
- player have permission "kit.IronMan" or "kit.*":
- execute console command "/effect %player% clear"
- execute console command "/clear %player%"
- execute console command "/kit IronMan %player%"
- set {kit.%player%} to true
- set {kit.IronMan.%player%} to true
- teleport player to {hydraspawnbox}
- set {kitprix.%player%} to "%arg 2%"
- set {plume.%player%} to true
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "denoman":
- player has permission "kit.demoman" or "kit.*":
- make console execute command "/clear %player%"
- make console execute command "/kit demoman %player%"
- wait 1 tick
- set {kit.Demoman.%player%} to true
- set {kitprix.%player%} to "%arg 2%"
- teleport player to {hydraspawnbox}
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "thor":
- player has permission "kit.thor" or "kit.*":
- make console execute command "/clear %player%"
- make console execute command "/kit thor %player%"
- wait 1 tick
- set {kit.Thor.%player%} to true
- set {kitprix.%player%} to "%arg 2%"
- teleport player to {hydraspawnbox}
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "switcher":
- player has permission "kit.switcher" or "kit.*":
- make console execute command "/clear %player%"
- make console execute command "/kit switcher %player%"
- wait 1 tick
- set {kit.Switcher.%player%} to true
- set {kitprix.%player%} to "%arg 2%"
- teleport player to {hydraspawnbox}
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- set {cooldown.switcher.%player%} to false
- if arg 1 is "kit":
- if arg 2 is "scoot":
- make console execute command "/clear %player%"
- make console execute command "/kit scout %player%"
- wait 1 tick
- set {kitprix.%player%} to "%arg 2%"
- teleport player to {hydraspawnbox}
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "Archer":
- make console execute command "/clear %player%"
- make console execute command "/kit Archer %player%"
- wait 1 tick
- set {kitprix.%player%} to "%arg 2%"
- teleport player to {hydraspawnbox}
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "Gladiator":
- player has permission "kit.Gladiator" or "kit.*":
- make console execute command "/clear %player%"
- make console execute command "/kit Gladiator %player%"
- wait 1 tick
- set {kitprix.%player%} to "%arg 2%"
- teleport player to {hydraspawnbox}
- set {kit.gladiator.%player%} to true
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "monk":
- player has permission "kit.monk" or "kit.*":
- make console execute command "/clear %player%"
- make console execute command "/kit Monk %player%"
- wait 1 tick
- set {kitprix.%player%} to "%arg 2%"
- teleport player to {hydraspawnbox}
- set {kit.monk.%player%} to true
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- set {monkcool.%player%} to true
- if arg 1 is "kit":
- if arg 2 is "Ghastman":
- player has permission "kit.ghastman" or "kit.*":
- make console execute command "/clear %player%"
- make console execute command "/kit GhastMan %player%"
- wait 1 tick
- set {kitprix.%player%} to "%arg 2%"
- teleport player to {hydraspawnbox}
- set {kit.ghastman.%player%} to true
- set {cooldown.ghastman.%player%} to false
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "Fossoyeur":
- make console execute command "/clear %player%"
- make console execute command "/kit fossyeur %player%"
- set {kitprix.%player%} to "%arg 2%"
- teleport player to {hydraspawnbox}
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- set {kit.fossoyeur.%player%} to true
- if arg 1 is "kit":
- if arg 2 is "Explode":
- make console execute command "/clear %player%"
- make console execute command "/kit explode %player%"
- set {kitprix.%player%} to "%arg 2%"
- teleport player to {hydraspawnbox}
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- set {kit.explode.%player%} to true
- if arg 1 is "kit":
- if arg 2 is "Paladin":
- make console execute command "/clear %player%"
- make console execute command "/kit Paladin %player%"
- set {kitprix.%player%} to "%arg 2%"
- teleport player to {hydraspawnbox}
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- equip player with leather chestplate
- if arg 1 is "kit":
- if arg 2 is "PGM":
- make console execute command "/clear %player%"
- make console execute command "/kit PGM %player%"
- set {kitprix.%player%} to "%arg 2%"
- teleport player to {hydraspawnbox}
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- if arg 1 is "kit":
- if arg 2 is "Dresseur":
- make console execute command "/clear %player%"
- make console execute command "/kit Pvp %player%"
- set {kitprix.%player%} to "%arg 2%"
- teleport player to {hydraspawnbox}
- wait 1 seconds
- broadcast "{@prefix} &b %player% &aVient de prendre le kit: &b%arg 2%"
- give 1 bone named "&aChien" to player
- give 10 bone named "&aOs" to player
- # ========== Lore ============== #
- if player have permission "kit.viper":
- set {lore.%player%.viper} to "&aTu a des chance de donne Poison ..."
- else:
- set {lore.%player%.viper} to "&cTu na Pas le kit !"
- if player have permission "kit.spiderman" or "kit.*":
- set {lore.%player%.spiderman} to "&bTisse des toiles comme SpiderMan !"
- else:
- set {lore.%player%.spiderman} to "&cTu na Pas le kit !"
- if player have permission "kit.vampire" or "kit.*":
- set {lore.%player%.vampire} to "&aTue un joueur pour recuper tout ta vie"
- else:
- set {lore.%player%.vampire} to "&cTu na Pas le kit !"
- if player have permission "kit.vampire" or "kit.*":
- set {lore.%player%.vampire} to "&aTue un joueur pour recuper tout ta vie"
- else:
- set {lore.%player%.vampire} to "&cTu na Pas le kit !"
- if player have permission "kit.iron" or "kit.*":
- set {lore.%player%.Ironman} to "&aVole comme IronMan !"
- else:
- set {lore.%player%.IronMan} to "&cTu na Pas le kit !"
- if player have permission "kit.thor" or "kit.*":
- set {lore.%player%.Thor} to "&aInvoque la foudre !"
- else:
- set {lore.%player%.Thor} to "&cTu na Pas le kit !"
- if player have permission "kit.Switcher" or "kit.*":
- set {lore.%player%.Switcher} to "&aSwitch avec ton enemi !"
- else:
- set {lore.%player%.Switcher} to "&cTu na Pas le kit !"
- if player have permission "kit.scoot" or "kit.*":
- set {lore.%player%.Scoot} to "&aVa aussi vite que Flash"
- else:
- set {lore.%player%.Scoot} to "&cTu na Pas le kit !"
- if player have permission "kit.Archer" or "kit.*":
- set {lore.%player%.archer} to "&akit Archer de base + Arc OneShot (1 utilisation)"
- else:
- set {lore.%player%.archer} to "&cTu na Pas le kit !"
- if player have permission "kit.Gladiator" or "kit.*":
- set {lore.%player%.gladiator} to "&8Defie tes enemies dans une cage 1v1 !"
- else:
- set {lore.%player%.gladiator} to "&cTu na Pas le kit !"
- if player have permission "kit.Monk" or "kit.*":
- set {lore.%player%.monk} to "&8Lorsque vous faites click droit avec votre baton de blaze, l'adversaire est désarmé."
- else:
- set {lore.%player%.monk} to "&cTu na Pas le kit !"
- if player have permission "kit.GhastMan" or "kit.*":
- set {lore.%player%.ghastman} to "&aLance des Boule de Ghast :D"
- else:
- set {lore.%player%.ghastman} to "&cTu na Pas le kit !"
- if player have permission "kit.GhastMan" or "kit.*":
- set {lore.%player%.Fossoyeur} to "&aReviens a la vie !"
- else:
- set {lore.%player%.Fossoyeur} to "&cTu na Pas le kit !"
- if player have permission "kit.explode" or "kit.*":
- set {lore.%player%.explode} to "&aFait toi Pété !"
- else:
- set {lore.%player%.explode} to "&cTu na Pas le kit !"
- if player have permission "kit.paladin" or "kit.*":
- set {lore.%player%.paladin} to "&aA vrai Tanks !"
- else:
- set {lore.%player%.paladin} to "&cTu na Pas le kit !"
- if player have permission "kit.pgm" or "kit.*":
- set {lore.%player%.paladin} to "&aPour les PGM"
- else:
- set {lore.%player%.paladin} to "&cTu na Pas le kit !"
- # =========== Mise a jour ===================== #
- command /maj <text>:
- permission: maj.ops
- trigger:
- set {Chat.Maj} to true
- broadcast "&b[&6Maj&b] &6Mise a jour du Plugins &a:PVP"
- broadcast "&b[&6Maj&b] &6Pour: &b%arg 1%"
- wait 2 seconds
- broadcast "&b[&6Maj&b] &aMise a jour a 10%%"
- wait 3 seconds
- broadcast "&b[&6Maj&b] &aMise a jour a 30%%"
- wait 2 seconds
- broadcast "&b[&6Maj&b] &aMise a jour a 45%%"
- wait 3 seconds
- broadcast "&b[&6Maj&b] &aMise a jour a 60%%"
- wait 4 seconds
- broadcast "&b[&6Maj&b] &aMise a jour a 80%%"
- wait 2 seconds
- broadcast "&b[&6Maj&b] &aMise a jour a 99%%"
- wait 1 tick
- broadcast "&b[&6Maj&b] &aMise a jour a 100%%"
- wait 1 seconds
- broadcast "&b[&6Maj&b] &aMise a jour Terminé !"
- set {Chat.Maj} to false
- wait 2 seconds
- broadcast "&b[&6Maj&b] &aSysteme de Mise a jour pensée et crée par Yghore"
- make console execute "/sk reload pvp"
- on chat:
- if {Chat.Maj} is true:
- cancel event
- send "&4Tu ne peut pas parler une Mise a jour et en cours"
- # ============ Hunger/join/Variables/Effet Kit ============== #
- on respawn:
- teleport the player to {spawn}
- give chest named "&cHydraKits" to the player
- set slot 8 of player to a emerald named "&bBoutique &7(Clic droit)"
- teleport the player to {spawn}
- on death:
- set {vampire.%player%} to false
- set {berseker.%player%} to false
- set {viper.%player%} to false
- set {stomper.%player%} to false
- set {kit.poseidon.%player%} to false
- set {kit.%player%} to false
- set {plume.%player%} to false
- set {kit.Thor.%player%} to false
- set {kit.IronMan.%player%} to false
- set {kit.Gladiator.%player%} to false
- set {kit.ghastman.%player%} to false
- set {kit.monk.%player%} to false
- set {cooldown.spiderman.%player%} to false
- set {cooldown.%player%} to true
- set {cooldown.boum.%player%} to true
- on join:
- set {vampire.%player%} to false
- set {berseker.%player%} to false
- set {viper.%player%} to false
- set {stomper.%player%} to false
- set {kit.poseidon.%player%} to false
- set {kit.%player%} to false
- set {plume.%player%} to false
- set {kit.Thor.%player%} to false
- set {kit.IronMan.%player%} to false
- set {kit.Gladiator.%player%} to false
- set {kit.ghastman.%player%} to false
- set {kit.monk.%player%} to false
- set {cooldown.spiderman.%player%} to false
- set {cooldown.%player%} to true
- set {cooldown.boum.%player%} to true
- # ============ Anti Retour Spawn Kit =========== #
- on command "/hydrabox":
- if {kit.%player%} is true:
- cancel event
- send "&cTu a deja choisi un kit pour en r'avoir un autre fait /spawn "
- on hunger meter change:
- cancel event
- # ======= Spiderman ======= #
- on projectile hit:
- if {cooldown.spiderman.%shooter%} is false:
- if name of shooter's tool is "&cSpiderman":
- set {cooldown.spiderman.%shooter%} to true
- loop blocks in radius 2 around projectile:
- if block at loop-blocks is air:
- set loop-block to cobweb
- wait 10 seconds
- loop blocks in radius 5 around projectile:
- if block at loop-block is cobweb:
- set loop-block to air
- wait 5 seconds
- set {cooldown.spiderman.%shooter%} to false
- send "{@prefix} &aTemps de recharge finit !" to shooter
- else:
- send "{@prefix} &4Il y a un temps de recharge !" to shooter
- # ======= Explode ===== #
- On rightclick with tnt:
- world is "Pvp"
- cancel event
- if {kit.Explode.%player%} is true:
- if player is holding tnt:
- if name of tool is "&cBOUMM":
- if block above player is air:
- if {cooldown.boum.%player%} is true:
- spawn tnt at block above player
- spawn tnt at block up player
- spawn tnt at block above player
- set {cooldown.boum.%player%} to false
- wait 10 seconds
- set {cooldown.boum.%player%} to true
- send "{@prefix} &8Tu peut réutiliser le kit."
- else:
- send "{@prefix} &7Tu as un cooldown de 15 secondes."
- On rightclick with Nether star:
- world is "pvp"
- if {kit.explode.%player%} is true:
- create a fake explosion at event-location
- loop all players in radius 4 around event-location:
- damage loop-player by 10
- on explode:
- world is "pvp":
- cancel event
- # ======= IronMan ===== #:
- on right click with feather:
- if {kit.IronMan.%player%} is true:
- add 1 to {IronMan.Cooldown.%player%}
- push the player upwards at speed 2
- push the player forwards at speed 2
- remove 1 feather from the player
- send "{@prefix} &4 Tu es en cooldown !"
- cancel event
- set {kit.IronMan.%player%} to false
- wait 5 seconds
- delete {IronMan.Cooldown.%player%}
- set {kit.IronMan.%player%} to true
- send "{@prefix} &a Ton cooldown est terminé !"
- # ======= Viper ======= #
- On damage of a player:
- if {viper.%attacker%} is true:
- chance of 45%:
- apply poison to the victim for 5 seconds
- #======== Dresseur ======== #
- on rightclick with a bone:
- if player is holding bone named "&aChien":
- spawn 3 wolf at the player
- remove 1 bone named "&aChien" from player
- # ======= Berserker ======= #
- On death:
- if {Berserker.%attacker%} is true:
- apply strength 1 to the attacker for 1 minutes
- # ======= Vampire ======= #
- on death of player:
- attacker is a player
- if {vampire.%attacker%} is true:
- heal attacker
- # === Switcher === #
- on damage of a player:
- if name of shooter's tool is "&f&lSwitcher":
- projectile is a snowball
- attacker is a player
- set {_pos} to location of victim
- teleport victim to attacker
- teleport attacker to {_pos}
- # ===== Kit Stomper ===== #
- on damage:
- if damage cause is fall:
- if {stomper.%victim%} is true:
- loop players in radius 4 around the victim:
- damage loop-players by 6 hearts
- # ===== Kit Thor ===== #
- on right click with stone axe:
- if {kit.Thor.%player%} is true:
- add 1 to {Thor.Cooldown.%player%}
- strike lightning at targeted block
- send "{@prefix} &c Tu es en cooldown !"
- if {Thor.Cooldown.%player%} is equal to 1:
- set {kit.Thor.%player%} to false
- wait 7 seconds
- delete {Thor.Cooldown.%player%}
- set {kit.Thor.%player%} to true
- send "{@prefix} &a Le cooldown est terminé !"
- # ===========| Gladiator |=========== #
- On rightclick on player with bars:
- cancel event
- if {kit.gladiator.%player%} is true:
- send "Maintenance du kit"
- # ========== Monk =========== #
- on left click with blaze rod:
- if {kit.monk.%player%} is true:
- if {monkcool.%player%} is true:
- send "{@prefix} &7Tu vient d'utiliser le kit monk !"
- set {monkcool.%player%} to false
- set {_tool} to tool of target
- set {_tool2} to slot 18 of target
- set slot 17 of target to {_tool}
- set tool of target to {_tool2}
- wait 1 ticks
- clear {_tool}
- clear {_tool2}
- wait 10 seconds
- set {monkcool.%player%} to true
- send "{@prefix} &8Tu peut réutiliser le kit." to player
- else:
- send "{@prefix} &7Tu as un cooldown de 30 secondes." to player
- # ========== GhastMan =========== #
- On rightclick with fire charge:
- if {kit.ghastman.%player%} is true:
- if {cooldown.ghastman.%player%} is false:
- set {cooldown.ghastman.%player%} to true
- send "{@prefix} &8Tu as lancé un boule de feux."
- shoot an fireball
- wait 15 seconds
- set {cooldown.ghastman.%player%} to false
- send "{@prefix} &8Tu peut réutiliser le kit."
- else:
- send "{@prefix} &8Il y a un cooldown de 15 secondes."
- # ========== Poseidon =========== #
- on any movement:
- if block at player is water:
- if {kit.poseidon.%player%} is true:
- remove speed from player
- apply speed 2 to player for 5 seconds
- remove strength from player
- apply strength 1 to player for 5 seconds
- # ====== Fossoyeur ======= #
- on death:
- if {kit.fossoyeur.%player%} is true:
- set {_back.fossoyeur.%player%} to location of player
- wait 3 seconds
- send "&cReviens a la vie !"
- teleport player to {_back.fossoyeur.%player%}
- make console execute "/clear %player%"
- make console execute "/kit Fossyeur %player%"
- set {kit.fossoyeur.%player%} to false
- # ====== Plume/Chute ======= #
- on damage:
- if damage was caused by fall:
- if {plume.%victim%} is true:
- cancel event
- # ====== Up Stomer ========= #
- On rightclick with firework star:
- if {cooldown.stomper.%player%} is false:
- push the player upwards at speed 5
- set {cooldown.stomper.%player%} to true
- wait 10 seconds
- set {cooldown.stomper.%player%} to false
- send "{@prefix} Temps de recharge finit !"
- if {cooldown.stomper.%player%} is true:
- send "{@prefix} Temps de recharge activé !"
- cancel event
- # ====== Boutique / Shop ====== #
- options:
- b: &6[&bHydra&6Boutique&b]
- command /hydramoney <text=menu> [<text>] [<text>]:
- trigger:
- if arg 1 is "money":
- send "&6Money: &a%{money.%player%}%"
- if arg 1 is "achat":
- if arg 2 is "ironman":
- if {money.%player%} > 50:
- add 1 to {achat.%player%}
- remove 50 from {money.%player%}
- make console execute "/manuaddp %player% kit.IronMan"
- send "{@b} &aTu vient d'acheter le kit: &b%arg 2%"
- else:
- send "&4Tu na pas assez d'argent !"
- if arg 1 is "achat":
- if arg 2 is "spiderman":
- if {money.%player%} > 60:
- add 1 to {achat.%player%}
- remove 60 from {money.%player%}
- make console execute "/manuaddp %player% kit.spiderman"
- send "{@b} &aTu vient d'acheter le kit: &b%arg 2%"
- else:
- send "&4Tu na pas assez d'argent !"
- if arg 1 is "menu":
- open chest with 6 row named "{@b}" to player
- wait 4 tick
- format slot 10 of player with iron boots named "&4IronMan &b> &a50$" with lore "" to close then run [make player execute "/hydramoney achat ironman"]
- format slot 11 of player with cobweb named "&4SpiderMan &b> &a60$" with lore "" to close then run [make player execute "/hydramoney achat spiderman"]
- format slot 40 of player with ender chest named "&bStat Boutique" with lore "&aMoney: %{money.%player%}% ||&aNombre D'achat: &b%{achat.%player%}% " to be unstealable
- if arg 1 is "add":
- if player have permission "money.add":
- add 10 to {money.%arg 3%}
- send "&aTu viens de rajouter 10$ &aA %arg 3%"
- if arg 1 is "remove":
- if player have permission "money.remove":
- remove 10 from {money.%arg 3%}
- send "&aTu viens d'enlever 10$ &aA&a %arg 3%"
- on first join:
- add 10 to {money.%player%}
- add 0 to {achat.%player%}
- # ======= Anti feux ====== #
- on burn:
- cancel event
- on ignition:
- cancel event
- # ====== FireWorlk ======= #
- on death:
- launch creeper firework colored red at player timed 1
- # === KillStreak ===== #
- on death of player:
- add 2 to {Money.%attacker%}
- remove 1 from {Money.%victim%}
- send "&cTu vient de prendre 1$ " to victim
- send "&aTu vient de gagner 2$ " to attacker
- set {killstreak.%victim%} to 0
- add 1 to {killstreak.%attacker%}
- if {killstreak.%attacker%} is equal to 5:
- broadcast "&c[&4Kill&cStreak&4] %attacker% A fait un KillStreak de 5 !"
- add 3 to {money.%attacker%}
- if {KillStreak.%attacker%} is equal to 10:
- broadcast "&c[&4Kill&cStreak&4] %attacker% A fait un KillStreak de 10 ! &bIl vient de Gagnier 7 $"
- add 7 to {money.%attacker%}
- # === Demoman === #
- on walking on a pressure plate:
- create safe explosion of power 5 at player
- set block at player to air
- # === Sponge === #
- on walking on note block:
- set {damage.note.fall} to true
- push the player upwards at speed 2
- push the player forwards at speed 5
- on damage:
- damage cause is fall:
- if {damage.note.fall} is true:
- set {damage.note.fall} to false
- cancel event
- # =========== Jour nuit ============== #
- on weather change to rain:
- cancel event
- at 20:00 in "pvp":
- make console execute "/day"
- on death:
- if player is in world "pvp":
- clear drops
- # ========= Message de Mort ======= #
- options:
- death: &4[&cHydra&4Mort&c]
- on death:
- If attacker is a Player:
- If projectile is an arrow:
- broadcast "{@death} &a%player% &6c'est fait tirer dessus par &a%attacker%."
- If tool of attacker is air:
- broadcast "{@death} &a%player% &6c'est fait tuer à la main par &a%attacker%."
- If tool of attacker is a sword:
- broadcast "{@death} &c%player% &6s'est fait trancher en deux par &a%attacker%."
- If tool of attacker is an pickaxe:
- broadcast "{@death} &a%attacker% &6a pris &a%player% &6pour un minerais."
- If tool of attacker is an axe:
- broadcast "{@death} &a%attacker% &6a pris &a%player% &6pour une bûche."
- If tool of attacker is an shovel:
- broadcast "{@death} &a%attacker% &6a pris &a%player% &6pour de la terre."
- If tool of attacker is an hoe:
- broadcast "{@death} &a%attacker% &6a voulu labourer &a%player%."
- # ========== Message/Smileys ============ #
- options:
- ps: &b[&6Hydra&bSmileys&6]
- on chat:
- replace all ":)" or "(:" in message with "&a☺&r"
- replace all "*tm" in message with "&6™&r"
- replace all ":(" or "):" in message with "&c☹&r"
- replace all "<3" or "*heart" in message with "&4❤&r"
- replace all "*male" in message with "&b♂&r"
- replace all "*female" in message with "&d♀&r"
- replace all "*music" or "*musique" in message with "&6♪♫♫♪&r"
- replace all "*check" or "*validé" in message with "&a✔&r"
- replace all "*x" in message with "&c✖&r"
- replace all "*copy" or "*copyright" in message with "&6©&r"
- replace all "*reg" in message with "&6®&r"
- replace all "*waiting" in message with "&6⌛&r"
- replace all "*star" or "*etoile" in message with "&e★&r"
- replace all "*phone" or "*telephone" in message with "&6☎&r"
- replace all "*yingyang" in message with "☯&r"
- replace all "*skull" or "*toxic" in message with "&4☠&r"
- replace all "*radioactive" in message with "&e☢&r"
- replace all "*envelop" or "*enveloppe" in message with "&f✉&r"
- replace all "*arrow" in message with "&f➸&r"
- replace all "*peace" in message with "&f☮&r"
- replace all "*box" in message with "&f☐&r"
- replace all "*cbox" in message with "&f☑&r"
- replace all "*markedbox" in message with "&f☒&r"
- replace all "*snow" in message with "&b❅&r"
- replace all "*>>" in message with "&6»&r"
- replace all "*<<" in message with "&6«&r"
- replace all "*triangle" in message with "&a▲&r"
- replace all "*square" in message with "&a■&r"
- replace all "*circle" in message with "&b○&r"
- replace all "*sun" in message with "&e☼&r"
- replace all "*left" in message with "&a←&r"
- replace all "*right" in message with "&a→&r"
- replace all "*up" in message with "&a↑&r"
- replace all "*down" in message with "&a↓&r"
- replace all "*flower" in message with "&f✿&r"
- command /smiley [<text>]:
- aliases: /smileys
- trigger:
- if arg 1 is not set:
- message "{@ps} &cChoisis un numéro de page entre 1 et 7 !"
- if arg 1 is "1":
- message "{@ps} &2Help 1/7"
- message "&6:) | (: &5-> &3☺"
- message "&6:( | ): &5-> &3☹"
- message "&6*heart | <3 &5-> &3❤"
- message "&6*tm &5-> &3™"
- message "&6*male &5-> &3♂"
- if arg 1 is "2":
- message "{@ps} &2Help 2/7"
- message "&6*female &5-> &3♀"
- message "&6*music | *musique &5-> &3♪♫♫♪"
- message "&6*check | *validé &5-> &3✔"
- message "&6*x &5-> &3✖"
- message "&6*copy | *copyright &5-> &3©"
- if arg 1 is "3":
- message "{@ps} &2Help 3/7"
- message "&6*reg &5-> &3®"
- message "&6*waiting &5-> &3⌛"
- message "&6*star | *etoile &5-> &3★"
- message "&6*phone | *telephone &5-> &3☎"
- message "&6*yingyang &5-> &3☯"
- if arg 1 is "4":
- message "{@ps} &2Help 4/7"
- message "&6*skull | *toxic &5-> &3☠"
- message "&6*radioactive &5-> &3☢"
- message "&6*envelop | *enveloppe &5-> &3✉"
- message "&6*arrow &5-> &3➸"
- message "&6*peace &5-> &3☮"
- if arg 1 is "5":
- message "{@ps} &2Help 5/7"
- message "&6*box &5-> &3☐"
- message "&6*cbox &5-> &3☑"
- message "&6*markedbox &5-> &3☒"
- message "&6*snow &5-> &3❅"
- message "&6*>> &5-> &3»"
- if arg 1 is "6":
- message "{@ps} &2Help 6/7"
- message "&6*<< &5-> &3«"
- message "&6*triangle &5-> &3▲"
- message "&6*square &5-> &3■"
- message "&6*circle &5-> &3○"
- message "&6*sun &5-> &3☼"
- if arg 1 is "7":
- message "{@ps} &2Help 7/7"
- message "&6*left &5-> &3←"
- message "&6*right &5-> &3→"
- message "&6*up &5-> &3↑"
- message "&6*down &5-> &3↓"
- message "&6*flower &5-> &3✿"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement