Advertisement
nutelshd

Untitled

May 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.05 KB | None | 0 0
  1. variables:
  2.  
  3. {beacontid.min} = 59
  4.  
  5. {beacontid.sec} = 59
  6.  
  7. {beaconigang} = false
  8.  
  9. on right click on Beacon:
  10.  
  11. cancel event
  12.  
  13. if {beacontid.min} is 0:
  14.  
  15. if {beacontid.sec} is 0:
  16.  
  17. if {beaconigang} is false:
  18.  
  19. set {_beaconloc2} to location of event-block
  20.  
  21. if location of {_beaconloc2} is location of {beaconloc}:
  22.  
  23. set {_Online} to number of all players
  24.  
  25. if {_Online} is greater or equal to 15:
  26.  
  27. set {beaconigang} to true
  28.  
  29. send "&3&lMania&f&lDrop &8» &7Du har startet &bBeacon drop"
  30.  
  31. wait 1 second
  32.  
  33. broadcast "&3&lMania&f&lDrop &8» &7Beacon drop &7starter om &35 sekunder."
  34.  
  35. wait 1 second
  36.  
  37. broadcast "&3&lMania&f&lDrop &8» &7Beacon drop &7starter om &34 sekunder."
  38.  
  39. wait 1 second
  40.  
  41. broadcast "&3&lMania&f&lDrop &8» &7Beacon drop &7starter om &33 sekunder."
  42.  
  43. wait 1 second
  44.  
  45. broadcast "&3&lMania&f&lDrop &8» &7Beacon drop &7starter om &32 sekunder."
  46.  
  47. wait 1 second
  48.  
  49. broadcast "&3&lMania&f&lDrop &8» &7Beacon drop &7starter om &31 sekund."
  50.  
  51. wait 1 second
  52.  
  53. broadcast "&3&lMania&f&lDrop &8» &7Beacon drop er nu startet, skynd dig."
  54.  
  55. launch ball large firework colored lime at event-block timed 1
  56.  
  57. launch creeper firework colored yellow at event-block timed 0.2
  58.  
  59. create a fake explosion at event-block
  60.  
  61. loop blocks in radius 1 around the event-block:
  62.  
  63. loop-block is air:
  64.  
  65. add location of loop-block to {_rloctoin::*}
  66.  
  67. loop 64 times:
  68.  
  69. wait 15 ticks
  70.  
  71. drop 1 264:0 at random location out of {_rloctoin::*}
  72.  
  73. drop 1 265:0 at random location out of {_rloctoin::*}
  74.  
  75. drop 1 263:0 at random location out of {_rloctoin::*}
  76.  
  77. drop 1 388:0 at random location out of {_rloctoin::*}
  78.  
  79.  
  80. wait 3 ticks
  81.  
  82. loop 2 times:
  83.  
  84. wait 1 ticks
  85.  
  86. loop all players in radius 5 around the event-block:
  87.  
  88. wait 5 seconds
  89.  
  90. launch ball large firework colored red at location of {beaconloc} timed 1
  91.  
  92. send "&3&lMania&f&lDrop &8» &7Så er &bBeacon dropet færdigt"
  93.  
  94. set {beacontid.min} to 59
  95.  
  96. set {beacontid.sec} to 59
  97.  
  98. set {beaconigang} to false
  99.  
  100.  
  101.  
  102. else:
  103.  
  104. set {_Mangler} to 15
  105.  
  106. set {_Spillere} to number of all players
  107.  
  108. reduce {_Mangler} by {_Spillere}
  109.  
  110. send "&3&lMania&f&lDrop &8» &7Der mangler &b%{_Mangler}% &7Spillere for &bBeacon Drop"
  111.  
  112. else:
  113.  
  114. send "&3&lMania&f&lDrop &8» &7Der er allerede et &bBeacon Drop&7 igang"
  115.  
  116.  
  117.  
  118. else:
  119.  
  120. if {beacontid.min} is greater or equal to 2:
  121.  
  122. if {beacontid.sec} is greater or equal to 2:
  123.  
  124. send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.min}%&7 Minutter og &3%{beacontid.sec}%&7 Sekunder"
  125.  
  126. else:
  127.  
  128. send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.min}%&7 Minutter og &3%{beacontid.sec}%&7 Sekund"
  129.  
  130. else:
  131.  
  132. if {beacontid.sec} is greater or equal to 2:
  133.  
  134. send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.sec}%&7 Sekunder"
  135.  
  136. else:
  137.  
  138. send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.sec}%&7 Sekund"
  139.  
  140. else:
  141.  
  142. if {beacontid.min} is greater or equal to 2:
  143.  
  144. if {beacontid.sec} is greater or equal to 2:
  145.  
  146. send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.min}%&7 Minutter og &3%{beacontid.sec}%&7 Sekunder"
  147.  
  148. else:
  149.  
  150. send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.min}%&7 Minutter og &3%{beacontid.sec}%&7 Sekund"
  151.  
  152. else:
  153.  
  154. if {beacontid.sec} is greater or equal to 2:
  155.  
  156. send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.sec}%&7 Sekunder"
  157.  
  158. else:
  159.  
  160. if {beacontid.sec} is 0:
  161.  
  162. send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.sec}%&7 Sekunder"
  163.  
  164. if {beacontid.sec} is 1:
  165.  
  166. send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.sec}%&7 Sekund"
  167.  
  168. command /beaconset:
  169.  
  170. permission: *
  171.  
  172. permission message: &cDu har ikke adgang til denne kommando
  173.  
  174. trigger:
  175.  
  176. if player is "NimbooYT":
  177.  
  178. if targeted block is a Beacon:
  179.  
  180. set {beaconloc} to target block
  181.  
  182. send "&3&lMania&f&lDrop &8» &7Beacon Sat"
  183.  
  184. else:
  185.  
  186. send "&3&lMania&f&lDrop &8» &7Kig på en beacon"
  187.  
  188.  
  189.  
  190. command /beaconreset:
  191.  
  192. permission: *
  193.  
  194. permission message: &cDu har ikke adgang til denne kommando
  195.  
  196. trigger:
  197.  
  198. if player is "NimbooYT":
  199.  
  200. set {beaconigang} to false
  201.  
  202. send "&3&lBeacon &8» &7Beaconen er resat"
  203.  
  204.  
  205.  
  206. command /beaconstart:
  207.  
  208. permission: *
  209.  
  210. permission message: &cDu har ikke adgang til denne kommando
  211.  
  212. trigger:
  213.  
  214. if player is "NimbooYT":
  215.  
  216. set {beacontid.min} to 0
  217.  
  218. set {beacontid.sec} to 0
  219.  
  220. send "&3&lMania&f&lDrop &8» &7Beaconen vil starte om lidt"
  221.  
  222.  
  223.  
  224.  
  225.  
  226. every 1 second:
  227.  
  228. if {beacontid.sec} is less or equal to 0:
  229.  
  230. if {beacontid.min} is less or equal to 0:
  231.  
  232. stop
  233.  
  234. else:
  235.  
  236. remove 1 from {beacontid.min}
  237.  
  238. set {beacontid.sec} to 59
  239.  
  240. else:
  241.  
  242. remove 1 from {beacontid.sec}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement