Guest User

Trap Card

a guest
Jul 8th, 2015
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. options:
  2.  
  3. P: <cyan>[<gray>UHC<cyan>]
  4.  
  5. command /trapcard <text>:
  6. permission: skript.op
  7. usage: /trapcard <on/off>
  8. trigger:
  9. if arg-1 is "on":
  10. set {TrapCard} to true
  11. broadcast "{@P} <brown>Trap Card Enabled"
  12. loop all players:
  13. give loop-player 1 end stone named "Trap Card"
  14.  
  15. if arg-1 is "off":
  16. delete {TrapCard}
  17. broadcast "{@P} <brown>Trap Card Disabled"
  18. loop all players:
  19. remove every end stone named "Trap Card" from loop-player's inventory
  20.  
  21. #ProjectileTrap#
  22.  
  23. on damage of a player:
  24. {TrapCard} is true
  25. damage cause is projectile
  26. attacker is a player
  27. projectile is arrow
  28. victim has 1 end stone named "Trap Card"
  29. wait 1 tick
  30. chance of 20%
  31. apply slowness 2 to the shooter for 15 seconds
  32. remove every end stone named "Trap Card" from the victim's inventory
  33.  
  34. on damage of a player:
  35. {TrapCard} is true
  36. damage cause is projectile
  37. attacker is a player
  38. projectile is arrow
  39. victim has 1 end stone named "Trap Card"
  40. wait 1 tick
  41. chance of 20%
  42. broadcast "{@P} <white>%attacker% is located at: <red>%location of shooter%"
  43. remove every end stone named "Trap Card" from the victim's inventory
  44.  
  45. on damage of a player:
  46. {TrapCard} is true
  47. damage cause is projectile
  48. attacker is a player
  49. projectile is arrow
  50. victim has 1 end stone named "Trap Card"
  51. wait 1 tick
  52. chance of 20%
  53. spawn 1 creeper behind the shooter
  54. spawn 1 creeper in front of the shooter
  55. spawn 1 creeper right of the shooter
  56. spawn 1 creeper left of the shooter
  57. remove every end stone named "Trap Card" from the victim's inventory
  58.  
  59. on damage of a player:
  60. {TrapCard} is true
  61. damage cause is projectile
  62. attacker is a player
  63. projectile is arrow
  64. victim has 1 end stone named "Trap Card"
  65. wait 1 tick
  66. chance of 20%
  67. loop blocks in radius 3 around the attacker:
  68. set loop-block to bedrock
  69. wait 10 seconds
  70. loop blocks in radius 3 around the attacker:
  71. set loop-block to air
  72. remove every end stone named "Trap Card" from the victim's inventory
  73.  
  74. on damage of a player:
  75. {TrapCard} is true
  76. damage cause is projectile
  77. attacker is a player
  78. projectile is arrow
  79. victim has 1 end stone named "Trap Card"
  80. wait 1 tick
  81. chance of 20%
  82. loop blocks in radius 5 around the attacker:
  83. set loop-block to air
  84. remove every end stone named "Trap Card" from the victim's inventory
  85.  
  86. #KillTrap#
  87.  
  88. on death of player:
  89. {TrapCard} is true
  90. damage cause is attacker
  91. victim has 1 end stone named "Trap Card"
  92. wait 1 tick
  93. chance of 20%
  94. apply slowness 2 to the shooter for 15 seconds
  95. remove every end stone named "Trap Card" from the victim's inventory
  96.  
  97. on death of player:
  98. {TrapCard} is true
  99. damage cause is attacker
  100. victim has 1 end stone named "Trap Card"
  101. wait 1 tick
  102. chance of 20%
  103. broadcast "{@P} <white>%attacker% is located at: <red>%location of attacker%"
  104. remove every end stone named "Trap Card" from the victim's inventory
  105.  
  106. on death of player:
  107. {TrapCard} is true
  108. damage cause is attacker
  109. victim has 1 end stone named "Trap Card"
  110. wait 1 tick
  111. chance of 20%
  112. spawn 1 creeper behind the attacker
  113. spawn 1 creeper in front of the attacker
  114. spawn 1 creeper right of the attacker
  115. spawn 1 creeper left of the attacker
  116. remove every end stone named "Trap Card" from the victim's inventory
  117.  
  118. on death of player:
  119. {TrapCard} is true
  120. damage cause is attacker
  121. victim has 1 end stone named "Trap Card"
  122. wait 1 tick
  123. chance of 20%
  124. loop blocks in radius 3 around the attacker:
  125. set loop-block to bedrock
  126. wait 10 seconds
  127. loop blocks in radius 3 around the attacker:
  128. set loop-block to air
  129. remove every end stone named "Trap Card" from the victim's inventory
  130.  
  131. on death of player:
  132. {TrapCard} is true
  133. damage cause is attacker
  134. victim has 1 end stone named "Trap Card"
  135. wait 1 tick
  136. chance of 20%
  137. loop blocks in radius 5 around the attacker:
  138. set loop-block to air
  139. remove every end stone named "Trap Card" from the victim's inventory
  140.  
  141. #ExtraStuff
  142.  
  143. on death of player:
  144. {TrapCard} is true
  145. drop 1 end stone named "Trap Card" at location of victim
  146.  
  147. on place of end stone:
  148. {TrapCard} is true
  149. cancel the event
Advertisement
Add Comment
Please, Sign In to add comment