FlupMC

Untitled

Jul 21st, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. on right click on beacon:
  2. set {_beaconloc2} to location of event-block
  3. if location of {_beaconloc2} is location of {beaconloc}:
  4. cancel event
  5. if {beacontid.min} is 0:
  6. if {beacontid.sec} is 0:
  7. set {_beaconloc2} to location of event-block
  8. if location of {_beaconloc2} is location of {beaconloc}:
  9. set {_Online} to number of all players
  10. if {_Online} is greater or equal to 15:
  11. stop
  12. else:
  13. set {_Mangler} to 15
  14. set {_Spillere} to number of all players
  15. reduce {_Mangler} by {_Spillere}
  16. send "&2&lBEACON &8» &aDer mangler &2%{_Mangler}% &aSpillere for &2Beacondrop"
  17.  
  18. else:
  19. set {_tid.min} to {beacontid.min}
  20. if {_tid.min} is greater or equal to 1:
  21. set {_tiden.min} to "%{beacontid.min}% minutter"
  22. else if {_tid.min} is 0:
  23. set {_tiden.min} to "%{beacontid.min}% minutter"
  24. else:
  25. set {_tiden.min} to "%{beacontid.min}% minut"
  26. set {_tid.sec} to {beacontid.sec}
  27. if {_tid.sec} is greater or equal to 2:
  28. set {_tiden.sec} to "%{beacontid.sec}% sekunder"
  29. else if {_tid.sec} is 0:
  30. set {_tiden.sec} to "%{beacontid.sec}% sekunder"
  31. else:
  32. set {_tiden.sec} to "%{beacontid.sec}% sekund"
  33. send "&2&lBEACON &8» &aDer er beacondrop om &2%{_tiden.min}%&a og &2%{_tiden.sec}%&a."
  34. else:
  35. set {_tid.min} to {beacontid.min}
  36. if {_tid.min} is greater or equal to 1:
  37. set {_tiden.min} to "%{beacontid.min}% minutter"
  38. else if {_tid.min} is 0:
  39. set {_tiden.min} to "%{beacontid.min}% minutter"
  40. else:
  41. set {_tiden.min} to "%{beacontid.min}% minut"
  42. set {_tid.sec} to {beacontid.sec}
  43. if {_tid.sec} is greater or equal to 2:
  44. set {_tiden.sec} to "%{beacontid.sec}% sekunder"
  45. else if {_tid.sec} is 0:
  46. set {_tiden.sec} to "%{beacontid.sec}% sekunder"
  47. else:
  48. set {_tiden.sec} to "%{beacontid.sec}% sekund"
  49. send "&2&lBEACON &8» &aDer er beacondrop om &2%{_tiden.min}%&a og &2%{_tiden.sec}%&a."
  50.  
  51. command /beaconstart:
  52. permission: *
  53. trigger:
  54. set {beacontid.min} to 29
  55. set {beacontid.sec} to 59
  56. broadcast "&2&lBEACON &8» &aDer er &2beacondrop&a i spawn om &25 sekunder&a."
  57. wait 1 second
  58. broadcast "&2&lBEACON &8» &aDer er &2beacondrop&a i spawn om &24 sekunder&a."
  59. wait 1 second
  60. broadcast "&2&lBEACON &8» &aDer er &2beacondrop&a i spawn om &23 sekunder&a."
  61. wait 1 second
  62. broadcast "&2&lBEACON &8» &aDer er &2beacondrop&a i spawn om &22 sekunder&a."
  63. wait 1 second
  64. broadcast "&2&lBEACON &8» &aDer er &2beacondrop&a i spawn om &21 sekund&a."
  65. wait 1 second
  66. launch ball large firework colored lime at {beaconloc} timed 1
  67. loop blocks in radius 4 around {beaconloc}:
  68. loop-block is air:
  69. add location of loop-block to {_rloctoin::*}
  70. loop 10 times:
  71. wait 30 ticks
  72. drop a emerald at random location out of {_rloctoin::*}
  73. loop 2 times:
  74. wait 30 ticks
  75. drop a nether star at random location out of {_rloctoin::*}
  76. loop 2 times:
  77. wait 30 ticks
  78. drop a iron helmet of protection 1 at random location out of {_rloctoin::*}
  79. loop 2 times:
  80. wait 30 ticks
  81. drop a iron chestplate of protection 1 at random location out of {_rloctoin::*}
  82. loop 2 times:
  83. wait 30 ticks
  84. drop a iron leggings of protection 1 at random location out of {_rloctoin::*}
  85. loop 2 times:
  86. wait 30 ticks
  87. drop a iron boots of protection 1 at random location out of {_rloctoin::*}
  88. loop 2 times:
  89. wait 30 ticks
  90. drop a iron sword of sharpness 1 at random location out of {_rloctoin::*}
  91. loop 2 times:
  92. wait 30 ticks
  93. drop a bow of power 1 at random location out of {_rloctoin::*}
  94. drop a emerald at random location out of {_rloctoin::*}
  95. launch ball large firework colored red at location of {beaconloc} timed 1
  96. wait 3 ticks
  97. send "&2&lBEACON &8» &aBeacondrop&e er nu færdigt."
  98. command /beaconset:
  99. permission: *
  100. permission message: &cDu har ikke adgang til denne kommando
  101. trigger:
  102. if targeted block is a beacon:
  103. set {beaconloc} to location of targeted block
  104. send "&2&lBEACON &8» &aDu har sat beaconen."
  105. else:
  106. send "&2&lBEACON &8» &aDu skal kigge på en beacon."
  107. every 1 second:
  108. if {beacontid.sec} is less or equal to 0:
  109. if {beacontid.min} is less or equal to 0:
  110. set {_Online} to number of all players
  111. if {_Online} is greater or equal to 25:
  112. execute console command "beaconstart"
  113. stop
  114. else:
  115. remove 1 from {beacontid.min}
  116. set {beacontid.sec} to 59
  117. else:
  118. remove 1 from {beacontid.sec}
  119. on join:
  120. if {beacontid.sec} is less or equal to 0:
  121. if {beacontid.min} is less or equal to 0:
  122. set {_Online} to number of all players
  123. if {_Online} is greater or equal to 15:
  124. execute console command "beaconstart"
  125. on quit:
  126. if {beacontid.sec} is less or equal to 0:
  127. if {beacontid.min} is less or equal to 0:
  128. set {_Online} to number of all players
  129. if {_Online} is greater or equal to 15:
  130. execute console command "beaconstart"
Advertisement
Add Comment
Please, Sign In to add comment