Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.97 KB | None | 0 0
  1. on damage of player:
  2. victim's gamemode is not creative
  3.  
  4. if {SpecInfo.LastDamage::%victim%} is set:
  5. if {SpecInfo.LastDamage::%victim%} was less than 0.15 seconds ago:
  6. stop
  7.  
  8. set {SpecInfo.LastDamage::%victim%} to now
  9. set {_Damage} to (health of victim)
  10. wait 1 tick
  11. set {_Damage} to {_Damage}-(health of victim)
  12. if {_Damage} is equal to 0:
  13. stop
  14.  
  15.  
  16. if attacker is a player:
  17. if damage was caused by projectile:
  18. if projectile is an arrow:
  19. loop all players:
  20. {SpecInfo.Enabled::%loop-player%} is true
  21. message "{@Prefix.Short} {@PvP.Bow}" to loop-player
  22. else:
  23. loop all players:
  24. {SpecInfo.Enabled::%loop-player%} is true
  25. message "{@Prefix.Short} {@PvP.ProjectileUnknown}" to loop-player
  26. else:
  27. if damage was caused by attack:
  28. loop all players:
  29. {SpecInfo.Enabled::%loop-player%} is true
  30. message "{@Prefix.Short} {@PvP.Melee}" to loop-player
  31. else:
  32. loop all players:
  33. {SpecInfo.Enabled::%loop-player%} is true
  34. message "{@Prefix.Short} {@PvP.Unknown}" to loop-player
  35.  
  36.  
  37. else if attacker is not set:
  38. if damage was caused by fall:
  39. loop all players:
  40. {SpecInfo.Enabled::%loop-player%} is true
  41. message "{@Prefix.Short} {@PvE.NS.Fall}" to loop-player
  42. else if damage was caused by lava:
  43. loop all players:
  44. {SpecInfo.Enabled::%loop-player%} is true
  45. message "{@Prefix.Short} {@PvE.NS.Lava}" to loop-player
  46. else if damage was caused by fire:
  47. loop all players:
  48. {SpecInfo.Enabled::%loop-player%} is true
  49. message "{@Prefix.Short} {@PvE.NS.Fire}" to loop-player
  50. else if damage was caused by burning:
  51. loop all players:
  52. {SpecInfo.Enabled::%loop-player%} is true
  53. message "{@Prefix.Short} {@PvE.NS.Burning}" to loop-player
  54. else if damage was caused by drowning:
  55. loop all players:
  56. {SpecInfo.Enabled::%loop-player%} is true
  57. message "{@Prefix.Short} {@PvE.NS.Drowning}" to loop-player
  58. else if damage was caused by poison:
  59. loop all players:
  60. {SpecInfo.Enabled::%loop-player%} is true
  61. message "{@Prefix.Short} {@PvE.NS.Poison}" to loop-player
  62. else if damage was caused by wither:
  63. loop all players:
  64. {SpecInfo.Enabled::%loop-player%} is true
  65. message "{@Prefix.Short} {@PvE.NS.Wither}" to loop-player
  66. else if damage was caused by starvation:
  67. loop all players:
  68. {SpecInfo.Enabled::%loop-player%} is true
  69. message "{@Prefix.Short} {@PvE.NS.Starvation}" to loop-player
  70. else if damage was caused by suffocation:
  71. loop all players:
  72. {SpecInfo.Enabled::%loop-player%} is true
  73. message "{@Prefix.Short} {@PvE.NS.Suffocation}" to loop-player
  74. else if damage was caused by falling block:
  75. loop all players:
  76. {SpecInfo.Enabled::%loop-player%} is true
  77. message "{@Prefix.Short} {@PvE.NS.Anvil}" to loop-player
  78. else:
  79. loop all players:
  80. {SpecInfo.Enabled::%loop-player%} is true
  81. message "{@Prefix.Short} {@PvE.NS}" to loop-player
  82.  
  83. else:
  84. if attacker is a zombie:
  85. loop all players:
  86. {SpecInfo.Enabled::%loop-player%} is true
  87. message "{@Prefix.Short} {@PvE.Zombie}" to loop-player
  88. else if attacker is a skeleton:
  89. loop all players:
  90. {SpecInfo.Enabled::%loop-player%} is true
  91. message "{@Prefix.Short} {@PvE.Skeleton}" to loop-player
  92. else if attacker is a spider:
  93. loop all players:
  94. {SpecInfo.Enabled::%loop-player%} is true
  95. message "{@Prefix.Short} {@PvE.Spider}" to loop-player
  96. else if attacker is a creeper:
  97. loop all players:
  98. {SpecInfo.Enabled::%loop-player%} is true
  99. message "{@Prefix.Short} {@PvE.Creeper}" to loop-player
  100. else if attacker is a enderman:
  101. loop all players:
  102. {SpecInfo.Enabled::%loop-player%} is true
  103. message "{@Prefix.Short} {@PvE.Enderman}" to loop-player
  104. else if attacker is a silverfish:
  105. loop all players:
  106. {SpecInfo.Enabled::%loop-player%} is true
  107. message "{@Prefix.Short} {@PvE.Silverfish}" to loop-player
  108. else if attacker is a slime:
  109. loop all players:
  110. {SpecInfo.Enabled::%loop-player%} is true
  111. message "{@Prefix.Short} {@PvE.Slime}" to loop-player
  112. else if attacker is a witch:
  113. loop all players:
  114. {SpecInfo.Enabled::%loop-player%} is true
  115. message "{@Prefix.Short} {@PvE.Witch}" to loop-player
  116. else if attacker is a ghast:
  117. loop all players:
  118. {SpecInfo.Enabled::%loop-player%} is true
  119. message "{@Prefix.Short} {@PvE.Ghast}" to loop-player
  120. else if attacker is a blaze:
  121. loop all players:
  122. {SpecInfo.Enabled::%loop-player%} is true
  123. message "{@Prefix.Short} {@PvE.Blaze}" to loop-player
  124. else if attacker is a magma cube:
  125. loop all players:
  126. {SpecInfo.Enabled::%loop-player%} is true
  127. message "{@Prefix.Short} {@PvE.MCube}" to loop-player
  128. else if attacker is a zombie pigman:
  129. loop all players:
  130. {SpecInfo.Enabled::%loop-player%} is true
  131. message "{@Prefix.Short} {@PvE.Pigman}" to loop-player
  132. else:
  133. loop all players:
  134. {SpecInfo.Enabled::%loop-player%} is true
  135. message "{@Prefix.Short} {@PvE}" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement