Guest User

UltraHard

a guest
Jul 29th, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.85 KB | None | 0 0
  1. options:
  2. #---------------------------------#
  3. # UltraHard By DePixel #
  4. # - Zabraniam : #
  5. # 1. Usuwanie Informacji O Autorze#
  6. # 2.Wykorzystywanie kodu skryptu #
  7. # do swoich skryptow. #
  8. # #
  9. #---------------------------------#
  10.  
  11. zapadniecie: 10 #Szansa na zapadniecie sie blokow pod graczem
  12.  
  13. variables:
  14. {uhc.pkt.%player%} = 6
  15. {uhc.pragnienie.%player%} = 50
  16.  
  17. on load:
  18. set {_speed} to "szybkosc"
  19. Recipe.new{{_speed}};
  20. {_speed}.Recipe.registerIngredient{2, sugar};
  21. {_speed}.Recipe.registerIngredient{5, feather};
  22. {_speed}.Recipe.registerIngredient{8, water bottle};
  23. {_speed}.Recipe.registerResult{1 bottle of water named "&8> &2Szybkosc &8<"};
  24. {_speed}.Recipe.register{};
  25. on load:
  26. set {_leczenie} to "leczanie"
  27. Recipe.new{{_leczenie}};
  28. {_leczenie}.Recipe.registerIngredient{2, golden apple};
  29. {_leczenie}.Recipe.registerIngredient{5, golden carrot};
  30. {_leczenie}.Recipe.registerIngredient{8, water bottle};
  31. {_leczenie}.Recipe.registerResult{1 bottle of water named "&8> &2Uleczanie &8<"};
  32. {_leczenie}.Recipe.register{};
  33. on join:
  34. if {uhc.gracz.%player%} is not set:
  35. set max health of player to 6
  36. if {uhc.pragnienie.%player%} is not set:
  37. set {uhc.pragnienie.%player%} to 50
  38. if {uhc.lvlup.%player%} is not set:
  39. set {uhc.lvlup.%player%} to 0
  40.  
  41. on walk on cobblestone or planks or stone:
  42. chance of {@zapadniecie}%:
  43. loop blocks in radius 1 of block under player:
  44. loop-block is not air or bedrock:
  45. block under loop-block is air:
  46. if loop-block is stone:
  47. set loop-block to air
  48. spawn falling stone at loop-block
  49. if loop-block is planks:
  50. set loop-block to air
  51. spawn falling planks at loop-block
  52. if loop-block is cobblestone:
  53. set loop-block to air
  54. spawn falling cobblestone at loop-block
  55.  
  56. on consume:
  57. if player's tool is golden apple:
  58. cancel event
  59. remove 1 golden apple from player
  60. heal player by 1 or 2 heart
  61. add 3 to player's food
  62. if player's tool is golden apple:1:
  63. cancel event
  64. remove 1 golden apple:1 from player
  65. heal player by 3 or 4 heart
  66. add 4 to player's food
  67. if player's tool is water bottle named "<dark green>Nieugotowana woda":
  68. chance of 50%:
  69. apply poison to the player for 1 minute
  70. send "[&6UH&f] Zapomniales ugotowac wode i sie otrułeś!"
  71. if name of player's tool is "<aqua>Ugotowana Woda":
  72. if {uhc.pragnienie.%player%} is smaller than 50:
  73. add 10 to {uhc.pragnienie.%player%}
  74. display "&aPragnienie % {uhc.pragnienie.%player%}%/50" on bossbar with 100 percent by 5 seconds for player
  75. if name of player's tool is "&8> &2Szybkosc &8<":
  76. apply speed to the player for 60 seconds
  77. send "[&6UH&f] Wypiles Mixture na szybkosc!"
  78. if name of player's tool is "&8> &2Uleczanie &8<":
  79. heal player by 5 hearts
  80. send "[&6UH&f] Zostales Uleczony"
  81.  
  82. on click with glass bottle:
  83. if target block is water:
  84. cancel event
  85. wait 1 tick
  86. remove glass bottle from the player
  87. add water bottle named "<dark green>Nieugotowana woda" to the player
  88.  
  89. on death of zombie or skeleton or spider:
  90. add 1 to {uhc.lvlup.%attacker%}
  91.  
  92. every 5 seconds:
  93. loop all players:
  94. if {uhc.lvlup.%loop-player%} is equal to 10:
  95. add 1 to {uhc.pkt.%loop-player%}
  96. set {uhc.lvlup.%loop-player%} to 0
  97. set max health of loop-player to {uhc.pkt.%loop-player%}
  98. if loop-player's health is more than 10:
  99. set max health of loop-player to 9
  100.  
  101.  
  102.  
  103. command /uh [<text>]:
  104. trigger:
  105. if arg 1 is not set:
  106. send "&8[]=====&6UH&8=====[]"
  107. send "&8/uh lvl - &6 Sprawdz ile pkt. potrzebujesz aby zdobyc HP"
  108. send "&8/uh autor - &6 Sprawdz autora Skriptu"
  109. if arg 1 is "autor":
  110. send "&8[]=====&6UH&8=====[]"
  111. send "&2 Autor Skryptu - DePixel"
  112. if arg 1 is "lvl":
  113. send "&8[]=====&6UH&8=====[]"
  114. send "&2 Masz %{uhc.lvlup.%player%}%/10 pkt. "
  115. send "&2 Po osiagniecu 10 pkt. dostajesz 1 HP"
  116.  
  117. command /reset:
  118. trigger:
  119. set {uhc.lvlup.%player%} to 0
  120. set {uhc.pkt.%player%} to 6
  121. set max health of player to 5
  122.  
  123. on spawn of creeper:
  124. chance of 30%:
  125. spawn event-entity
  126. apply speed 1 to spawned entity
  127. strike lightning at last spawned entity
  128. apply fire resistance to spawned entity
  129. wait 3 ticks
  130. extinguish spawned entity
  131.  
  132. on spawn of zombie:
  133. chance of 30%:
  134. equip event-entity with golden chestplate and golden leggings and golden helmet
  135. apply speed 1 to spawned entity
  136. apply fire resistance to spawned entity
  137. wait 3 ticks
  138. extinguish spawned entity
  139.  
  140. at 8:00 pm:
  141. send "[&6UH&f]&4 Zapada Zmrok!" to all players
  142. send "[&6UH&f]&4 Lepiej Znajdz Schronienie" to all players
  143. apply slowness to all players for 1 day
  144.  
  145. at 6:00 am:
  146. loop all players:
  147. remove slowness from loop-player
  148.  
  149.  
  150. every 5 seconds:
  151. loop all players:
  152. if time in loop-player's world is night:
  153. light level at the loop-player is smaller than 11:
  154. damage loop-player by 1 hearts
  155. if {uhc.pragnienie.%loop-player%} is smaller than 10:
  156. damage loop-player by 1 hearts
  157. send "[&6UH&f] Twój poziom pragnienia jest niski!" to loop-player
  158. display "&22%{uhc.pragnienie.%loop-player%}%/50" on bossbar with 100 percent by 5 seconds for loop-player
  159. if loop-player contains diamond sword of sharpness 4:
  160. remove diamond sword of sharpness 4 from the loop-player
  161. send "[UH] Miecze z LvL'em wyższym niż 3 są zablokowane" to loop-player
  162. if loop-player contains diamond sword of smite 4:
  163. remove diamond sword of smite 4 from the loop-player
  164. send "[UH] Miecze z LvL'em wyższym niż 3 są zablokowane" to loop-player
  165. if loop-player contains diamond sword of bane of arthropods 4:
  166. remove diamond sword of bane of arthropods 4 from the loop-player
  167. send "[UH] Miecze z LvL'em wyższym niż 3 są zablokowane" to loop-player
  168. every 10 minutes:
  169. loop all players:
  170. if loop-player's y-coordinate is smaller than 50:
  171. chance of 50%:
  172. if {uhc.zapada.%loop-player%} is true:
  173. set {uhc.zapada.%loop-player%} to false
  174. loop blocks in radius 10 of loop-player:
  175. if block under loop-block is air:
  176. send "[&6UH&f] &f Kopalnia sie zapada!" to loop-player
  177. wait 10 seconds
  178. set loop-block to air
  179. spawn falling stone at loop-block
  180. wait 9 minutes
  181. set {uhc.zapada.%loop-player%} to false
  182.  
  183. on damage of wither skeleton:
  184. if name of victim is "&4Mroczny Szkielet":
  185. remove boss bar from attacker
  186. set {uhc.proc.%victim%} to rounded health of victim
  187. if {uhc.proc.%victim%} is between 1 and 100:
  188. chance of 50%:
  189. display "&4Mroczny Szkielet" on bossbar with 100 percent by 2 seconds for attacker
  190. chance of 30%:
  191. display "%{uhc.proc.%victim%}%/100" on bossbar with 100 percent by 5 seconds for attacker
  192. if attacker is player:
  193. chance of 10%:
  194. if distance between victim and attacker is smaller than 20:
  195. ignite attacker
  196. strike lightning effect at attacker
  197. on spawn of pig:
  198. chance of 10%:
  199. cancel event
  200. spawn a zombie pigman
  201. set display name of spawned entity to "&4Piekielny Zombie"
  202. set max health of spawned entity to 100
  203. heal spawned entity
  204. set {uhc.bossy.%entity%} to true
  205.  
  206. on damage of a zombie pigman:
  207. if name of victim is "&4Piekielny Zombie":
  208. remove boss bar from attacker
  209. set {uhc.proc.%victim%} to rounded health of victim
  210. if {uhc.proc.%victim%} is between 1 and 100:
  211. chance of 50%:
  212. display "&4Piekielny Zombie" on bossbar with 100 percent by 2 seconds for attacker
  213. chance of 30%:
  214. display "%{uhc.proc.%victim%}%/100" on bossbar with 100 percent by 5 seconds for attacker
  215.  
  216. on break of stone:
  217. chance of 5%:
  218. player's y-coordinate is smaller than 60:
  219. loop blocks in radius 1 of event-block:
  220. loop-block is stone:
  221. block below or above loop-block is air:
  222. chance of 20%:
  223. set loop-block to air
  224. spawn a silverfish at loop-block
  225.  
  226. on damage of player:
  227. if attacker is silverfish:
  228. chance of 5%:
  229. loop blocks in radius 4 of attacker:
  230. loop-block is stone:
  231. block below or above loop-block is air:
  232. set loop-block to air
  233. spawn a silverfish at loop-block
  234.  
  235. on death of creature:
  236. if victim is wither skeleton:
  237. if attacker is player:
  238. name of victim is "&4Mroczny Szkielet":
  239. broadcast "[&6UH&f] &2 Gracz &l%attacker% &2 Zabil &9 Mrocznego Szkieleta!"
  240. if victim is zombie pigman:
  241. if attacker is player:
  242. name of victim is "&4Piekielny Zombie":
  243. broadcast "[&6UH&f] &2 Gracz &l%attacker% &2 Zabil &4 Piekielnego Zombie!!"
  244.  
  245.  
  246.  
  247. every 120 seconds:
  248. loop all players:
  249. add random integer between -1 and -5 to {uhc.pragnienie.%loop-player%}
  250.  
  251. on spawn of skeleton:
  252. chance of 10%:
  253. cancel event
  254. spawn a wither skeleton
  255. set display name of spawned entity to "&4Mroczny Szkielet"
  256. set max health of spawned entity to 100
  257. heal spawned entity
  258. set {uhc.bossy.%entity%} to true
  259.  
  260. on click on brewing stand:
  261. cancel event
  262. send "[UH] Brewing Stand Jest Zablokowany"
  263.  
  264. on right click on cauldron:
  265. if event-block is cauldron:3:
  266. if block under event-block is fire:
  267. if player's tool is bottle:
  268. remove 1 water bottle from player
  269. add bottle of water named "<aqua>Ugotowana Woda" to the player
  270. set event-block to cauldron:2
  271. stop trigger
  272. if event-block is cauldron:2:
  273. if block under event-block is fire:
  274. if player's tool is bottle:
  275. remove 1 water bottle from player
  276. add bottle of water named "<aqua>Ugotowana Woda" to the player
  277. set event-block to cauldron:1
  278. stop trigger
  279. if event-block is cauldron:1:
  280. if block under event-block is fire:
  281. if player's tool is bottle:
  282. remove 1 water bottle from player
  283. add bottle of water named "<aqua>Ugotowana Woda" to the player
  284. set event-block to cauldron
  285. stop trigger
  286.  
  287. on death of player:
  288. set {uhc.pragnienie.%player%} to 50
Advertisement
Add Comment
Please, Sign In to add comment