szumielxd

SZportals

Jan 21st, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.50 KB | None | 0 0
  1. on enter region "szportale_quest":
  2. set metadata value "szportale.rand" of player to random integer between 1 and 10
  3. set metadata value "szportale.meta" of player to random integer between 1 and 40
  4. loop all players in radius 300 around player:
  5. "%loop-player%" is not "%player%":
  6. "%region at loop-player%" contains "szportale_quest":
  7. stop
  8. loop all zombies in radius 300 around player:
  9. "%region at loop-zombie%" contains "szportale_quest":
  10. teleport loop-zombie 50 meters below loop-zombie
  11. kill loop-zombie
  12. loop 10 times:
  13. loop-number != 1:
  14. set {_loc1} to location 7 meters west and 1.5 meter above {szportal.portale::%loop-number%}
  15. set {_loc2} to location 7 meters south and 1.5 meter above {szportal.portale::%loop-number%}
  16. set {_loc3} to location 7 meters east and 1.5 meter above {szportal.portale::%loop-number%}
  17. set {_loc4} to location 7 meters north and 1.5 meter above {szportal.portale::%loop-number%}
  18. if mod(loop-number-1, 2) = 0:
  19. spawn mythicmob "CzarnoKsieznik" at {_loc1} with level 30
  20. spawn mythicmob "CzarnoKsieznik" at {_loc2} with level 30
  21. spawn mythicmob "CzarnoKsieznik" at {_loc3} with level 30
  22. spawn mythicmob "CzarnoKsieznik" at {_loc4} with level 30
  23. else:
  24. spawn mythicmob "UczenCzaroksieznika" at {_loc1} with level 30
  25. spawn mythicmob "UczenCzaroksieznika" at {_loc2} with level 30
  26. spawn mythicmob "UczenCzaroksieznika" at {_loc3} with level 30
  27. spawn mythicmob "UczenCzaroksieznika" at {_loc4} with level 30
  28.  
  29.  
  30. on enter region:
  31. if "%region%" contains "szportale_kociol":
  32. set {_r} to "%region at player%"
  33. send "&d%{_r}%"
  34. loop all zombies in radius 60 around player:
  35. if "%region at loop-zombie%" contains "%{_r}%":
  36. play 50 witch spell at event-location
  37. play sound "minecraft:entity.bat.death" with volume 0.8 and pitch 0.5 at player
  38. push player upwards at speed 0.5
  39. push player horizontal behind at speed 0.2
  40. cancel event
  41. stop
  42. play 2000 water drip on event-location
  43. # summon 100 of "dripWater" particles at player offset by 0.5, 1, 0.5
  44. wait 3 ticks
  45. set {_n} to "%region%"
  46. replace all " in world katedra" with "" in {_n}
  47. set {_n} to last 2 characters of {_n} parsed as integer
  48. set {_k} to {_n}
  49. set {_a} to metadata value "szportale.meta" of player
  50. if {_a} = {_n}:
  51. teleport player to {szportal.end}
  52. send player title "&a&lBrawo!" with subtitle "&c&lDotarles do Bossa!"
  53. stop
  54. set {_m} to metadata value "szportale.rand" of player
  55. add {_m} to {_n}
  56. set {_n} to mod({_n}, 10)
  57. add 1 to {_n}
  58. if {_n} = 1:
  59. send "&3&lWszedles do kociolka nr %{_k}%"
  60. else if {_n} = 2:
  61. send "&e&lWszedles do kociolka nr %{_k}%"
  62. else if {_n} = 3:
  63. send "&6&lWszedles do kociolka nr %{_k}%"
  64. else if {_n} = 4:
  65. send "&b&lWszedles do kociolka nr %{_k}%"
  66. else if {_n} = 5:
  67. send "&d&lWszedles do kociolka nr %{_k}%"
  68. else if {_n} = 6:
  69. send "&4&lWszedles do kociolka nr %{_k}%"
  70. else if {_n} = 7:
  71. send "&a&lWszedles do kociolka nr %{_k}%"
  72. else if {_n} = 8:
  73. send "&5&lWszedles do kociolka nr %{_k}%"
  74. else if {_n} = 9:
  75. send "&1&lWszedles do kociolka nr %{_k}%"
  76. else:
  77. send "&2&lWszedles do kociolka nr %{_k}%"
  78. teleport player to {szportal.portale::%{_n}%}
  79. play sound "entity.player.swim" with volume 0.7 and pitch 1 at player
  80. play 1000 happy villager at player
  81.  
  82.  
  83. command /szportal <text> [<integer>]:
  84. usage: /szportal <add|clear|list|remove|end> [integer]
  85. permission: wlasciciel
  86. trigger:
  87. if arg 1 is "add":
  88. set {_l} to location of block at player
  89. "%{szportal.portale::*}%" contains "%{_l}%":
  90. send "&cTa lokalizacja jest juz dodana do listy"
  91. else:
  92. add {_l} to {szportal.portale::*}
  93. send "&2Dodano &a%size of {szportal.portale::*}% &2lokalizacje do listy"
  94. else if arg 1 is "clear":
  95. delete {szportal.portale::*}
  96. send "&2Usunieto wszystkie dotychczasowe lokalizacje"
  97. else if arg 1 is "list":
  98. send "&2&lZapisano &4&l%size of {szportal.portale::*}%&2&l lokalizacji:"
  99. loop {szportal.portale::*}:
  100. send "&2%loop-index%. &a%loop-value%"
  101. send "&2Lokalizacja koncowa: %{szportal.end}%}"
  102. else if arg 1 is "remove":
  103. if arg 2 is set:
  104. if {szportal.portale::%arg 2%} is set:
  105. delete {szportal.portale::%arg 2%}
  106. send "&2Usunieto lokalizacje nr &a%arg 2%&2!"
  107. else:
  108. send "&cPodaj numer lokalizacji"
  109. else:
  110. send "&cPodaj numer lokalizacji"
  111. else if arg 1 is "end":
  112. set {szportal.end} to player's location
  113. send "&2Pomyslnie ustawiono koncowa lokalizacje"
Advertisement
Add Comment
Please, Sign In to add comment