Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &6&lUHC &8ยป&7
- command /prestart <integer=5>:
- permission: skript.op
- trigger:
- set {_food} to arg-1
- execute console command "/ffg"
- execute console command "/reset -a"
- execute console command "/setmaxhealth 20 *"
- make player execute command "/pvp global off"
- teleport all players to {spawnlocation}
- give (arg-1 of cooked beef) to all players
- wait 1 second
- broadcast "{@P} UHC is starting..."
- loop all players:
- execute console command "/playsound note.pling %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player%"
- command /start <integer> <integer>:
- permission: skript.op
- usage: &c/start &7<&atime till PvP&7(&ameasured in minutes&7)> <&atime till MeetUp&7(&ameasured in minutes&7)>
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- set {pvptimer} to arg 1*60
- set {_temp} to (arg-1 - arg-2)
- set {meetuptimer} to {_temp}
- execute console command "/feed -a"
- execute console command "/heal -a"
- broadcast "{@P} &63"
- loop all players:
- execute console command "/playsound note.pling %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 1 1"
- wait 1 second
- broadcast "{@P} &62"
- loop all players:
- execute console command "/playsound note.pling %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 1 1"
- wait 1 second
- broadcast "{@P} &61"
- loop all players:
- execute console command "/playsound note.pling %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 1 1"
- wait 1 second
- broadcast "{@P} &6UHC starting now!"
- execute player command "/megabutcher"
- execute console command "/ffg"
- execute console command "/pvp global off"
- execute player command "/time set 1000"
- make player execute "/gamerule doDaylightCycle true"
- execute console command "/timer:timer cancel"
- execute console command "/timer:timer %{pvptimer}% &cPvP enabled In&7:&e"
- loop all players:
- execute console command "/playsound note.pling %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 2 1"
- loop all players:
- execute console command "/playsound mob.wolf.howl %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 1 1"
- while {pvptimer} is greater than 0:
- wait 1 second
- subtract 1 from {pvptimer}
- if {pvptimer} is equal to 0:
- execute console command "/pvp global on"
- execute console command "/timer:timer cancel"
- execute console command "/timer:timer %{meetuptimer}% &4Meetup In&7:&e"
- loop all players:
- execute console command "/playsound mob.bat.death %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 1 1"
- broadcast "{@P} PvP is now &aenabled&7!"
- while {meetuptimer} is greater than 0:
- wait 1 second
- subtract 1 from {meetuptimer}
- if {meetuptimer} is equal to 0:
- broadcast "{@P} It is now Meetup, Head to &c0,0&7!"
- loop all players:
- execute console command "/playsound mob.wither.death %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 1 1"
- delete {pvptimer}
- delete {meetuptimer}
- command /startoff:
- permission: skript.op
- trigger:
- delete {pvptimer}
- set {gamerunning} to false
- wait 1 second
- delete {meetuptimer}
- broadcast "{@P} Game stopped!"
- loop all players:
- execute console command "/playsound note.pling %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 1 1"
- execute console command "/scoreboard objectives remove k"
- execute console command "/timer cancel"
- command /megabutcher:
- permission: skript.op
- trigger:
- execute player command "/gamerule doMobSpawning false"
- execute player command "/butcher"
- wait 1 minute
- execute player command "/butcher"
- execute player command "/gamerule doMobSpawning true"
- command /setspawn:
- permission: skript.op
- trigger:
- set {spawnlocation} to location of command sender
- message "Spawn has been set to %location of command sender%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement