szumielxd

MostBieg

Dec 30th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.33 KB | None | 0 0
  1. options:
  2. armorstand: location(7238, 107, 7017.5, world "katedra")
  3. berlo: blaze rod named "&e&lBerlo Krola Hadesu" with lore "Pradawny kostur niegdys uzywany||przez samego Wladce Hadesu.||Podobno wystarczy wejsc z nim||do dawnej sali tronowej by||przywolac dawnego wlasciciela."
  4. zbrojaloc: location(7170, 105, 7017, world "katedra")
  5. redstone1: location(7200, 105, 7018, world "katedra")
  6. redstone2: location(7200, 105, 7016, world "katedra")
  7. spawn1: location(7235, 107, 7031, world "katedra")
  8. spawn2: location(7235, 107, 7003, world "katedra")
  9.  
  10.  
  11.  
  12. # ---------aktywowanie questu---------
  13. command /asdoiajerf8quwefm-vj9824589m:
  14.  
  15. trigger:
  16. "%region at player%" contains "mostbieg_berlo":
  17. loop all armor stands in radius 1 around {@armorstand}:
  18. if type of loop-armor stand's tool is blaze rod:
  19. clear {mostbieg.zombie::*}
  20. set loop-armor stand's tool to air
  21. send "&6Taktyczny obserwator &b» &eO nie! rozejrzyj sie!"
  22. loop 5 times:
  23. spawn baby zombie at {@spawn1}
  24. set {_z} to spawned zombie
  25. set {_z}'s passengers to {_ch}
  26. set boots of {_z} to leather boots
  27. set leggings of {_z} to chainmail leggings of protection 1
  28. set chestplate of {_z} to chainmail chestplate of protection 1
  29. set helmet of {_z} to iron helmet
  30. set name of {_z} to "&4&lStraznik"
  31. set {_z}'s tool to cooked chicken
  32. set target of {_z} to player
  33. wait 1 second
  34. send "&6Taktyczny obserwator &b» &eLepiej uciekaj przed tymi kreaturami na most"
  35.  
  36. stop
  37.  
  38. on damage of zombie:
  39. "%region at victim%" contains "mostbieg_quest":
  40. cancel event
  41.  
  42.  
  43. on enter region "mostbieg_start":
  44. loop all armor stands in radius 1 around {@armorstand}:
  45. if type of loop-armor stand's tool is blaze rod:
  46. push player upwards at speed 0.5
  47. push player east at speed 2
  48. send "&6Taktyczny obserwator &b» &cHej! To piekne berlo moze Ci sie dalej przydac"
  49. stop
  50.  
  51. command /asfu0q351f9qitkq0p5k2 <integer>:
  52. permission: op
  53. trigger:
  54. arg is 1:
  55. block at {@redstone1} is air:
  56. set block at {@redstone1} to redstone block
  57. wait 15 seconds
  58. set block at {@redstone1} to air
  59. arg is 2:
  60. block at {@redstone2} is air:
  61. set block at {@redstone2} to redstone block
  62. wait 15 seconds
  63. set block at {@redstone2} to air
  64.  
  65.  
  66.  
  67. on damage of player:
  68. "%region at victim%" contains "mostbieg_quest":
  69. reset_mostbieg(victim)
  70.  
  71.  
  72. on load:
  73. loop all armor stands in radius 1 around {@armorstand}:
  74. if type of loop-armor stand's tool is not blaze rod:
  75. set loop-armor stand's tool to {@berlo}
  76. loop all armor stands in radius 4 around {@zbrojaloc}:
  77. set block at {@zbrojaloc} to air
  78. set block at {@redstone1} to air
  79. set block at {@redstone2} to air
  80.  
  81. on enter region "mostbieg_smierc1":
  82. reset_mostbieg(player)
  83.  
  84. on enter region "mostbieg_smierc2":
  85. reset_mostbieg(player)
  86.  
  87. on enter region "most_sprint_armor":
  88. loop all armor stands in radius 4 around {@zbrojaloc}:
  89. kill loop-armor stand
  90. set block at {@zbrojaloc} to redstone block
  91.  
  92. on exit region "most_sprint_armor":
  93. loop all armor stands in radius 4 around {@zbrojaloc}:
  94. kill loop-armor stand
  95. set block at {@zbrojaloc} to air
  96.  
  97.  
  98. function mostbieg_end(p: player):
  99. set {_m} to metadata value "mostbieg.uzyc" of {_p}
  100. add 1 to {_m}
  101. if {_m} >= 3:
  102. send {_p} title "&4&lPorazka!" with subtitle "&fPokonala Cie armia 4 zombie-dzieci..." for 5 seconds
  103. clear metadata value "mostbieg.uzyc" of {_p}
  104. run {_p} command "warp katedra" as op
  105. else:
  106. send {_p} title "&4&lZawiodles..." with subtitle "&7Zostalo ci juz tylko %3-{_m}% prob" for 5 seconds
  107. set metadata value "mostbieg.uzyc" of {_p} to {_m}
  108.  
  109. on exit region "mostbieg_quest":
  110. clear metadata value "mostbieg.uzyc" of player
  111.  
  112.  
  113. function reset_mostbieg(p: player):
  114. teleport {_p} 4 meters east of {@armorstand}
  115. mostbieg_end({_p})
  116. loop all zombies in radius 70 around {@redstone1}:
  117. teleport loop-zombie 100 meters below loop-zombie
  118. kill loop-zombie
  119. loop all armor stands in radius 1 around {@armorstand}:
  120. if type of loop-armor stand's tool is not blaze rod:
  121. set loop-armor stand's tool to {@berlo}
  122. loop all armor stands in radius 4 around {@zbrojaloc}:
  123. kill loop-armor stand
  124. wait 1 ticks
  125. set block at {@zbrojaloc} to air
  126. set block at {@redstone1} to air
  127. set block at {@redstone2} to air
  128. wait 1 tick
  129. heal {_p}
Advertisement
Add Comment
Please, Sign In to add comment