Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #= Credit to OblivionTU for the name =#
- options:
- P: &6[&cArrowlette&6]
- C: &f
- H: &e
- Scenario: Arrowlette
- Command: /arrowlette
- Permission: skript.arrowlette
- ScenarioCreator: Fleft
- Skripter: Fleft
- Explosions: true #= The explosions don't cause damage =#
- MoreThanOneItem: false
- command {@Command} [<text>]:
- trigger:
- if arg-1 is "on" or "enable":
- command sender has permission "{@Permission}":
- if {Arrowlette.Enabled} is not set:
- set {Arrowlette.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 {Arrowlette.Enabled} is true:
- delete {Arrowlette.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 {Arrowlette.Enabled} is true:
- command sender command "/{@Command} off"
- stop trigger
- if {Arrowlette.Enabled} is not set:
- command sender command "/{@Command} on"
- stop trigger
- else if arg-1 is "help" or "?" or "question" or "info" or "information":
- 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}{@ScenarioCreator}"
- message "{@P}{@C} Skript: {@H}{@Skripter}" to the command sender
- message "" to the command sender
- message "{@P}{@C} In {@H}Arrowlette{@C}, a random item drops" to the command sender
- message "{@P}{@C} when an arrow hits a player/ground. Arrows"
- message "{@P}{@C} do not drop when they hit the ground."
- message "" to the command sender
- else if arg-1 is not set:
- command sender command "/{@Command} help"
- else:
- command sender command "/{@Command} help"
- on projectile hit:
- projectile is arrow:
- if {Arrowlette.Enabled} is true:
- if {@MoreThanOneItem} is true:
- drop (random integer between 1 and 64) of random item out of all items at projectile
- else:
- drop a random item out of all items at projectile
- if {@Explosions} is true:
- create fake explosion at projectile
- delete the arrow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement