Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /moles [<text>] [<integer>]:
- permission: skript.op
- trigger:
- if arg-1 is not set:
- message "&8[&bMoles&8] &b/moles help"
- else if arg-1 is equal to "set":
- if command sender does not have the permission "moles.set":
- message "&8[&bMoles&8] &bNOPE!"
- execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
- stop trigger
- set {Mole} to true
- delete {Mole.IsMole::*}
- delete {Mole.MoleOfTeam::*}
- delete {Mole.Moles::*}
- loop all players:
- set {isMole.%loop-player%} to false
- if arg-2 is not set:
- set {_MoleAmount} to 1
- if arg-2 is set:
- set {_MoleAmount} to arg-2
- loop {Teams::*}:
- set {_potMoles::*} to {Team.%loop-value%::*}
- loop {_MoleAmount} times:
- set {_Mole} to (random element out of {_potMoles::*})
- remove {_Mole} from {_potMoles::*}
- set {Mole.IsMole::%{_Mole}%} to loop-value
- set {Mole.MoleOfTeam::%loop-value%} to {_Mole}
- add {_Mole} to {Mole.Moles::*}
- set {_MolePlayer} to ("%{_Mole}%" parsed as offlineplayer)
- if {_MolePlayer} is online:
- message "&fYou are a mole! Use /molekit" to {_MolePlayer}
- execute console command "/playsound note.pling %{_MolePlayer}% ~ ~ ~ 1 1 1"
- set {molekit.%{_MolePlayer}%} to true
- set {isMole.%{_MolePlayer}%} to true
- set {HasMoleKit.%{_MolePlayer}%} to false
- broadcast "&8[&bMoles&8] &bSet &f&l%{_MoleAmount}%&b Mole(s) per team!"
- delete {_potMoles::*}
- else if arg-1 is equal to "delete" or "reset":
- if command sender does not have the permission "moles.delete":
- message "&8[&bMoles&8] &bNOPE!"
- execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
- stop trigger
- set {Mole} to false
- delete {Moles.IsMole::*}
- delete {Moles.MolesOfTeam::*}
- delete {fighterkit::*}
- loop {Mole.Moles::*}:
- delete {isMole.%loop-value%}
- delete {HasMoleKit.%loop-value%}
- delete {molekit.%loop-value%}
- delete {Mole.Moles::*}
- broadcast "&8[&bMoles&8] &bMoles have been reset!"
- loop all players:
- execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
- else if arg-1 is equal to "list" or "show":
- if command sender does not have the permission "moles.list":
- message "&8[&bMoles&8] &bNOPE!"
- execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
- stop trigger
- if {Mole.Moles::*} is not set:
- message "&8[&bMoles&8] &bThere are no moles!"
- else:
- message "&8[&bMoles&8] &f%{Mole.Moles::*}%"
- else if arg-1 is equal to "help":
- execute console command "/playsound note.pling %{_MolePlayer}% ~ ~ ~ 1 1 1"
- message "&8[&bMoles&8] &bMole Skript v1.1 commands:"
- message "&8[&bMoles&8] &b/moles set <amount>: sets moles"
- message "&8[&bMoles&8] &b/moles reset: removes variables, resets moles"
- message "&8[&bMoles&8] &b/moles list: lists all moles"
- else:
- message "&8[&bMoles&8] &b/moles help"
- on death of player:
- if {Moles} is true:
- if {Moles.IsMole::%player%} is set:
- delete {Mole.IsMole::%player%}
- delete {isMole:%player%}
- command /molekit [<text>] [<text>]:
- trigger:
- if {molekit.%command sender%} is true:
- {HasMoleKit.%command sender%} is false:
- {isMole.%command sender%} is true:
- if arg-1 is not set:
- message "&8[&bMoles&8] &bUse /molekit list to see the kits!"
- if arg-1 is "list":
- message "&8[&bMoles&8] &bThe mole kits are:"
- message "&8[&bMoles&8] &b1. &fBatman"
- message "&8[&bMoles&8] &b2. &fThe Troll"
- message "&8[&bMoles&8] &b3. &fThe Potter"
- message "&8[&bMoles&8] &b4. &fThe Fighter"
- message "&8[&bMoles&8] &b5. &fThe Trapper"
- message "&8[&bMoles&8] &b6. &fThe Pyro"
- message "&8[&bMoles&8] &b7. &fThe Ice Climber"
- message "&8[&bMoles&8] &b8. &fThe Berserker"
- message "&8[&bMoles&8] &b9. &fThe Chef"
- message "&8[&bMoles&8] &bUse &f/molekit info&b to learn about each kit!"
- message "&8[&bMoles&8] &bUse &f/molekit choose <1 - 9>&b to get your kit!"
- if arg-1 is "info" or "explain" or "learn":
- arg-2 is "1":
- message "&8[&bMoles&8] &bBatman gets an elytra, a lingering potion of invisibility, a jump boost potion, 64 bat spawn eggs and 16 ender pearls." to the command sender
- arg-2 is "2":
- message "&8[&bMoles&8] &bThe Troll gets a few different spawn eggs, 64 fireworks, 16 TNT, a lingering water bottle, a splash invis potion, a fishing rod and can take off his teammates' helmets with the /trollhelmets command." to the command sender
- arg-2 is "3":
- message "&8[&bMoles&8] &bThe Potter gets a variety of different potions." to the command sender
- arg-2 is "4":
- message "&8[&bMoles&8] &bThe Fighter gets a sharpness 2, sweeping edge 3 diamond sword, a bow, 48 arrows, 16 spectral arrows, 2 golden apples and a shield (which is the only shield you can use)." to the command sender
- arg-2 is "5":
- message "&8[&bMoles&8] &bThe Trapper gets 64 pistons, 64 sticky pistons, 64 redstone torches, 64 repeaters, 64 redstone, 64 TNT, 64 dispensers and 128 smooth stone." to the command sender
- arg-2 is "6":
- message "&8[&bMoles&8] &bThe Pyro gets 5 blaze spawn eggs, a flint and steel, a fire resistance potion, a blaze rod, 16 buckets and 64 magma blocks." to the command sender
- arg-2 is "7":
- message "&8[&bMoles&8] &bThe Ice Climber gets 64 slowness arrows, an efficiency V, unbreaking III golden pickaxe, 64 ice, 64 obsidian, frostwalker II diamond boots, 3 splash potions of slowness, 16 polar bear spawn eggs and 16 stray spawn eggs." to the command sender
- arg-2 is "8":
- message "&8[&bMoles&8] &bThe Berserker gets a sharpness 3, curse of vanishing diamond axe and can toggle his haste 2 with the /berserkerhaste command" to the command sender
- arg-2 is "9":
- message "&8[&bMoles&8] &bThe Chef gets 3 notch apples, 3 cake and 64 pumpkin pie." to the command sender
- arg-2 is not set:
- message "&bPlease specify which kit you'd like to learn about. 1-9."
- if arg-1 is "select" or "choose" or "pick":
- arg-2 is "1" or "Batman":
- give player 1 of elytra
- give player 64 bat spawn eggs
- give player 16 ender pearls
- give player 1 lingering invisibility potion item
- give player 1 jump boost potion item
- set {molekit.%command sender%} to false
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- arg-2 is "2" or "Troll" or "The Troll":
- give player 16 vex spawn eggs
- give player 8 guardian spawn eggs
- give player 4 creeper spawn eggs
- give player 64 squid spawn eggs
- give player 64 of 401
- give player 16 tnt
- give player a fishing rod of (luck of the sea 3)
- give player a extended splash invisibility potion item
- set {molekit.%command sender%} to false
- set {trollkit::%command sender%} to true
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- arg-2 is "3" or "Potter" or "The Potter":
- give player 1 strength potion item
- give player 1 invisibility potion item
- give player 1 fire resistance potion item
- give player 1 speed potion item
- give player 1 splash weakness potion item
- give player 1 splash poison potion item
- give player 1 splash slowness potion item
- give player 1 lingering harming potion item
- give player 1 lingering invisibility potion item
- set {molekit.%command sender%} to false
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- arg-2 is "4" or "Fighter" or "The Fighter":
- remove all shields from player's inventory
- give player a diamond sword of (sharpness 2 and sweeping edge 3)
- give player a bow
- give player 16 spectral arrows
- give player 2 golden apples
- give player 48 arrows
- give player a white shield of red saltire of (unbreaking 3)
- set {molekit.%command sender%} to false
- set {fighterkit::%command sender%} to true
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- arg-2 is "5" or "Trapper" or "The Trapper":
- give player 64 pistons
- give player 64 sticky pistons
- give player 64 of 76
- give player 64 redstone
- give player 64 of 356
- give player 64 tnt
- give player 64 dispensers
- give player 128 stone
- set {molekit.%command sender%} to false
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- arg-2 is "6" or "Pyro" or "The Pyro":
- give player 5 blaze spawn eggs
- give player a blaze rod
- give player 1 flint and steel
- give player 1 extended fire resistance potion item
- give player 16 buckets
- give player 64 of 213
- set {molekit.%command sender%} to false
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- arg-2 is "7" or "Ice Climber" or "The Ice Climber":
- give player 64 of 440
- give player a golden pickaxe of (efficiency 5 and unbreaking 3)
- give player 64 ice
- give player 64 obsidian
- give player 16 polar bear spawn eggs
- give player 16 stray spawn eggs
- give player diamond boots of (frostwalker 2)
- give player 3 extended splash slowness potion items
- set {molekit.%command sender%} to false
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- arg-2 is "8" or "Berserker" or "The Berserker":
- give diamond axe of (curse of vanishing and sharpness 3)
- set {molekit.%command sender%} to false
- set {berserkerkit::%command sender%} to true
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- arg-2 is "9" or "Chef" or "The Chef":
- give player 3 322:1
- give player 3 cake
- give player 64 pumpkin pie
- set {molekit.%command sender%} to false
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- else:
- message "&8[&bMoles&8]&fYou're not a mole!"
- if {HasMoleKit.%command sender%} is not set:
- if {isMole.%command sender%} is true:
- message "&8[&bMoles&8] &bYou've already gotten your kit!"
- command /mcc <text>:
- usage: /mcc <message>
- trigger:
- {isMole.%command sender%} is true:
- set {_player} to command sender
- loop all players:
- {isMole.%loop-player%} is true:
- message "&8[&bMoles&8] &f%command sender%&r: %arg%" to the loop-player
- else:
- message "&8[&bMoles&8] &fYou're not a mole!"
- command /mcl:
- usage: /mcl - broadcast location to other moles
- trigger:
- {isMole.%command sender%} is true:
- set {_moleLoc} to the command sender's location
- loop all players:
- {isMole.%loop-player%} is true:
- message "&8[&bMoles&8] &f%command sender%'s coords are:&b %{_moleLoc}%" to the loop-player
- else:
- message "&8[&bMoles&8] &fYou're not a mole!"
- command /mcp:
- usage: /mcp - list mole players alive
- trigger:
- {isMole.%command sender%} is true:
- loop all players:
- if {isMole.%loop-player%} is true:
- message "&8[&bMoles&8] &f%loop-player% "
- else:
- message "&8[&bMoles&8] &fYou're not a mole!"
- command /berserkerhaste:
- trigger:
- {berserkerkit::%command sender%} is set:
- if {berserkerhaste::%command sender%} is set:
- remove haste from command sender
- else:
- apply haste 2 to command sender for 999 days
- else:
- message "&8[&bMoles&8] &fYou're not a Berserker!"
- command /trollhelmets:
- trigger:
- {trollkit::%command sender%} is set:
- loop {Team.%{Team.InTeam::%command sender%}%::*}:
- loop-value is online
- set {molehelmet::%loop-value%} to helmet of loop-value
- clear loop-value's helmet slot
- wait 2 minutes
- loop {Team.%{Team.InTeam::%command sender%}%::*}:
- if loop-value is online:
- give loop-value {molehelmet::%loop-value%}
- else:
- set {molehelmetschedule::%loop-value%} to true
- else:
- message "&8[&bMoles&8] &fYou're not a Troll!"
- on death of player:
- if {Mole} is true:
- execute console command "/team leave %player%"
- on join:
- if {Moles} is true:
- if {isMole.%player%} is true:
- message "&8[&bMoles&8] &fYou're a mole!"
- if {HasMoleKit.%player%} is false:
- message "&8[&bMoles&8] &fHey! Use your /molekit!"
- if {molehelmetschedule::%player%} is set:
- give player {molehelmet::%player%}
- delete {molehelmetschedule::%player%}
- on craft of shield:
- if {fighterkit::%player%} is set:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement