Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #impromptu coding
- options:
- P: &d[&cOld Weapons&d]
- C: &d
- H: &c
- command /oldweapons [<text>]:
- permission: skript.op
- permission message: "{@P}{@C} No, you're not doing that..."
- usage: /oldweapons [enable/disable]
- trigger:
- if arg-1 is not set:
- if {oldweapons} is true:
- send "{@P}{@C} Old Weapons is currently {@H}enabled!"
- if {oldweapons} is not set:
- send "{@P}{@C} Old Weapons is currently {@H}disabled!"
- if arg-1 is "enable" or "on":
- if {oldweapons} is not set:
- set {oldweapons} to true
- broadcast "{@P}{@C} Old Weapons has been {@H}enabled!"
- loop all players:
- command "/playsound note.pling %loop-player% ~ ~ ~ 1 2 1"
- else if {oldweapons} is true:
- send "{@P}{@C} Old Weapons is already {@H}enabled!"
- if arg-1 is "disable" or "off":
- if {oldweapons} is true:
- delete {oldweapons}
- broadcast "{@P}{@C} Old Weapons has been {@H}disabled!"
- loop all players:
- command "/playsound note.pling %loop-player% ~ ~ ~ 1 2 1"
- else if {oldweapons} is not set:
- send "{@P}{@C} Old Weapons is already {@H}disabled!"
- if arg-1 is "help":
- send "{@P}{@H} Commands for Old Weapons:"
- send "{@P}{@H} /oldweapons [enable/disable]"
- send "{@P}{@H} /whatisoldweapons"
- command "/playsound random.pop %command sender% ~ ~ ~ 1 1 1"
- command /whatisoldweapons:
- trigger:
- send "{@P}{@C} Old Weapons is where weapons (and tools) do half a heart less damage per hit, similar to in Minecraft 1.5 and before."
- command "/playsound random.pop %command sender% ~ ~ ~ 1 1 1"
- on damage:
- {oldweapons} is true
- if tool of the attacker is a sword or a pickaxe or an axe or a shovel:
- reduce damage by 0.5
Advertisement
Add Comment
Please, Sign In to add comment