Entities

Warthog minecraft script

Aug 8th, 2017
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.63 KB | None | 0 0
  1. on load:
  2. set {speed} to 1
  3. set {hackspeed} to 5
  4. set {breaks} to 4
  5. set {dirtbreaks} to 6
  6. set {defspeed02} to 0.3
  7. set {number.2} to 2
  8.  
  9. on damage of player:
  10. #REACH
  11. attacker is a player
  12. projectile doesn't exist
  13. if distance between attacker and victim is greater than 3:
  14. cancel event
  15.  
  16. on walk on water:
  17. block at player is air
  18. block under player is water
  19. wait 5 ticks
  20. block under player is water
  21. wait 1 tick
  22. block at player is air
  23. block under player is water
  24. teleport player to block under player
  25. send "&6[&cWarthog&6] &9There was only one Jesus... You're not the choosen one!" to player
  26.  
  27. on any movement:
  28. if {%player%.moving} is not set:
  29. set {%player%.moving} to true
  30. wait 10 ticks
  31. delete {%player%.moving}
  32.  
  33. if {%player%.jumping} is not set:
  34. set {%player%.alty} to player's altitude
  35. wait 2 ticks
  36. if {%player%.alty} is less than player's altitude:
  37. set {%player%.jumping} to true
  38. wait 10 ticks
  39. delete {%player%.jumping}
  40. #NO SLOWDOWN
  41. block under player is not air:
  42. block at player's position is not air:
  43. set {%player%.groundpos} to player's position
  44.  
  45. block under player is soulsand:
  46. player has potion of speed:
  47. stop
  48. player's walking speed is bigger than or equal to {defspeed02}:
  49. kick player due to "&6[&cWarthog&6] &9Got your soul! No, really... Hacking is not allowed on this server!"
  50.  
  51. #FINALLY SUCCESSFUL FLYHACK BLOCKING
  52.  
  53. player's gamemode is not creative:
  54. if player's fly mode is not true:
  55. player has permission "warthog.fly":
  56. add 1 to {warthog.novalue}
  57. else:
  58. set {%player%.yy} to player's altitude
  59. set {_block} to block at player
  60. set {_block2} to block under {_block}
  61. if {_block2} is not air:
  62. set {%player%.fly} to false
  63. stop
  64. else:
  65. wait 2 ticks
  66. set {_block} to block at player
  67. set {_block2} to block under {_block}
  68. if {_block2} is air or sugar cane:
  69. if {%player%.yy} is less than or equal to player's altitude:
  70. wait 3 ticks
  71. if {%player%.yy} is less than or equal to player's altitude:
  72. set {_block} to block at player
  73. set {_block2} to block under {_block}
  74. if {_block2} is air or sugar cane:
  75. wait 3 ticks
  76. if {%player%.yy} is less than or equal to player's altitude:
  77. wait 3 ticks
  78. if {%player%.yy} is less than or equal to player's altitude:
  79. set {_block} to block at player
  80. set {_block2} to block under {_block}
  81. if {_block2} is air or sugar cane:
  82. set {%player%.fly} to true
  83. delete {warthog.novalue}
  84. else:
  85. set {%player%.fly} to false
  86.  
  87. if {%player%.fly} is true:
  88. if {%player%.groundpos} is set:
  89. teleport player to {%player%.groundpos}
  90. else:
  91. loop blocks under player:
  92. loop-block is not air:
  93. block above loop-block is air:
  94. teleport player to loop-block
  95.  
  96. on chat:
  97. #VULGAR
  98. if message contains "cunt", "bitch", "motherfucker", "fucker", "fuck", "dildo", "son of bitch", "idiot", "kid" or "shit":
  99. cancel event
  100. kick player due to "&6[&cWarthog&6] &9You should not use vulgars!"
  101. broadcast "&6[&cWarthog&6] &9%player% was kicked due to using vulgar language."
  102.  
  103. on tool change:
  104. set {%player%.changedtool} to true
  105. wait 2 ticks
  106. clear {%player%.changedtool}
  107.  
  108. on leftclick:
  109. wait 1 tick
  110. if {%player%.changedtool} is true:
  111. kick player due to "&6[&cWarthog&6] How amazing! You just switched your tool 0.05 seconds after you clicked! Seems legit..."
  112. clear {%player%.changedtool}
  113.  
  114. on mine of stone or any ore:
  115. #FAST BREAK
  116. player has wood pickaxe in hand:
  117. tool is not enchanted
  118. add 1 to {%player%.breaks}
  119. wait 20 ticks
  120. {%player%.breaks} is bigger than {breaks}:
  121. clear {%player%.breaks}
  122. kick player due to "&6[&cWarthog&6] &9Seems sooooo legit..."
  123. else:
  124. clear {%player%.breaks}
  125. player has stone pickaxe in hand:
  126. tool is not enchanted
  127. add 1 to {%player%.breaks}
  128. wait 20 ticks
  129. {%player%.breaks} is bigger than {breaks}+1:
  130. clear {%player%.breaks}
  131. kick player due to "&6[&cWarthog&6] &9Seems sooooo legit..."
  132. else:
  133. clear {%player%.breaks}
  134. player has iron pickaxe in hand:
  135. tool is not enchanted
  136. add 1 to {%player%.breaks}
  137. wait 20 ticks
  138. {%player%.breaks} is bigger than {breaks}+2:
  139. clear {%player%.breaks}
  140. kick player due to "&6[&cWarthog&6] &9Seems sooooo legit..."
  141. else:
  142. clear {%player%.breaks}
  143. player has gold pickaxe in hand:
  144. tool is not enchanted
  145. add 1 to {%player%.breaks}
  146. wait 20 ticks
  147. {%player%.breaks} is bigger than {breaks}+4:
  148. clear {%player%.breaks}
  149. kick player due to "&6[&cWarthog&6] &9Seems sooooo legit..."
  150. else:
  151. clear {%player%.breaks}
  152. player has diamond pickaxe in hand:
  153. tool is not enchanted
  154. add 1 to {%player%.breaks}
  155. wait 20 ticks
  156. {%player%.breaks} is bigger than {breaks}+3:
  157. clear {%player%.breaks}
  158. kick player due to "&6[&cWarthog&6] &9Seems sooooo legit..."
  159. else:
  160. clear {%player%.breaks}
  161.  
  162.  
  163.  
  164. on mine of dirt, gravel, sand or netherrack:
  165. #FAST BREAK
  166. player has any shovel in hand:
  167. tool is not enchanted
  168. add 1 to {%player%.dirtbreaks}
  169. wait 20 ticks
  170. {%player%.dirtbreaks} is bigger than {dirtbreaks}:
  171. clear {%player%.dirtbreaks}
  172. kick player due to "&6[&cWarthog&6] &9Seems sooooo legit..."
  173. else:
  174. clear {%player%.dirtbreaks}
  175.  
  176. on unstore:
  177. #AUTO-LOOT
  178. if {%player%.unstore} is not set:
  179. set {%player%.unstore} to 1
  180. else:
  181. add 1 to {%player%.unstore}
  182. wait 5 ticks
  183. if {%player%.unstore} is bigger than 2:
  184. kick player due to "&6[&cWarthog&6] &9Can't you just take those items one by one?!"
  185. clear {%player%.unstore.start}
  186. clear {%player%.unstore}
  187. else:
  188. clear {%player%.unstore.start}
  189. clear {%player%.unstore}
  190.  
  191. on quit:
  192. clear {%player%.groundpos}
  193. clear {%player%.fly}
  194.  
  195. on damage:
  196. if {%attacker%.chicken} is not set:
  197. set {_pos} to position of block 1.7 meters above attacker's head
  198. spawn chicken at {_pos}
  199. set name of spawned chicken to "KA"
  200. set {_trap} to spawned chicken
  201. set {%attacker%.chicken} to true
  202. hide spawned chicken from all players
  203. reveal spawned chicken to attacker
  204. wait 3 seconds
  205. clear {%attacker%.chicken}
  206. loop 14 times:
  207. wait 2 ticks
  208. push spawned chicken backwards at speed 0.1
  209. set {_pos} to position of block 1.7 meters above attacker's head
  210. teleport spawned chicken to {_pos}
  211. set {_pos} to position of block 1.7 meters above attacker's head
  212.  
  213. if {%attacker%.moving} is true:
  214. push spawned chicken in direction of attacker at speed 0.13
  215. if attacker is sprinting:
  216. push spawned chicken in direction of attacker at speed 0.19
  217. else:
  218. push spawned chicken in direction of attacker at speed 0.06
  219.  
  220. add 1 to {_loop}
  221. if {_loop} is 13:
  222. hide {_trap} to attacker
  223. teleport {_trap} to position of block 10 meters under attacker
  224. kill {_trap}
  225. if spawned chicken is dead:
  226. hide spawned chicken to attacker
  227. if name of victim is "KA":
  228. kick attacker due to "&6[&cWarthog&6] &9Your skills are awesome. However... What would you do without Kill Aura?"
Add Comment
Please, Sign In to add comment