szumielxd

RPG_most_end3

Dec 31st, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. Options:
  2. start_block: location at 6993.5, 97.5, 6613.5 of the world "katedra"
  3. small_coord_bridge: location at 6971.5, 96.5, 6610.5 of the world "katedra"
  4. big_x: 21
  5. big_z: 3
  6.  
  7.  
  8. on load:
  9. most3_clear()
  10.  
  11.  
  12. function most3_clear():
  13. set {_loc} to {@small_coord_bridge}
  14. set {_x} to x-coordinates of {_loc}
  15. set {_y} to y-coordinates of {_loc}
  16. set {_z} to z-coordinates of {_loc}
  17. set {_w} to world of {_loc}
  18. loop {@big_x} times:
  19. loop {@big_z} times:
  20. set block at location({_x}, {_y}, {_z}, {_w}) to air
  21. set block at location({_x}, {_y}-1, {_z}, {_w}) to air
  22.  
  23.  
  24. #on walk on wool:
  25. # player is in region "rpg_most":
  26. # send "%player's location%"
  27. # set {_loc} to {@small_coord_bridge}
  28. # set {_x} to x-coordinates of {_loc}
  29. # set {_y} to y-coordinates of {_loc}
  30. # set {_z} to z-coordinates of {_loc}
  31. # set {_w} to world of {_loc}
  32. # set {_b} to type of event-block
  33. # loop {@big_x} times:
  34. # loop {@big_z} times:
  35. # set {_l} to location at ({_x}+ loop-number-1)-1, {_y}, ({_z}+ loop-number-2)-1 of world {_w}
  36. # if location of event-block is not {_l}:
  37. # if type of block at {_l} is type of event-block:
  38. # set block at {_l} to air
  39. # play mob spawner flames at {_l}
  40. # wait 1 tick
  41. # if type of block at {_l} is type of block below player:
  42. # set block at {_l} to air
  43. # play mob spawner flames at {_l}
  44. # wait 1 tick
  45.  
  46.  
  47.  
  48. on enter region "most_asd3":
  49. wait 1 ticks
  50. if block at player is air:
  51. set {_pl} to location of player
  52. add 0.5 to x-coordinates of {_pl}
  53. add 0.5 to z-coordinates of {_pl}
  54. loop all blocks in radius 0.8 around {_pl}:
  55. if type of loop-block is not air:
  56. if distance between player and {_b} is not bigger than distance between player and loop-block:
  57. "%region at loop-block%" contains "most_asd3":
  58. set {_b} to loop-block
  59. else:
  60. set {_b} to block at player
  61. if {_b} is not set:
  62. stop
  63. wait 1 tick
  64. push player upwards at speed 1
  65. set {_loc} to {@small_coord_bridge}
  66. set {_x} to x-coordinates of {_loc}
  67. set {_y} to y-coordinates of {_loc}
  68. set {_z} to z-coordinates of {_loc}
  69. set {_w} to world of {_loc}
  70. loop {@big_x} times:
  71. loop {@big_z} times:
  72. set {_l} to location at ({_x}+ loop-number-1)-1, {_y}, ({_z}+ loop-number-2)-1 of player's world
  73. if location of {_b} is not {_l}:
  74. if type of block at {_l} is type of {_b}:
  75. set block at {_l} to air
  76. set block below {_l} to air
  77. play mob spawner flames at {_l}
  78.  
  79.  
  80. on rightclick on end portal frame:
  81. set {_beacon} to {@start_block}
  82. location of event-block is {_beacon}:
  83. cancel event
  84. if difference between {rpg.most3.restart} and now is smaller than 20 seconds:
  85. send "&cJeszcze nie minelo 20 sekund"
  86. stop
  87. set {rpg.most.restart} to now
  88. send "&aStawiam most..."
  89. set {_loc} to {@small_coord_bridge}
  90. set {_x} to x-coordinates of {_loc}
  91. set {_y} to y-coordinates of {_loc}
  92. set {_z} to z-coordinates of {_loc}
  93. set {_w} to world of {_loc}
  94. loop {@big_x} times:
  95. loop {@big_z} times:
  96. set {_a} to random integer between 1 and 4
  97. if {_a} = 1:
  98. set {_a} to yellow carpet
  99. set {_b} to yellow wool
  100. else if {_a} = 2:
  101. set {_a} to pink carpet
  102. set {_b} to pink wool
  103. else if {_a} = 3:
  104. set {_a} to light blue carpet
  105. set {_b} to light blue wool
  106. else if {_a} = 4:
  107. set {_a} to light green carpet
  108. set {_b} to light green wool
  109. else if {_a} = 5:
  110. set {_a} to spruce wood slab
  111. else if {_a} = 6:
  112. set {_a} to 1 of jungle wood slab
  113. else if {_a} = 7:
  114. set {_a} to 1 of 182
  115. set block at location({_x}, {_y}, {_z}, {_w}) to {_a}
  116. set block at location({_x}, {_y}-1, {_z}, {_w}) to {_b}
  117. if {_k} is not set:
  118. if loop-number-2 = 3:
  119. set {_k} to true
  120. else:
  121. add 1 to {_z}
  122. else:
  123. if loop-number-2 = 3:
  124. delete {_k}
  125. else:
  126. remove 1 from {_z}
  127. wait 1 tick
  128. add 1 to {_x}
  129. wait 18 seconds
  130. most3_clear()
Advertisement
Add Comment
Please, Sign In to add comment