Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- p: &8[&c&lVolcanoUHC&8]&7
- c: &7
- h: &a&l
- IS: &8[&c&lVolcanoUHC&8] &4INCRORRECT USAGE
- prefix: &8[&2Thirst&8]&7
- command /thirst [<text>] [<text>] [<text>]:
- permission: UHC.WHITELIST
- trigger:
- if arg-1 is "on" or "enable":
- set {thirst} to true
- broadcast "{@p} {@prefix} {@c}has been &eenabled {@c}by &8[&a%player%&8] {@c}and created by &8&l[&c&lDarkPaladinUHC&8&l]"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 2 1"
- set {thirst::%loop-player%} to 100
- give loop-player 2 bottles
- set loop-player's level to {thirst::%loop-player%}
- if arg-1 is "off" or "disable":
- set {thirst} to false
- broadcast "{@p} {@prefix} {@c}has been &edisabled {@c}by &8[&a%player%&8] {@c}and created by &8&l[&c&lDarkPaladinUHC&8&l]"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 2 1"
- set loop-player's level to 0
- if arg-1 is "bottles" or "bottle":
- if arg-2 is "on" or "enable":
- set {thirst.bottles} to true
- broadcast "{@prefix} You may now craft bottles!"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 2 1"
- else:
- set {thirst.bottles} to false
- broadcast "{@prefix} From now on you can't craft bottles!"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 2 1"
- if arg-1 is "buckets" or "bucket":
- if arg-2 is "on" or "enable":
- set {thirst.buckets} to true
- broadcast "{@prefix} You may now craft buckets!"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 2 1"
- else:
- set {thirst.buckets} to false
- broadcast "{@prefix} From now on you can't craft buckets!"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 2 1"
- if arg-1 is "random":
- if arg-2 is "craft":
- if arg-3 is "on" or "enable":
- set {thirst.random.craft} to true
- broadcast "{@prefix} You will now be given time to craft bottles"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 2 1"
- else:
- set {thirst.random.craft} to false
- broadcast "{@prefix} You will now not be given time to craft bottles"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 2 1"
- if arg-2 is "give":
- if arg-3 is "on" or "enable":
- set {thirst.random.give} to true
- broadcast "{@prefix} You will now be given bottles every 10 minutes"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 2 1"
- else:
- set {thirst.random.give} to false
- broadcast "{@prefix} You will now not be given bottles every 10 minutes"
- loop all players:
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 2 1"
- if arg-1 is not set:
- send "&eCommands:"
- send "{@h}/thirst <on:off> &2- {@c}enable and disable {@prefix}"
- send "{@h}/thirst &2- {@c}for help"
- send "{@h}/thirst buckets <on:off> &2- {@c}turn craftable buckets on or off"
- send "{@h}/thirst bottles <on:off> &2- {@c}turn craftable bottles on or off"
- send "{@h}/thirst random craft <on:off> &2- {@c}Every 10 minutes everyone will have 10 seconds to craft botttles"
- send "{@h}/thirst random give <on:off> &2- {@c}Every 10 minutes everyone will be given a bottle"
- every 5 seconds:
- {thirst} is true
- loop all players:
- if biome at loop-player is desert:
- remove 2 from {thirst::%loop-player%}
- else if biome at loop-player is hell:
- remove 3 from {thirst::%loop-player%}
- else:
- remove 1 from {thirst::%loop-player%}
- set loop-player's level to {thirst::%loop-player%}
- if {thirst::%loop-player%} < 0:
- send "{@prefix} You are %{thirst::%loop-player%}%%% hydrated!" to loop-player
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 2 1"
- damage loop-player by 1 heart
- on consume of water bottle:
- {thirst} is true
- set {_waited} to difference between {drink.%player%.lastused} and now
- if {_waited} is less than 10 seconds:
- cancel event
- message "{@prefix} You're not thirsty, wait %difference between 10 seconds and {_waited}% before you drink again!"
- stop
- else:
- if {thirst::%player%} < 90:
- add 10 to {thirst::%player%}
- set player's level to {thirst::%player%}
- set {drink.%player%.lastused} to now
- else:
- set {thirst::%player%} to 100
- set player's level to {thirst::%player%}
- set {drink.%player%.lastused} to now
- on spawn of a xp:
- {thirst} is true
- cancel event
- on death of player:
- {thirst} is true
- set {thirst::%player%} to 100
- on craft of enchantment table:
- {thirst} is true
- cancel event
- send "{@prefix} Enchanting is disabled!"
- command "/playsound random.pop %player% ~ ~ ~ 1 2 1"
- on craft of bottle:
- {thirst} is true
- {thirst.bottles} is false
- cancel event
- send "{@prefix} Extra bottles are disabled!"
- command "/playsound random.pop %player% ~ ~ ~ 1 2 1"
- on craft of bucket:
- {thirst} is true
- {thirst.buckets} is false
- cancel event
- send "{@prefix} Buckets are disabled!"
- every 10 minutes:
- {thirst} is true
- if {thirst.random.craft} is true:
- command "/thirst random craft on"
- wait 10 seconds
- command "/thirst random craft off"
- if {thirst.random.give} is true:
- loop all players:
- give loop-player bottle
- command "/playsound random.pop %loop-player% ~ ~ ~ 1 2 1"
- broadcast "{@prefix} You have been given a bottle!"
Advertisement
Add Comment
Please, Sign In to add comment