Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- mcPrefix: &6MinePeak: &r
- # permission message: {@mcPrefix} &cYou have to be &6Super &cto use this command sorry :/
- command /host [<text>]:
- trigger:
- if arg-1 is not set:
- send "{@mcPrefix} &dcurrent events avaliable:"
- send "&dSurvive, Parkour"
- else if arg-1 is "survive":
- if player doesn't have the permission "host.survive":
- send "{@mcPrefix} &cYour permission is denied!"
- else:
- if {host} is true:
- send "&cYou can't host an event over another event!"
- else if {host} is false:
- execute console command "/worldborder set 130 in world ""events"""
- set {survivalgame} to true
- set {parkourgame} to false
- set {westart} to false
- set {host} to true
- set {eventplayercount} to 0
- send "&c&lDO NOT LEAVE, you could be tempbanned or your permission taken off!"
- send " " to all players
- send "{@mcPrefix} &d&l%player% is hosting survive! Do /join to join the event!" to all players
- set {survivalgame} to true
- wait 30 seconds
- send "{@mcPrefix} &d&l30 seconds left survive is being hosted! Do /join to join the event!" to all players
- wait 15 seconds
- send "{@mcPrefix} &d&l15 seconds left survive is being hosted! Do /join to join the event!" to all players
- wait 10 seconds
- send "{@mcPrefix} &d&l5 seconds left survive is being hosted! Do /join to join the event!" to all players
- wait 5 seconds
- send "{@mcPrefix} &d&lThe event has started!" to all players
- set {estart} to true
- set {westart} to true
- set {eip} to true
- else if arg-1 is "parkour":
- if player doesn't have the permission "host.parkour":
- send "&c&lYou don't have permissions!"
- else:
- if {host} is true:
- send "&cYou can't host an event over another event!"
- else if {host} is false:
- set {parkourgame} to true
- set {survivalgame} to false
- set {westart} to false
- set {host} to true
- set {eventplayercount} to 0
- send "&c&lDO NOT LEAVE, you could be tempbanned or your permission taken off!"
- send " " to all players
- send "{@mcPrefix} &d&l%player% is hosting parkour! Do /join to join the event!" to all players
- wait 30 seconds
- send "{@mcPrefix} &d&l30 seconds left parkour is being hosted! Do /join to join the event!" to all players
- wait 15 seconds
- send "{@mcPrefix} &d&l15 seconds left parkour is being hosted! Do /join to join the event!" to all players
- wait 10 seconds
- send "{@mcPrefix} &d&l5 seconds left parkour is being hosted! Do /join to join the event!" to all players
- wait 5 seconds
- send "{@mcPrefix} &d&lThe event has started!" to all players
- set {westart} to true
- set {eip} to true
- set {pest} to true
- else if arg-1 is "parkour2":
- if player doesn't have the permission "host.parkour":
- send "&c&lYou don't have permissions!"
- else:
- if {host} is true:
- send "&cYou can't host an event over another event!"
- else if {host} is false:
- set {parkourgame} to true
- set {survivalgame} to false
- set {westart} to false
- set {host} to true
- set {eventplayercount} to 0
- send "&c&lDO NOT LEAVE, you could be tempbanned or your permission taken off!"
- send " " to all players
- send "{@mcPrefix} &a&l%player% is hosting parkour! Do /join to join the event!" to all players
- wait 30 seconds
- send "{@mcPrefix} &a&l30 seconds left parkour is being hosted! Do /join to join the event!" to all players
- wait 15 seconds
- send "{@mcPrefix} &a&l15 seconds left parkour is being hosted! Do /join to join the event!" to all players
- wait 10 seconds
- send "{@mcPrefix} &a&l5 seconds left parkour is being hosted! Do /join to join the event!" to all players
- wait 5 seconds
- send "{@mcPrefix} &a&lThe event has started!" to all players
- set {westart} to true
- set {eip} to true
- set {pest} to true
- else if arg-1 is "skywars":
- if player doesn't have the permission "host.skywars":
- send "&c&lYou don't have permissions!"
- else:
- if {host} is true:
- send "&cYou can't host an event over another event!"
- else if {host} is false:
- set {swgame} to true
- set {parkourgame} to false
- set {survivalgame} to false
- set {westart} to false
- set {host} to true
- set {eventplayercount} to 0
- send "&c&lDO NOT LEAVE, you could be tempbanned or your permission taken off!"
- send " " to all players
- send "{@mcPrefix} &a&l%player% is hosting skywars 4 people only! Do /join to join the event!" to all players
- wait 30 seconds
- send "{@mcPrefix} &a&l30 seconds left skywars is being hosted 4 people only! Do /join to join the event!" to all players
- wait 15 seconds
- send "{@mcPrefix} &a&l15 seconds left skywars is being hosted 4 people only! Do /join to join the event!" to all players
- wait 10 seconds
- send "{@mcPrefix} &a&l5 seconds left skywars is being hosted 4 people only! Do /join to join the event!" to all players
- wait 5 seconds
- send "{@mcPrefix} &a&lThe event has started!" to all players
- set {westart} to true
- set {eip} to true
- set block at location at -23, 68, -6 in world "sw" to air
- set block at location at -45, 68, -8 in world "sw" to air
- set block at location at -43, 68, -28 in world "sw" to air
- set block at location at -65, 68, -8 in world "sw" to air
- loop all players:
- if {eplayer::%loop-player%} is true:
- make console execute command "/cc take v swop 10000 %loop-player%"
- make console execute command "/cc give v skywars 3 %loop-player%"
- make console execute command "/cc give v swop 4 %loop-player%"
- make console execute command "/ekit swwool %loop-player%"
- else if arg-1 is "boss":
- if player doesn't have the permission "host.boss":
- send "&c&lYou don't have permissions!"
- else:
- if {host} is true:
- send "&cYou can't host an event over another event!"
- else if {host} is false:
- set {bossbattlegame} to true
- set {survivalgame} to false
- set {westart} to false
- set {host} to true
- set {eventplayercount} to 0
- send "&c&lDO NOT LEAVE, you could be tempbanned or your permission taken off!"
- send " " to all players
- send "{@mcPrefix} &a&l%player% is hosting parkour! Do /join to join the event!" to all players
- wait 30 seconds
- send "{@mcPrefix} &a&l30 seconds left boss battles is being hosted! Do /join to join the event!" to all players
- wait 15 seconds
- send "{@mcPrefix} &a&l15 seconds left parkour is being hosted! Do /join to join the event!" to all players
- wait 10 seconds
- send "{@mcPrefix} &a&l5 seconds left parkour is being hosted! Do /join to join the event!" to all players
- wait 5 seconds
- send "{@mcPrefix} &a&lThe event has started!" to all players
- set {westart} to true
- set {eip} to true
- set {pest} to true
- else if arg-1 is "end":
- if player doesn't have the permission "host.end":
- send "&cNo perms!"
- else:
- set {eventplayercount} to 1
- broadcast "&cThe event was ended :("
- set {host} to false
- set {eip} to true
- else if arg-1 is "fix":
- if player doesn't have the permission "host.fix":
- send "&cNo perms!"
- else:
- loop all players:
- set {eplayer::%loop-player%} to true
- set {eip} to true
- command /join:
- trigger:
- if {host} is false:
- send "{@mcPrefix} &aThere is no event on :("
- else if {host} is true:
- if {eip} is true:
- send "&cYou can't join now!"
- else:
- if {survivalgame} is true:
- teleport player to location at 205, 4, -222 in world "cave2"
- broadcast "{@mcPrefix} &a&l%player% has joined the event!"
- add 1 to {eventplayercount}
- make console execute command "/tab player %player% tabprefix &c"
- make console execute command "/tab player %player% tagprefix &c"
- wait 2 tick
- make console execute command "/clear %player% **"
- remove saturation from the player
- make console execute command "/heal %player%"
- set {eplayer::%player%} to true
- apply potion of swiftness of tier 1 to player for 99999 seconds
- make console execute command "/give %player% steak"
- else if {parkourgame} is true:
- teleport player to location at 605, 19, -222 in world "cave2"
- broadcast "{@mcPrefix} &a&l%player% has joined the event!"
- wait 2 tick
- make console execute command "/clear %player% **"
- make console execute command "/tab player %player% tabprefix &c"
- make console execute command "/tab player %player% tagprefix &c"
- remove saturation from the player
- make console execute command "/heal %player%"
- set {eplayer::%player%} to true
- apply potion of saturation of tier 10 to player for 99999 seconds
- else if {swgame} is true:
- if {eventplayercount} = 4:
- send "&cThe event is full!"
- else if {eventplayercount} = 0:
- broadcast "{@mcPrefix} &a&l%player% has joined the event!"
- add 1 to {eventplayercount}
- wait 2 tick
- make console execute command "/clear %player% **"
- remove saturation from the player
- make console execute command "/heal %player%"
- make console execute command "/tab player %player% tabprefix &c"
- make console execute command "/tab player %player% tagprefix &c"
- set {eplayer::%player%} to true
- apply potion of saturation of tier 10 to player for 99999 seconds
- teleport player to location at -23, 69, -6 in world "sw"
- else if {eventplayercount} = 1:
- broadcast "{@mcPrefix} &a&l%player% has joined the event!"
- add 1 to {eventplayercount}
- wait 2 tick
- make console execute command "/clear %player% **"
- make console execute command "/tab player %player% tabprefix &c"
- make console execute command "/tab player %player% tagprefix &c"
- remove saturation from the player
- make console execute command "/heal %player%"
- set {eplayer::%player%} to true
- apply potion of saturation of tier 10 to player for 99999 seconds
- teleport player to location at -45, 69, 11 in world "sw"
- else if {eventplayercount} = 2:
- broadcast "{@mcPrefix} &a&l%player% has joined the event!"
- add 1 to {eventplayercount}
- wait 2 tick
- make console execute command "/clear %player% **"
- remove saturation from the player
- make console execute command "/heal %player%"
- make console execute command "/tab player %player% tabprefix &c"
- make console execute command "/tab player %player% tagprefix &c"
- set {eplayer::%player%} to true
- apply potion of saturation of tier 10 to player for 99999 seconds
- teleport player to location at -43, 69, -28 in world "sw"
- else if {eventplayercount} = 3:
- broadcast "{@mcPrefix} &a&l%player% has joined the event!"
- add 1 to {eventplayercount}
- wait 2 tick
- make console execute command "/clear %player% **"
- make console execute command "/tab player %player% tabprefix &c"
- make console execute command "/tab player %player% tagprefix &c"
- remove saturation from the player
- make console execute command "/heal %player%"
- set {eplayer::%player%} to true
- apply potion of saturation of tier 10 to player for 99999 seconds
- teleport player to location at -65, 69, -8 in world "sw"
- every tick:
- if {pest} is true:
- set {pest} to false
- loop all players:
- if {eplayer::%loop-player%} is true:
- teleport loop-player to location at 605, 14, -231 in world "cave2"
- every tick:
- if {estart} is true:
- set {estart} to false
- set {ebspawn} to location at (205, 4, -222) in world "cave2"
- spawn a zombie at {ebspawn}
- make console execute command "/time set 12am cave2"
- apply health boost 20 to the spawned entity for 9999 minutes
- apply fire resistance 20 to the spawned entity for 9999 minutes
- apply regeneration 100 to the spawned entity for 3 seconds
- heal the last spawned zombie by 100
- apply strength 2 to the spawned entity for 99999 minutes
- set {ezb} to true
- set {bossfight} to true
- strike lightning at {ebspawn}
- strike lightning at {ebspawn}
- strike lightning at {ebspawn}
- strike lightning at {ebspawn}
- strike lightning at {ebspawn}
- strike lightning at {ebspawn}
- strike lightning at {ebspawn}
- strike lightning at {ebspawn}
- set helmet of last spawned entity to tnt
- set chestplate of last spawned entity to iron chestplate
- wait 3 seconds
- apply regeneration 1 to the spawned entity for 99999 minutes
- apply speed 6 to the spawned entity for 99999 minutes
- every second:
- if {westart} is true:
- if {survivalgame} is true:
- spawn a zombie at {ebspawn}
- apply regeneration 1 to the spawned entity for 99999 minutes
- apply speed 6 to the spawned entity for 99999 minutes
- every 5 seconds:
- if {westart} is true:
- if {survivalgame} is true:
- spawn a skeleton at {ebspawn}
- apply regeneration 1 to the spawned entity for 99999 minutes
- apply speed 6 to the spawned entity for 99999 minutes
- every 10 seconds:
- if {westart} is true:
- spawn a slime at {ebspawn}
- apply regeneration 1 to the spawned entity for 99999 minutes
- apply speed 6 to the spawned entity for 99999 minutes
- every 30 seconds:
- if {westart} is true:
- spawn a blaze at {ebspawn}
- apply regeneration 1 to the spawned entity for 99999 minutes
- apply speed 6 to the spawned entity for 99999 minutes
- every 60 seconds:
- if {westart} is true:
- spawn a wither at {ebspawn}
- make execute console command "/worldborder set 20 60 in world "cave2""
- every tick:
- if {host} is true:
- if {survivalgame} is true:
- if {westart} is true:
- if {eventplayercount} = 1:
- loop all players:
- if {eplayer::%loop-player%} is true:
- broadcast "&c%loop-player% won the event!"
- make console execute command "/cc give v op 1 %loop-player%"
- set {host} to false
- set {survivalgame} to false
- set {westart} to false
- set {eplayer::%loop-player%} to false
- make console execute command "/spawn %loop-player%"
- make console execute command "/killall mobs cave2"
- execute console command "/worldborder set 100000 in world ""cave2"""
- set {eip} to false
- on command:
- if {eplayer::%player%} is true:
- if player doesn't have the permission "host.bypass":
- cancel event
- send "&cYour in an event you cannot do any commands at this time >:("
- on death:
- if {eplayer::%player%} is true:
- set {eplayer::%player%} to false
- remove 1 from {eventplayercount}
- make console execute command "/tab player %player% remove"
- command /unglitchevent:
- permission: "unglitchevent"
- trigger:
- loop all players:
- set {eplayer::%loop-player%} to false
- set {eventplayercount} to 1
- set {host} to false
- set {westart} to false
- set {eip} to false
- teleport player to location at 605, 19, -222 in world "cave2"
- on quit:
- if {eplayer::%player%} is true:
- set {eplayer::%player%} to false
- make console execute command "/kill %player%"
- on walking on water:
- if {eplayer::%player%} is true:
- if {parkourgame} is true:
- teleport player to location at {checkpoint::%player%}
- send "&c&lBad"
- on walking on diamond block:
- if {eplayer::%player%} is true:
- if {parkourgame} is true:
- set {checkpoint::%player%} to location at player
- send "&aCheckpoint!"
- on walking on gold block:
- if {eplayer::%player%} is true:
- if {parkourgame} is true:
- if {westart} is true:
- set {parkourgm} to player
- set {epgame} to true
- every tick:
- if {epgame} is true:
- if {parkourgame} is true:
- if {westart} is true:
- if {host} is true:
- set {epgame} to false
- make console execute command "/cc give v op 1 %{parkourgm}%"
- broadcast "&c%{parkourgm}% won the event!"
- set {westart} to false
- set {parkourgame} to false
- set {host} to false
- set {eip} to false
- loop all players:
- if {eplayer::%loop-player%} is true:
- make console execute command "/spawn %loop-player%"
- set {eplayer::%loop-player%} to false
- make console execute command "/tab player %loop-player% remove"
- every tick:
- if {host} is true:
- if {swgame} is true:
- if {westart} is true:
- if {eventplayercount} = 1:
- loop all players:
- if {eplayer::%loop-player%} is true:
- broadcast "&c%loop-player% won the event!"
- make console execute command "/cc give v op 1 %loop-player%"
- set {host} to false
- set {survivalgame} to false
- set {westart} to false
- set {eplayer::%loop-player%} to false
- make console execute command "/spawn %loop-player%"
- paste schematic "swevent" at {swskem} with angle 90 and without air true
- make console execute command "/killall mobs cave2"
- make console execute command "/tab player %loop-player% remove"
- on death:
- if {swgame} is true:
- if {eplayer::%player%} is true:
- remove 1 from {eventplayercount}
- set {eplayer::%player%} to false
- make console execute command "/spawn %player%"
- loop all players:
- send "&3%player% &4has died!" to loop-player
- make console execute command "/tab player %player% remove"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement