Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Winters lol uhc skript
- #by weenturhaksnein
- options:
- #- Main Options -#
- P : &8[&9Ultra Hardcore&8]&f
- C : &f
- H : &b
- #- Other Options -#
- Error : &8[&4ERROR&8]&f
- Killboard : &8[&9Killboard&8]&f
- KillboardName: &9Winter's &3UHC
- #- Skript Options -#
- Permission: skript.op
- PermissionDeny: &cYou don't have the required permission.
- command /uhc [<text>] [<integer>] [<integer>]:
- permission: {@Permission}
- permission message: {@PermissionDeny}
- trigger:
- if arg-1 is not set:
- message "{@Error} Invalid syntax."
- else:
- if arg-1 is "start":
- if {UHC.Started} is not set:
- #- Timer Check -#
- if arg-2 is less than 0:
- message "{@Error} Must enter positive integer!"
- message "{@Error} You entered [{@H}%arg-2%]{@C}!"
- message "{@Error} Set [{@H}%arg-2%] {@C}to a positive number!"
- if arg-3 is less than 0:
- message "{@Error} Must enter positive integer!"
- message "{@Error} You entered [{@H}%arg-3%]{@C}!"
- message "{@Error} Set [{@H}%arg-3%] {@C}to a positive number!"
- #- Variable Declarations -#
- set {UHC.Started} to true
- set {UHC.Countdown} to true
- delete {PermaDay}
- #- Essentials -#
- heal all players
- loop all players:
- set loop-player's hunger to 20
- set loop-player's max health to 10
- clear loop-player's inventory
- #- Resetting/Commands -#
- set time to 6:00
- loop all players:
- execute console command "xp -25000L %loop-player%"
- loop-player's gamemode is not survival:
- set loop-player's gamemode to survival
- #- PreGame Commands -#
- command sender command "/killboard off"
- command sender command "/killboard on"
- command sender command "/pvp global off"
- command sender command "/specinfo reset"
- command sender command "/boxremove %world of command sender%"
- command sender command "/motdset Game in Progress!"
- #- Countdown(!) -#
- set {_Count} to 5
- loop {_Count} times:
- broadcast "{@P} In %{_Count}%.."
- command "/aps note.bass"
- subtract 1 from {_Count}
- wait 1 second
- broadcast "{@P} GO GO GO!"
- #- Sounds -#
- loop 10 times:
- loop 3 times:
- command "/aps note.harp %loop-number-1*0.2%"
- wait 1 tick
- loop 10 times:
- loop 3 times:
- command "/aps note.harp %loop-number-1/0.2%"
- wait 1 tick
- #- UnFreeze -#
- command "/freeze"
- loop all players:
- execute console command "effect %loop-player% clear"
- #- Cleanup/Final Things -#
- wait 10 seconds
- heal all players
- loop all players:
- set loop-player's hunger to 20
- broadcast "&bFinal Heal/Feed given!"
- #- Timer -#
- set {_pvpseconds} to arg 3*60
- set {_meetup} to (arg 2-arg 3)*60
- execute console command "/timer %{_pvpseconds}% §7PvP In:§8"
- loop ({_pvpseconds}+1)*20 times:
- wait 1 tick
- broadcast "&bPvP Enabled!"
- execute console command "/aps mob.wither.shoot 2"
- make command sender execute command "/pvp global on"
- if arg 2 is not 0:
- execute console command "/timer %{_meetup}% §7Meetup In:§8"
- loop ({_meetup}+1)*20 times:
- wait 1 tick
- broadcast "{@P} Meetup is {@H}&lnow!{@C} Go to {@H}0,0 {@C}immediately! Only stop for a fight!"
- execute console command "/aps mob.wither.shoot 2"
- else:
- message "{@P} Game already in progress!"
- else if arg-1 is "end":
- if {UHC.Started} is set:
- #- Variable Declarations -#
- delete {UHC.Started}
- delete {UHC.Countdown}
- delete {PermaDay}
- delete {MuteAll}
- #- Essentials -#
- command sender command "/spawn"
- command sender command "/moveall"
- heal all players
- loop all players:
- set hunger of loop-player to 20
- clear loop-player's inventory
- #- Reset/Commands -#
- command sender command "/timer cancel"
- loop all players:
- execute console command "xp -25000L %loop-player%"
- execute console command "effect %loop-player% clear"
- command "/motdset Open PvP!"
- else:
- message "{@P} There isn't a game in progress!"
- #- Game Commands -#
- command /megabutcher:
- permission: {@Permission}
- permission message: {@PermissionDeny}
- trigger:
- loop 5 times:
- make command sender execute command "/butcher"
- wait 1 second
- wait 3 seconds
- make command sender execute command "/butcher"
- command /killboard <text>:
- permission: {@Permission}
- permission message: {@PermissionDeny}
- trigger:
- if arg 1 is "on":
- execute console command "/scoreboard objectives add kills playerKillCount {@KillboardName}"
- execute console command "/scoreboard objectives setdisplay sidebar kills"
- message "{@Killboard} Killboard enabled!"
- else if arg 1 is "off":
- execute console command "/scoreboard objectives remove kills"
- message "{@Killboard} Killboard disabled!"
- command /permaday [<text>]:
- aliases: /perma, /pe
- permission: {@Permission}
- permission message: {@PermissionDeny}
- trigger:
- if arg-1 is not set:
- message "{@Error} Invalid syntax."
- else if arg-1 is "on":
- set time to 12:00
- set {PermaDay} to true
- broadcast "{@P} Perma-Day Enabled!"
- else if arg-1 is "off":
- delete {PermaDay}
- broadcast "{@P} Perma-Day Disabled!"
- #- Other Commands -#
- command /aps [<text>] [<number>]:
- permission: skript.fleftscatter
- trigger:
- if arg-2 is not set:
- set {_pitch} to 1
- if arg-2 is set:
- set {_pitch} to arg-2
- loop all players:
- execute console command "/playsound %arg-1% %loop-player% ~ ~ ~ 1 %{_pitch}% 1"
- command /motdset [<text>]:
- permission: skript.op
- trigger:
- loop 5 times:
- execute console command "motd remove %loop-num%"
- execute console command "motd add {@P} {@H}- {@C}%arg-1%"
- # Events #
- #- UHC Events -#
- on death of player:
- if {UHC.Started} is true:
- if victim is op:
- make victim execute command "/specinfo on"
- make victim execute command "/van"
- make victim execute command "/vanflag +chat"
- execute console command "/whitelist remove %victim%"
- execute console command "/scoreboard players reset %victim%"
- message "{@P} Sorry to see you have died! Please leave after saying your goodbyes." to victim
- on death of player:
- attacker is a player:
- stop trigger
- else:
- execute console command "scoreboard players add &c&lPvE {@KillboardName} 1"
- every 3 seconds:
- if {PermaDay} is true:
- set time to 12:00
- on damage of player:
- {FirstDamage} is true
- delete {FirstDamage}
- broadcast "{@P}{@H} %victim%{@C} took the first damage!"
- #- On Events -#
- on chat:
- if {MuteAll} is true:
- if player does not have permission "skript.op":
- cancel the event
- on projectile hit:
- if event-entity is in "spawn":
- delete the arrow
- on join:
- set join message to "&7[&a&l>&7] &8%event-player%"
- on quit:
- set quit message to "&7[&c&l<&7] &8%event-player%"
- #- Spawn Events -#
- on spawn of zombie pigmen:
- cancel the event
- chance of 5%:
- spawn 1 ghast
- on spawn of sheep:
- cancel the event
- chance of 35%:
- spawn 1 chicken
Advertisement
Add Comment
Please, Sign In to add comment