Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Welcome to Moles Skript v3!
- # Thanks to bitlington for the initial push with the first version.
- options:
- P: &8[&bMoles&8]&r
- V: v3
- command /moles [<text>] [<integer>]:
- permission: skript.op
- trigger:
- if arg-1 is not set:
- message "{@P} /moles help"
- else if arg-1 is equal to "set":
- if command sender does not have the permission "moles.set":
- message "{@P} NOPE!"
- 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 "&eYou 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 "{@P} Set &b&l%{_MoleAmount}%&r Mole per team by &b&l%command sender%!"
- delete {_potMoles::*}
- else if arg-1 is equal to "delete" or "reset":
- if command sender does not have the permission "moles.delete":
- message "{@P} NOPE!"
- execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
- stop trigger
- set {Mole} to false
- delete {Moles.IsMole::*}
- delete {Moles.MolesOfTeam::*}
- loop {Mole.Moles::*}:
- delete {isMole.%loop-value%}
- delete {HasMoleKit.%loop-value%}
- delete {molekit.%loop-value%}
- delete {Mole.Moles::*}
- broadcast "{@P} Reset by &b&l%command sender%!"
- 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 "{@P} NOPE!"
- execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
- stop trigger
- if {Mole.Moles::*} is not set:
- message "{@P} There are no moles!"
- else:
- message "{@P} %{Mole.Moles::*}%"
- else if arg-1 is equal to "help":
- execute console command "/playsound note.pling %command sender% ~ ~ ~ 1 1 1"
- message "{@P} Mole Skript &a{@V}&r commands:"
- message "{@P} /moles &aset&r <amount>: sets moles"
- message "{@P} /moles &areset&r: removes variables, resets moles"
- message "{@P} /moles &alist&r: lists all moles"
- message "{@P} /molekit &astats&r: see stats for each kit"
- else:
- command sender command "/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>] [<player>]:
- trigger:
- if {molekit.%command sender%} is true:
- {HasMoleKit.%command sender%} is false:
- {isMole.%command sender%} is true:
- if arg-1 is not set:
- message "{@P} Use /molekit list to see the kits!"
- if arg-1 is "list":
- message "{@P} The mole kits are:"
- message "{@P} &91. &rThe Mobber"
- message "{@P} &92. &rThe Troll"
- message "{@P} &93. &rThe Potter"
- message "{@P} &94. &rThe Fighter"
- message "{@P} &95. &rThe Trapper"
- message "{@P} &96. &rThe Pyro"
- message "{@P} &97. &rThe Tank"
- message "{@P} &98. &rThe Horse Rider"
- message "{@P} &99. &rThe Enchanter"
- message "{@P} &910. &rThe Wolf Tamer"
- message "{@P} Use &9/molekit info&r to learn about each kit!"
- message "{@P} Use &9/molekit choose &r<&91&r - &910&r> to get your kit!"
- if arg-1 is "info" or "explain" or "learn":
- arg-2 is "1":
- message "{@P} The Mobber gets a various assortment of mob spawn eggs." to the command sender
- arg-2 is "2":
- message "{@P} The Troll gets 16 cobweb as well as 5 TnT and 2 end portal blocks." to the command sender
- arg-2 is "3":
- message "{@P} The Potter gets a weakness potion, a swiftness potions, and a poison potion." to the command sender
- arg-2 is "4":
- message "{@P} The Fighter two diamonds, 4 sticks, 3 string, 64 arrows, and a golden apple." to the command sender
- arg-2 is "5":
- message "{@P} The Trapper gets 16 TnT, 2 of each type of piston, 64 redstone, and a flint and steel." to the command sender
- arg-2 is "6":
- message "{@P} The Pyro gets 5 blaze spawn eggs, a flint and steel, a fire resist potion, and 3 TnT." to the command sender
- arg-2 is "7":
- message "{@P} The Tank gets a full set of diamond armor with 5 durability left." to the command sender
- arg-2 is "8":
- message "{@P} The Horse rider gets a horse spawn egg, a saddle, horse armor, and sugar." to the command sender
- arg-2 is "9":
- message "{@P} The Enchanter gets the ingredients to make an enchantment table and EXP bottles." to the command sender
- arg-2 is "10":
- message "{@P} The Wolf Tamer gets 10 wolf spawn eggs and a stack of bones." to the command sender
- arg-2 is not set:
- message "Please specify which kit you'd like to learn about. 1-10."
- if arg-1 is "select" or "choose" or "pick":
- set {_p} to arg-3
- open chest with 1 row named "Mole Kits" to {_p}
- format slot 0 of {_p} with creeper head named "The Mobber" to run "molekit choose 1 %{_p}%"
- format slot 0 of {_p} with creeper head named "The Mobber" to run "molekit choose 1"
- format slot 0 of {_p} with creeper head named "The Mobber" to run "molekit choose 1"
- format slot 0 of {_p} with creeper head named "The Mobber" to run "molekit choose 1"
- arg-2 is "1" or "Mobber" or "The Mobber":
- give {_p} 3 creeper spawn egg
- give {_p} 3 spider spawn egg
- give {_p} 3 skeleton spawn egg
- give {_p} 3 zombie spawn egg
- set {molekit.%{_p}%} to false
- execute console command "/playsound note.pling %{_p}% ~ ~ ~ 1 1 1"
- if {Moles.Kit.1} is not set:
- set {Moles.Kit.1} to 0
- add 1 to {Moles.Kit.1}
- arg-2 is "2" or "Troll" or "The Troll":
- give {_p} 16 cobweb
- give {_p} 5 TNT
- give {_p} 2 creeper spawn egg
- set {molekit.%{_p}%} to false
- execute console command "/playsound note.pling %{_p}% ~ ~ ~ 1 1 1"
- if {Moles.Kit.2} is not set:
- set {Moles.Kit.2} to 0
- add 1 to {Moles.Kit.2}
- arg-2 is "3" or "Potter" or "The Potter":
- give {_p} 1 unextended splash Weakness potion II item
- give {_p} 1 potion of:8226
- give {_p} 1 potion of:16420
- set {molekit.%{_p}%} to false
- execute console command "/playsound note.pling %{_p}% ~ ~ ~ 1 1 1"
- if {Moles.Kit.3} is not set:
- set {Moles.Kit.3} to 0
- add 1 to {Moles.Kit.3}
- arg-2 is "4" or "Fighter" or "The Fighter":
- give {_p} 2 diamonds
- give {_p} 3 string
- give {_p} 4 sticks
- give {_p} 1 golden apple
- give {_p} 64 arrows
- set {molekit.%{_p}%} to false
- execute console command "/playsound note.pling %{_p}% ~ ~ ~ 1 1 1"
- if {Moles.Kit.4} is not set:
- set {Moles.Kit.4} to 0
- add 1 to {Moles.Kit.4}
- arg-2 is "5" or "Trapper":
- give {_p} 16 TNT
- give {_p} 2 piston
- give {_p} 2 sticky piston
- give {_p} 64 redstone
- give {_p} 1 flint and steel
- set {molekit.%{_p}%} to false
- execute console command "/playsound note.pling %{_p}% ~ ~ ~ 1 1 1"
- if {Moles.Kit.5} is not set:
- set {Moles.Kit.5} to 0
- add 1 to {Moles.Kit.5}
- arg-2 is "6" or "Pyro" or "The Pyro":
- give {_p} 5 blaze spawn egg
- give {_p} 1 flint and steel
- give {_p} 1 potion of:8227
- give {_p} 3 TNT
- set {molekit.%{_p}%} to false
- execute console command "/playsound note.pling %{_p}% ~ ~ ~ 1 1 1"
- if {Moles.Kit.6} is not set:
- set {Moles.Kit.6} to 0
- add 1 to {Moles.Kit.6}
- arg-2 is "7" or "Tank":
- set {_helmet} to a diamond helmet
- set the data value of {_helmet} to 523
- give {_p} 1 of {_helmet}
- set {_chestplate} to a diamond chestplate
- set the data value of {_chestplate} to 523
- give {_p} 1 of {_chestplate}
- set {_leggings} to diamond leggings
- set the data value of {_leggings} to 523
- give {_p} 1 of {_leggings}
- set {_boots} to diamond boots
- set the data value of {_boots} to 523
- give {_p} 1 of {_boots}
- execute console command "/playsound note.pling %{_p}% ~ ~ ~ 1 1 1"
- if {Moles.Kit.7} is not set:
- set {Moles.Kit.7} to 0
- add 1 to {Moles.Kit.7}
- arg-2 is "8" or "Horse" or "Horseman":
- give {_p} 1 horse spawn egg
- give {_p} 1 saddle
- give {_p} 10 sugar
- give {_p} 1 gold horse armor
- set {molekit.%{_p}%} to false
- execute console command "/playsound note.pling %{_p}% ~ ~ ~ 1 1 1"
- if {Moles.Kit.8} is not set:
- set {Moles.Kit.8} to 0
- add 1 to {Moles.Kit.8}
- arg-2 is "9" or "Enchant" or "Enchanter" or "Enchanting":
- give {_p} 4 obsidian
- give {_p} 2 diamonds
- give {_p} 1 book
- give {_p} 10 experience bottles
- give {_p} 31 iron ingots
- set {molekit.%{_p}%} to false
- execute console command "/playsound note.pling %{_p}% ~ ~ ~ 1 1 1"
- if {Moles.Kit.9} is not set:
- set {Moles.Kit.9} to 0
- add 1 to {Moles.Kit.9}
- arg-2 is "10" or "Wolf" or "Wolves":
- give {_p} 10 wolf spawn eggs
- give {_p} 64 bones
- set {molekit.%{_p}%} to false
- execute console command "/playsound note.pling %{_p}% ~ ~ ~ 1 1 1"
- if {Moles.Kit.10} is not set:
- set {Moles.Kit.10} to 0
- add 1 to {Moles.Kit.10}
- else:
- message "{@P} You're not a mole!"
- if {HasMoleKit.%{_p}%} is not set:
- if {isMole.%{_p}%} is true:
- message "{@P} You've already gotten your kit!"
- if command sender is op:
- arg-1 is "stats":
- loop 10 times:
- if {Moles.Kit.%loop-number%} is not set:
- message "{@P} Kit &9%loop-number%: &aNone"
- if {Moles.Kit.%loop-number%} is set:
- message "{@P} Kit &9%loop-number%: &a%{Moles.Kit.%loop-number%}%"
- 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 "{@P} &e%command sender%&r: %arg%" to the loop-player
- else:
- message "{@P} You'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 "{@P} &9%command sender%'s coords are:&r %{_moleLoc}%" to the loop-player
- else:
- message "{@P} You'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 "{@P} %loop-player% "
- else:
- message "{@P} You're not a mole!"
- 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 "{@P} You're a mole!"
- if {HasMoleKit.%player%} is false:
- message "{@P} Hey! Use your /molekit!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement