Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8[Depths]
- C: &7
- H: &9
- Scenario: Depths
- Command: /depths
- Permission: skript.depths
- Creator: /u/silverteeth
- Skripter: Fleft
- command {@Command} [<text>]:
- trigger:
- if arg-1 is "on" or "enable":
- command sender has permission "{@Permission}":
- if {Depths.Enabled} is not set:
- set {Depths.Enabled} to true
- broadcast "{@P}{@C} Enabled by {@H}%command sender%!"
- else:
- message "{@P}{@C} Already enabled!" to the command sender
- stop trigger
- else:
- execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
- message "{@P}{@C} You don't have permission for that!" to the command sender
- else if arg-1 is "off" or "disable":
- command sender has permission "{@Permission}":
- if {Depths.Enabled} is true:
- delete {Depths.Enabled}
- broadcast "{@P}{@C} Disabled by {@H}%command sender%!"
- else:
- message "{@P}{@C} Already disabled!" to the command sender
- stop trigger
- else:
- execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
- message "{@P}{@C} You don't have permission for that!" to the command sender
- else if arg-1 is "toggle" or "switch":
- if {Depths.Enabled} is true:
- command sender command "/{@Command} off"
- stop trigger
- if {Depths.Enabled} is not set:
- command sender command "/{@Command} on"
- stop trigger
- else if arg-1 is "help" or "?" or "info":
- message "" to the command sender
- if command sender has permission "{@Permission}":
- message "{@P}{@C} /{@Command} {@H}on/off/toggle" to the command sender
- message "{@P}{@C} Scenario by: {@H}{@Creator}"
- message "{@P}{@C} Skript by {@Skripter}"
- else if arg-1 is not set:
- command sender command "/{@Command} help"
- else:
- command sender command "/{@Command} help"
- on damage:
- {Depths.Enabled} is true:
- if attacker is an entity:
- if attacker is a player:
- stop trigger
- else:
- set {_damage} to damage
- if victim's y-coordinate is less than 15:
- set damage to ({_damage}*5)
- else if victim's y-coordinate is less than 30:
- set damage to ({_damage}*3)
- else if victim's y-coordinate is less than 45:
- set damage to ({_damage}*2)
- else if victim's y-coordinate is less than 60:
- set damage to ({_damage}*1.5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement