Advertisement
Guest User

fgsdgsfsdfsdsf

a guest
Sep 15th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. on damage:
  2. cancel event
  3. if {debounce::%victim%} is not set:
  4. set {debounce::%victim%} to "false"
  5. if {debounce::%victim%} is "false":
  6. set {debounce::%victim%} to "true"
  7. if {health::%victim%} is not set:
  8. set {health::%victim%} to 10
  9. remove 1 from {health::%victim%}
  10. play hurt at player
  11. message "&cYou've taken 1Hp of damage!" to victim
  12. wait 1 second
  13. set {debounce::%victim%} to "false"
  14. if {health::%victim%} is set:
  15. if {health::%victim%} is greater than 1:
  16. remove 1 from {health::%victim%}
  17. play hurt at player
  18. message "&cYou've taken 1Hp of damage!" to victim
  19. wait 1 second
  20. set {debounce::%victim%} to "false"
  21. else if {health::%victim%} is less than or equal to 1:
  22. remove 1 from {health::%victim%}
  23. play hurt at player
  24. if victim is in world "world":
  25. teleport victim to location -1684, 66, 62 in world "world"
  26. message "&4&lYou have died!" to victim
  27. set {health::%victim%} to 10
  28. extinguish the victim
  29. wait 1 second
  30. set {debounce::%victim%} to "false"
  31. if victim is in world "raid":
  32. teleport victim to location -1684, 66, 62 in world "raid"
  33. message "&4&lYou have died!" to victim
  34. set {health::%victim%} to 10
  35. extinguish the victim
  36. wait 1 second
  37. set {debounce::%victim%} to "false"
  38. else if {debounce::%victim%} is "true":
  39. stop
  40. else if {debounce::%victim%} is set:
  41. if {debounce::%victim%} is "false":
  42. set {debounce::%victim%} to "true"
  43. if {health::%victim%} is not set:
  44. set {health::%victim%} to 10
  45. remove 1 from {health::%victim%}
  46. play hurt at player
  47. message "&cYou've taken 1Hp of damage!" to victim
  48. wait 1 second
  49. set {debounce::%victim%} to "false"
  50. if {health::%victim%} is set:
  51. if {health::%victim%} is greater than 1:
  52. remove 1 from {health::%victim%}
  53. play hurt at player
  54. message "&cYou've taken 1Hp of damage!" to victim
  55. wait 1 second
  56. set {debounce::%victim%} to "false"
  57. else if {health::%victim%} is less than or equal to 1:
  58. remove 1 from {health::%victim%}
  59. play hurt at player
  60. if victim is in world "world":
  61. teleport victim to location -1684, 66, 62 in world "world"
  62. message "&4&lYou have died!" to victim
  63. set {health::%victim%} to 10
  64. extinguish the victim
  65. wait 1 second
  66. set {debounce::%victim%} to "false"
  67. if victim is in world "raid":
  68. teleport victim to location -1684, 66, 62 in world "raid"
  69. message "&4&lYou have died!" to victim
  70. set {health::%victim%} to 10
  71. extinguish the victim
  72. wait 1 second
  73. set {debounce::%victim%} to "false"
  74. else if {debounce::%victim%} is "true":
  75. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement