Advertisement
herhor67

GreatFountain - herhor67

Jul 3rd, 2014
1,050
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.88 KB | None | 0 0
  1. #=============================================#
  2. # Skrypt napisany przez herhor67 #
  3. # Nazwa: GreatFountain #
  4. #=============================================#
  5. # Licencja skryptu: #
  6. # * Nie zezwalam na: #
  7. # - Usuwanie tresci o autorze! #
  8. # - Podszywanie sie pod autora! #
  9. # - Uzywanie kodu skryptu w swoich skryptach! #
  10. # - Zarabianie na skrypcie! #
  11. # * Zezwalam na: #
  12. # + Dodawanie kodu na swoja potrzebe! #
  13. # + Modyfikowanie wiadomosci! #
  14. #=============================================#
  15. variables:
  16. {fontanny.wlaczone} = true
  17.  
  18. #---------------------------------------#
  19. # Spawnowanie wody na dole #
  20. #---------------------------------------#
  21. command /fontannadolna:
  22. trigger:
  23. loop {dolne.fontanna::*}:
  24. spawn falling water at loop-value
  25. push last spawned entity upwards at speed 1.1
  26. #---------------------------------------#
  27. # Spawnowanie wody na gorze #
  28. #---------------------------------------#
  29. command /fontannagorna:
  30. trigger:
  31. loop {gorne.fontanna::*}:
  32. spawn falling water at loop-value
  33. push last spawned entity upwards at speed 0.5
  34. push last spawned entity north at speed 0.25
  35. spawn falling water at loop-value
  36. push last spawned entity upwards at speed 0.5
  37. push last spawned entity north at speed 0.22
  38. push last spawned entity east at speed 0.22
  39. spawn falling water at loop-value
  40. push last spawned entity upwards at speed 0.5
  41. push last spawned entity east at speed 0.25
  42. spawn falling water at loop-value
  43. push last spawned entity upwards at speed 0.5
  44. push last spawned entity east at speed 0.22
  45. push last spawned entity south at speed 0.22
  46. spawn falling water at loop-value
  47. push last spawned entity upwards at speed 0.5
  48. push last spawned entity south at speed 0.25
  49. spawn falling water at loop-value
  50. push last spawned entity upwards at speed 0.5
  51. push last spawned entity south at speed 0.22
  52. push last spawned entity west at speed 0.22
  53. spawn falling water at loop-value
  54. push last spawned entity upwards at speed 0.5
  55. push last spawned entity west at speed 0.25
  56. spawn falling water at loop-value
  57. push last spawned entity upwards at speed 0.5
  58. push last spawned entity north at speed 0.22
  59. push last spawned entity west at speed 0.22
  60. #---------------------------------------#
  61. # Automatyka fontanny #
  62. #---------------------------------------#
  63. every 0.2 second:
  64. {fontanny.wlaczone} is true:
  65. execute server command "/fontannadolna"
  66. every 0.3 second:
  67. {fontanny.wlaczone} is true:
  68. execute server command "/fontannagorna"
  69.  
  70.  
  71. command /fontanna [<text>] [<text>]:
  72. permission: fontanna.admin
  73. permission message: Nie mozesz tego zrobic!
  74. trigger:
  75. #---------------------------------------#
  76. # Dodawanie fontanny #
  77. #---------------------------------------#
  78. arg 1 is "daj":
  79. arg 2 is "dolny":
  80. give player 1 sponge named "&2Dodaj dolny"
  81. send "&2Dostales gabke do dodania dolnego spawnu fontanny"
  82. else if arg 2 is "gorny":
  83. give player 1 sponge named "&2Dodaj gorny"
  84. send "&2Dostales gabke do dodania gornego spawnu fontanny"
  85. else:
  86. send "Musisz wpisac dolny lub gorny!"
  87. #---------------------------------------#
  88. # Usuwanie fontanny #
  89. #---------------------------------------#
  90. arg 1 is "usun":
  91. arg 2 is "dolny":
  92. give player 1 sponge named "&2Usun dolny"
  93. send "&2Dostales gabke do usuniecia dolnego spawnu fontanny"
  94. else if arg 2 is "gorny":
  95. give player 1 sponge named "&2Usun gorny"
  96. send "&2Dostales gabke do usuniecia gornego spawnu fontanny"
  97. else:
  98. send "Musisz wpisac dolny lub gorny!"
  99. #---------------------------------------#
  100. # wylaczanie i wlaczanie fontanny #
  101. #---------------------------------------#
  102. arg 1 is "przelacz":
  103. {fontanny.wlaczone} is true:
  104. set {fontanny.wlaczone} to false
  105. send "&2Wylaczyles fontanny"
  106. else:
  107. set {fontanny.wlaczone} to true
  108. send "&2Wlaczyles fontanny"
  109. arg 1 is "czysc":
  110. arg 2 is "wszystko":
  111. clear {dolne.fontanna::*}
  112. clear {gorne.fontanna::*}
  113. send "&2Usunales wszystkie fontanny"
  114. arg 1 is "autor":
  115. send "&6-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-"
  116. send "&6Autorem skrryptu jest &cherhor67"
  117. send "&cskrypty.herhor67.tk&6, &cskript.pl"
  118. send "&6-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-"
  119. arg 1 is not set:
  120. send "&6-=-=-=-=-={ &2GREAT &CFOUNTAIN &6}=-=-=-=-=-"
  121. send "&c/fontanna daj dolny &6- daje blok do dodania dolnego spawnu fontanny"
  122. send "&c/fontanna usun dolny &6- daje blok do usuniecia dolnego spawnu fontanny"
  123. send "&c/fontanna daj gorny &6- daje blok do dodania gornego spawnu fontanny"
  124. send "&c/fontanna usun gorny &6- daje blok do usuniecia gornego spawnu fontanny"
  125. send "&c/fontanna przelacz &6- wlacza lub wylacza fontanny"
  126. send "&c/fontanna czysc wszystko &6- usuwa wszystkie fontanny"
  127. send "&c/fontanna odswiez &6- odswieza skrypt"
  128. send "&6-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-"
  129. arg 1 is "pomoc" or "help":
  130. execute player command "/fontanna"
  131. arg 1 is "odswiez":
  132. execute player command "/sk reload %script%"
  133.  
  134.  
  135. on place of sponge:
  136. name of player's tool is "&2Dodaj dolny":
  137. add location of block to {dolne.fontanna::*}
  138. send "&2Dodales dolny spawn fontanny"
  139. cancel event
  140. else if name of player's tool is "&2Dodaj gorny":
  141. add location of block to {gorne.fontanna::*}
  142. send "&2Dodales gorny spawn fontanny"
  143. cancel event
  144. name of player's tool is "&2Usun dolny":
  145. remove location of block from {dolne.fontanna::*}
  146. send "&2Usunales dolny spawn fontanny"
  147. cancel event
  148. name of player's tool is "&2Usun gorny":
  149. remove location of block from {gorne.fontanna::*}
  150. send "&2Usunales gorny spawn fontanny"
  151. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement