Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- P: &3[&6Horse Nerfs&3] &f
- L: 4
- M: 7
- Variables:
- {horse::riding}=true
- {horse::healing}=true
- {horse::spawns}=true
- {horse::healthnerf}=false
- command /horses <text>:
- permission: skript.op
- usage : <enable/disable/features>
- trigger:
- if arg 1 is "enable" or "true" or "on":
- set {horse::spawns} to true
- broadcast "{@P}Horse Spawns enabled!"
- else if arg 1 is "disable" or "false" or "off":
- set {horse::spawns} to false
- broadcast "{@P}Horse Spawns disabled!"
- loop all horses:
- kill loop-horse
- if arg 1 is "features" or "nerfs" or "info":
- message "{@P}Horse Spawns are %{horse::spawns}%"
- message "{@P}Horse Riding is %{horse::riding}%"
- message "{@P}Horse healing is %{horse::healing}%"
- message "{@P}Horse Health nerfs is %{horse::healthnerf}%"
- if arg 1 is "reset":
- set {horse::riding} to true
- set {horse::healing} to true
- set {horse::spawns} to true
- set {horse::healthnerf} to false
- broadcast "{@P}Horse Nerfs disabled!"
- on spawn of horse:
- if {horse::spawns} is false:
- cancel the event
- command /horse <text> <text>:
- permission: skript.op
- usage : <healing/riding/healthnerf/feature on/off/list>
- trigger:
- if arg 1 is "healing":
- if arg 2 is "enable" or "true" or "on":
- set {horse::healing} to true
- broadcast "{@P}Horse Healing enabled!"
- else if arg 2 is "disable" or "false" or "off":
- set {horse::healing} to false
- broadcast "{@P}Horse Healing disabled!"
- else if arg 1 is "riding" or "mounting":
- if arg 2 is "enable" or "true" or "on":
- set {horse::riding} to true
- broadcast "{@P}Horse Riding enabled!"
- else if arg 2 is "disable" or "false" or "off":
- set {horse::riding} to false
- broadcast "{@P}Horse Riding disabled!"
- else if arg 1 is "health" or "healthnerf":
- if arg 2 is "enable" or "true" or "on":
- set {horse::healthnerf} to true
- broadcast "Horse's Health nerfed!"
- loop all horses:
- set {_health} to a random integer between {@L} and {@M}
- set the loop-horse's max health to {_health}
- set the loop-horse's health to {_health}
- else if arg 2 is "disable" or "false" or "off":
- set {horse::healthnerf} to false
- broadcast "{@P}Horse's Healths not nefed!"
- else if arg 1 is "features" or "nerfs" or "info":
- if arg 2 is "list":
- message "{@P}Horse Spawns are %{horse::spawns}%"
- message "{@P}Horse Riding is %{horse::riding}%"
- message "{@P}Horse healing is %{horse::healing}%"
- message "{@P}Horse Health nerfs is %{horse::healthnerf}%"
- else if arg 1 is "features" or "nerfs":
- if arg 2 is "reset":
- set {horse::riding} to true
- set {horse::healing} to true
- set {horse::spawns} to true
- set {horse::healthnerf} to false
- broadcast "{@P}Horse Nerfs disabled!"
- else if arg 1 is "spawn" or "spawns":
- if arg 2 is "enable" or "true" or "on":
- set {horse::spawns} to true
- broadcast "{@P}Horse Spawns enabled!"
- else if arg 2 is "disable" or "false" or "off":
- set {horse::spawns} to false
- broadcast "{@P}Horse Spawns disabled!"
- loop all horses:
- kill loop-horse
- on right click on horse with sugar or apple or bread or carrot or golden carrot:
- if {horse::healing} is false:
- cancel the event
- message "{@P}Horse Healing is disabled!" to event-player
- on right click on horse:
- if {horse::riding} is false:
- cancel the event
- message "{@P}Horse riding is disabled!" to event-player
- on spawn of horse:
- if {horse::healthnerf} is true:
- set {_health} to a random integer between {@L} and {@M}
- set the horse's max health to {_health}
- set the horse's health to {_health}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement