Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8[&bHorse Nerf&8]&r
- L: 4
- M: 7
- command /horsenerf [<text>] [<integer>]:
- permission: skript.op
- trigger:
- if arg-1 is "on":
- set {horse.nerf} to true
- broadcast "{@P} Nerfed!"
- command "/killall horse"
- if arg-1 is "off":
- delete {horse.nerf}
- broadcast "{@P} Unnerfed!"
- on spawn of horse:
- {horse.nerf} 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