Advertisement
Guest User

addiction dot s k

a guest
Jul 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. Options:
  2. prefix: &8[&4Hemorrhage&8]&7
  3.  
  4. command /addiction <text>:
  5. permission: skript.op
  6. trigger:
  7. if arg-1 is equal to "enable" or "on":
  8. set {addiction} to true
  9. broadcast "{@prefix} Addiction &aEnabled!"
  10. if arg-1 is equal to "disable" or "off":
  11. delete {addiction}
  12. broadcast "{@prefix} Addiction &cDisabled!"
  13.  
  14. on place of crafting table:
  15. if {addiction} is true:
  16. 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
  17.  
  18. on consume of golden apple:
  19. if {addiction} is true:
  20. if name of event-item contains "&bSpecial &rApple":
  21. remove player from {addicted}
  22. set {p_Health::%player%} to the player's health
  23. message "You ate a special apple and were not addicted! Your health is {p_Health::%player%}!"
  24. delete {p_Health::%player%}
  25. else:
  26. if {addicted::%player%} is not set:
  27. set {addicted::%player%} to true
  28. message "You are now addicted for 45 seconds! Bad things will happen if you keep eating..."
  29. wait 45 seconds
  30. if {addicted2::%player%} is not set:
  31. delete {addicted::%player%}
  32. message "You are no longer addicted!"
  33. else if {addicted::%player%} is true:
  34. if {addicted2::%player%} is not set:
  35. set {addicted2::%player%} to true
  36. message "You indulged in your addiction! You now have weakness for 45 seconds!"
  37. apply weakness 1 to the player for 45 seconds
  38. wait 45 seconds
  39. if {addicted3::%player%} is not set:
  40. delete {addicted::%player%}
  41. delete {addicted2::%player%}
  42. message "You are no longer addicted!"
  43. else if {addicted2::%player%} is true:
  44. if {addicted3::%player%} is not set:
  45. set {addicted3::%player%} to true
  46. execute console command "/cleareffects %player%"
  47. message "You indulged in your addiction! You now have weakness and slowness for 45 seconds!"
  48. apply weakness 1 to the player for 45 seconds
  49. apply slowness 1 to the player for 45 seconds
  50. wait 45 seconds
  51. if {addicted4::%player%} is not set:
  52. delete {addicted::%player%}
  53. delete {addicted2::%player%}
  54. delete {addicted3::%player%}
  55. message "You are no longer addicted!"
  56. else if {addicted3::%player%} is true:
  57. if {addicted4::%player%} is not set:
  58. set {addicted4::%player%} to true
  59. execute console command "/cleareffects %player%"
  60. message "You indulged in your addiction! You now have weakness and slowness for 45 seconds and nausea for 9 seconds!"
  61. apply weakness 1 to the player for 45 seconds
  62. apply slowness 1 to the player for 45 seconds
  63. apply nausea 1 to the player for 9 seconds
  64. wait 45 seconds
  65. if {addicted5::%player%} is not set:
  66. delete {addicted::%player%}
  67. delete {addicted2::%player%}
  68. delete {addicted3::%player%}
  69. delete {addicted4::%player%}
  70. message "You are no longer addicted!"
  71. else if {addicted4::%player%} is true:
  72. cancel event
  73. remove 1 golden apple from the player
  74. execute console command "/cleareffects %player%"
  75. set {addicted5::%player%} to true
  76. message "You have become super-addicted! All previous effects are applied, and you now only heal 1 heart with a golden apple!"
  77. apply weakness 1 to the player for 45 seconds
  78. apply slowness 1 to the player for 45 seconds
  79. apply nausea 1 to the player for 9 seconds
  80. apply regeneration 1 to the player for 5 seconds
  81. wait 45 seconds
  82. delete {addicted::%player%}
  83. delete {addicted2::%player%}
  84. delete {addicted3::%player%}
  85. delete {addicted4::%player%}
  86. delete {addicted5::%player%}
  87. message "You are no longer addicted!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement