Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &f[&bMoles&f]&f
- command /moles [<text>] [<integer>]:
- permission: skript.op
- trigger:
- if arg-1 is not set:
- execute console command "/playsound note.pling %{_MolePlayer}% ~ ~ ~ 1 1 1"
- message "{@P} /moles set <amount>: sets moles"
- message "{@P} /moles reset: removes variables, resets moles"
- message "{@P} /moles list: lists all moles"
- 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-2
- set {Mole.MoleOfTeam::%loop-value-2%} 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} &f%{_MoleAmount}% mole(s) has been set per team by %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} is now Disabled"
- 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:
- execute console command "/playsound note.pling %{_MolePlayer}% ~ ~ ~ 1 1 1"
- message "{@P} /moles set <amount>: sets moles"
- message "{@P} /moles reset: removes variables, resets moles"
- message "{@P} /moles list: lists all moles"
- on death of player:
- if {Moles} is true:
- if {Moles.IsMole::%player%} is set:
- delete {Mole.IsMole::%player%}
- delete {isMole:%player%}
- command /molehelp:
- usage: /molehelp
- trigger:
- message "{@P} Use the command /mcc or /molechat to speak to your fellow moles"
- message "{@P} Use the command /mcl or /moleloc to tell your fellow moles where you are"
- message "{@P} Use the command /mcp or /molelist to find out who your fellow moles are"
- command /mcc <text>:
- aliases: /molechat
- 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:
- aliases: /moleloc
- 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:
- aliases: /molelist
- 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!"
- command /molekit:
- trigger:
- if {isMole.%player%} is true:
- if {HasMoleKit.%player%} is false:
- set {_chestplate} to a diamond chestplate
- set the data value of {_chestplate} to 523
- wait 3 ticks
- open chest with 1 rows named "&aMole Kit &8»" to player
- format slot 0 of player with cobweb named "&eThe Troll:" with lore " 16 Cobwebs || 5 TNT || 1 Flint And Steel" to close then run "sudo %player% /moletroll"
- format slot 1 of player with potion of:8226 with no nbt named "&eThe Potter:" with lore " 1 Speed 2 Potion || 1 Splash Potion Of Weakness || 1 Splash Potion Of Poison 2" to close then run "sudo %player% /molepotter"
- format slot 2 of player with diamond sword with no nbt named "&eThe Fighter:" with lore " 1 Diamond Sword || 1 Golden Apple || 1 Fishing Rod" to close then run "sudo %player% /molefighter"
- format slot 3 of player with tnt named "&eThe Trapper:" with lore " 16 TNT || 2 Of Each Piston || 1 Flint and Steel" to close then run "sudo %player% /moletrapper"
- format slot 4 of player with blaze spawn egg named "&eThe Pyro:" with lore " 5 Blaze Spawn Eggs || 1 Fire Resistance Potion || 3 TNT" to close then run "sudo %player% /molepyro"
- format slot 5 of player with {_chestplate} with no nbt named "&eThe Tank:" with lore " 1 of each part of Diamond gear with 5 duribility left" to close then run "sudo %player% /moletank"
- format slot 6 of player with enchantment_table named "&eThe Enchanter:" with lore " 1 Enchanting Table || 64 Experience Bottles || 64 Lapis" to close then run "sudo %player% /moleenchanter"
- format slot 7 of player with golden apple named "&eThe Healer:" with lore " 2 Golden Apples || 1 Healing Potion || 1 Splash Healing Potion" to close then run "sudo %player% /molehealer"
- format slot 8 of player with bow named "&eThe Projectile:" with lore " 1 Bow || 64 Arrows || 1 Fishing Rod" to close then run "sudo %player% /moleprojectile"
- else:
- message "{@P} You already have your mole kit"
- else:
- message "{@P} You are not the mole"
- command /moletroll:
- trigger:
- wait 3 ticks
- open chest with 1 rows named "&aMole Kit &8» &eTroll" to player
- format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the troll kit" to close then run "sudo %player% /moletrollgive"
- format slot 4 of player with book named "&f<bold>Do you wish to get the troll kit?:" to be unstealable
- format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the troll kit" to close then run "sudo %player% /molekit"
- command /moletrollgive:
- trigger:
- if {isMole.%player%} is true:
- if {HasMoleKit.%player%} is false:
- set {HasMoleKit.%player%} to true
- give player 16 cobweb
- give player 5 TNT
- give player 1 flint and steel
- else:
- message "{@P} You already have your mole kit"
- else:
- message "{@P} You are not the mole"
- command /molepotter:
- trigger:
- wait 3 ticks
- open chest with 1 rows named "&aMole Kit &8» &ePotter" to player
- format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the potter kit" to close then run "sudo %player% /molepottergive"
- format slot 4 of player with book named "&f<bold>Do you wish to get the potter kit?:" to be unstealable
- format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the potter kit" to close then run "sudo %player% /molekit"
- command /molepottergive:
- trigger:
- if {isMole.%player%} is true:
- if {HasMoleKit.%player%} is false:
- set {HasMoleKit.%player%} to true
- give player 1 unextended splash Weakness potion II item
- give player 1 potion of:8226
- give player 1 potion of:16420
- else:
- message "{@P} You already have your mole kit"
- else:
- message "{@P} You are not the mole"
- command /molefighter:
- trigger:
- wait 3 ticks
- open chest with 1 rows named "&aMole Kit &8» &eFighter" to player
- format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the fighter kit" to close then run "sudo %player% /molefightergive"
- format slot 4 of player with book named "&f<bold>Do you wish to get the fighter kit?:" to be unstealable
- format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the fighter kit" to close then run "sudo %player% /molekit"
- command /molefightergive:
- trigger:
- if {isMole.%player%} is true:
- if {HasMoleKit.%player%} is false:
- set {HasMoleKit.%player%} to true
- give player 2 diamonds
- give player 1 golden apple
- give player 1 fishing rod
- else:
- message "{@P} You already have your mole kit"
- else:
- message "{@P} You are not the mole"
- command /moletrapper:
- trigger:
- wait 3 ticks
- open chest with 1 rows named "&aMole Kit &8» &eTrapper" to player
- format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the trapper kit" to close then run "sudo %player% /moletrappergive"
- format slot 4 of player with book named "&f<bold>Do you wish to get the trapper kit?:" to be unstealable
- format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the trapper kit" to close then run "sudo %player% /molekit"
- command /moletrappergive:
- trigger:
- if {isMole.%player%} is true:
- if {HasMoleKit.%player%} is false:
- set {HasMoleKit.%player%} to true
- give player 16 TNT
- give player 2 piston
- give player 2 sticky piston
- give player 1 flint and steel
- else:
- message "{@P} You already have your mole kit"
- else:
- message "{@P} You are not the mole"
- command /molepyro:
- trigger:
- wait 3 ticks
- open chest with 1 rows named "&aMole Kit &8» &ePyro" to player
- format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the pyro kit" to close then run "sudo %player% /molepyrogive"
- format slot 4 of player with book named "&f<bold>Do you wish to get the pyro kit?:" to be unstealable
- format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the pyro kit" to close then run "sudo %player% /molekit"
- command /molepyrogive:
- trigger:
- if {isMole.%player%} is true:
- if {HasMoleKit.%player%} is false:
- set {HasMoleKit.%player%} to true
- give player 5 blaze spawn egg
- give player 1 potion of:8227
- give player 3 TNT
- else:
- message "{@P} You already have your mole kit"
- else:
- message "{@P} You are not the mole"
- command /moletank:
- trigger:
- wait 3 ticks
- open chest with 1 rows named "&aMole Kit &8» &eTank" to player
- format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the tank kit" to close then run "sudo %player% /moletankgive"
- format slot 4 of player with book named "&f<bold>Do you wish to get the tank kit?:" to be unstealable
- format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the tank kit" to close then run "sudo %player% /molekit"
- command /moletankgive:
- trigger:
- if {isMole.%player%} is true:
- if {HasMoleKit.%player%} is false:
- set {HasMoleKit.%player%} to true
- set {_helmet} to a diamond helmet
- set the data value of {_helmet} to 358
- give player 1 of {_helmet}
- set {_chestplate} to a diamond chestplate
- set the data value of {_chestplate} to 523
- give player 1 of {_chestplate}
- set {_leggings} to diamond leggings
- set the data value of {_leggings} to 490
- give player 1 of {_leggings}
- set {_boots} to diamond boots
- set the data value of {_boots} to 424
- give player 1 of {_boots}
- else:
- message "{@P} You already have your mole kit"
- else:
- message "{@P} You are not the mole"
- command /moleEnchanter:
- trigger:
- wait 3 ticks
- open chest with 1 rows named "&aMole Kit &8» &eEnchanter" to player
- format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the enchanter kit" to close then run "sudo %player% /moleEnchantergive"
- format slot 4 of player with book named "&f<bold>Do you wish to get the enchanter kit?:" to be unstealable
- format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the enchanter kit" to close then run "sudo %player% /molekit"
- command /moleEnchantergive:
- trigger:
- if {isMole.%player%} is true:
- if {HasMoleKit.%player%} is false:
- set {HasMoleKit.%player%} to true
- give player 1 of enchantment table
- give player 64 of bottle_o'_enchanting
- give player 64 of lapis
- else:
- message "{@P} You already have your mole kit"
- else:
- message "{@P} You are not the mole"
- command /molehealer:
- trigger:
- wait 3 ticks
- open chest with 1 rows named "&aMole Kit &8» &eHealer" to player
- format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the healer kit" to close then run "sudo %player% /molehealergive"
- format slot 4 of player with book named "&f<bold>Do you wish to get the healer kit?:" to be unstealable
- format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the healer kit" to close then run "sudo %player% /molekit"
- command /molehealergive:
- trigger:
- if {isMole.%player%} is true:
- if {HasMoleKit.%player%} is false:
- set {HasMoleKit.%player%} to true
- give player 2 golden apples
- give player 1 of potion of:8261
- give player 1 of potion of:16453
- else:
- message "{@P} You already have your mole kit"
- else:
- message "{@P} You are not the mole"
- command /moleprojectile:
- trigger:
- wait 3 ticks
- open chest with 1 rows named "&aMole Kit &8» &eProjectile" to player
- format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the projectile kit" to close then run "sudo %player% /moleprojectilegive"
- format slot 4 of player with book named "&f<bold>Do you wish to get the projectile kit?:" to be unstealable
- format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the projectile kit" to close then run "sudo %player% /molekit"
- command /moleprojectilegive:
- trigger:
- if {isMole.%player%} is true:
- if {HasMoleKit.%player%} is false:
- set {HasMoleKit.%player%} to true
- give player 1 bow
- give player 64 arrows
- give player 1 fishing rod
- else:
- message "{@P} You already have your mole kit"
- else:
- message "{@P} You are not the mole"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement