Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- prefix: &8[&4Hemorrhage&8]&7
- command /addiction <text>:
- permission: skript.op
- trigger:
- if arg-1 is equal to "enable" or "on":
- set {addiction} to true
- broadcast "{@prefix} Addiction &aEnabled!"
- if arg-1 is equal to "disable" or "off":
- delete {addiction}
- broadcast "{@prefix} Addiction &cDisabled!"
- on place of crafting table:
- if {addiction} is true:
- register new shaped recipe for golden apple item named "&bSpecial &rApple" using air, gold ingot, air, gold ingot, golden apple, gold ingot, air, gold ingot, air
- on consume of golden apple:
- if {addiction} is true:
- if name of event-item contains "&bSpecial &rApple":
- remove player from {addicted}
- set {p_Health::%player%} to the player's health
- message "You ate a special apple and were not addicted! Your health is {p_Health::%player%}!"
- delete {p_Health::%player%}
- else:
- if {addicted::%player%} is not set:
- set {addicted::%player%} to true
- message "You are now addicted for 45 seconds! Bad things will happen if you keep eating..."
- wait 45 seconds
- if {addicted2::%player%} is not set:
- delete {addicted::%player%}
- message "You are no longer addicted!"
- else if {addicted::%player%} is true:
- if {addicted2::%player%} is not set:
- set {addicted2::%player%} to true
- message "You indulged in your addiction! You now have weakness for 45 seconds!"
- apply weakness 1 to the player for 45 seconds
- wait 45 seconds
- if {addicted3::%player%} is not set:
- delete {addicted::%player%}
- delete {addicted2::%player%}
- message "You are no longer addicted!"
- else if {addicted2::%player%} is true:
- if {addicted3::%player%} is not set:
- set {addicted3::%player%} to true
- execute console command "/cleareffects %player%"
- message "You indulged in your addiction! You now have weakness and slowness for 45 seconds!"
- apply weakness 1 to the player for 45 seconds
- apply slowness 1 to the player for 45 seconds
- wait 45 seconds
- if {addicted4::%player%} is not set:
- delete {addicted::%player%}
- delete {addicted2::%player%}
- delete {addicted3::%player%}
- message "You are no longer addicted!"
- else if {addicted3::%player%} is true:
- if {addicted4::%player%} is not set:
- set {addicted4::%player%} to true
- execute console command "/cleareffects %player%"
- message "You indulged in your addiction! You now have weakness and slowness for 45 seconds and nausea for 9 seconds!"
- apply weakness 1 to the player for 45 seconds
- apply slowness 1 to the player for 45 seconds
- apply nausea 1 to the player for 9 seconds
- wait 45 seconds
- if {addicted5::%player%} is not set:
- delete {addicted::%player%}
- delete {addicted2::%player%}
- delete {addicted3::%player%}
- delete {addicted4::%player%}
- message "You are no longer addicted!"
- else if {addicted4::%player%} is true:
- cancel event
- remove 1 golden apple from the player
- execute console command "/cleareffects %player%"
- set {addicted5::%player%} to true
- message "You have become super-addicted! All previous effects are applied, and you now only heal 1 heart with a golden apple!"
- apply weakness 1 to the player for 45 seconds
- apply slowness 1 to the player for 45 seconds
- apply nausea 1 to the player for 9 seconds
- apply regeneration 1 to the player for 5 seconds
- wait 45 seconds
- delete {addicted::%player%}
- delete {addicted2::%player%}
- delete {addicted3::%player%}
- delete {addicted4::%player%}
- delete {addicted5::%player%}
- message "You are no longer addicted!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement