Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {beacontid.min} = 59
- {beacontid.sec} = 59
- {beaconigang} = false
- on right click on Beacon:
- cancel event
- if {beacontid.min} is 0:
- if {beacontid.sec} is 0:
- if {beaconigang} is false:
- set {_beaconloc2} to location of event-block
- if location of {_beaconloc2} is location of {beaconloc}:
- set {_Online} to number of all players
- if {_Online} is greater or equal to 15:
- set {beaconigang} to true
- send "&3&lMania&f&lDrop &8» &7Du har startet &bBeacon drop"
- wait 1 second
- broadcast "&3&lMania&f&lDrop &8» &7Beacon drop &7starter om &35 sekunder."
- wait 1 second
- broadcast "&3&lMania&f&lDrop &8» &7Beacon drop &7starter om &34 sekunder."
- wait 1 second
- broadcast "&3&lMania&f&lDrop &8» &7Beacon drop &7starter om &33 sekunder."
- wait 1 second
- broadcast "&3&lMania&f&lDrop &8» &7Beacon drop &7starter om &32 sekunder."
- wait 1 second
- broadcast "&3&lMania&f&lDrop &8» &7Beacon drop &7starter om &31 sekund."
- wait 1 second
- broadcast "&3&lMania&f&lDrop &8» &7Beacon drop er nu startet, skynd dig."
- launch ball large firework colored lime at event-block timed 1
- launch creeper firework colored yellow at event-block timed 0.2
- create a fake explosion at event-block
- loop blocks in radius 1 around the event-block:
- loop-block is air:
- add location of loop-block to {_rloctoin::*}
- loop 64 times:
- wait 15 ticks
- drop 1 264:0 at random location out of {_rloctoin::*}
- drop 1 265:0 at random location out of {_rloctoin::*}
- drop 1 263:0 at random location out of {_rloctoin::*}
- drop 1 388:0 at random location out of {_rloctoin::*}
- wait 3 ticks
- loop 2 times:
- wait 1 ticks
- loop all players in radius 5 around the event-block:
- wait 5 seconds
- launch ball large firework colored red at location of {beaconloc} timed 1
- send "&3&lMania&f&lDrop &8» &7Så er &bBeacon dropet færdigt"
- set {beacontid.min} to 59
- set {beacontid.sec} to 59
- set {beaconigang} to false
- else:
- set {_Mangler} to 15
- set {_Spillere} to number of all players
- reduce {_Mangler} by {_Spillere}
- send "&3&lMania&f&lDrop &8» &7Der mangler &b%{_Mangler}% &7Spillere for &bBeacon Drop"
- else:
- send "&3&lMania&f&lDrop &8» &7Der er allerede et &bBeacon Drop&7 igang"
- else:
- if {beacontid.min} is greater or equal to 2:
- if {beacontid.sec} is greater or equal to 2:
- send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.min}%&7 Minutter og &3%{beacontid.sec}%&7 Sekunder"
- else:
- send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.min}%&7 Minutter og &3%{beacontid.sec}%&7 Sekund"
- else:
- if {beacontid.sec} is greater or equal to 2:
- send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.sec}%&7 Sekunder"
- else:
- send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.sec}%&7 Sekund"
- else:
- if {beacontid.min} is greater or equal to 2:
- if {beacontid.sec} is greater or equal to 2:
- send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.min}%&7 Minutter og &3%{beacontid.sec}%&7 Sekunder"
- else:
- send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.min}%&7 Minutter og &3%{beacontid.sec}%&7 Sekund"
- else:
- if {beacontid.sec} is greater or equal to 2:
- send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.sec}%&7 Sekunder"
- else:
- if {beacontid.sec} is 0:
- send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.sec}%&7 Sekunder"
- if {beacontid.sec} is 1:
- send "&3&lMania&f&lDrop &8» &7Der er beacondrop om &3%{beacontid.sec}%&7 Sekund"
- command /beaconset:
- permission: *
- permission message: &cDu har ikke adgang til denne kommando
- trigger:
- if player is "NimbooYT":
- if targeted block is a Beacon:
- set {beaconloc} to target block
- send "&3&lMania&f&lDrop &8» &7Beacon Sat"
- else:
- send "&3&lMania&f&lDrop &8» &7Kig på en beacon"
- command /beaconreset:
- permission: *
- permission message: &cDu har ikke adgang til denne kommando
- trigger:
- if player is "NimbooYT":
- set {beaconigang} to false
- send "&3&lBeacon &8» &7Beaconen er resat"
- command /beaconstart:
- permission: *
- permission message: &cDu har ikke adgang til denne kommando
- trigger:
- if player is "NimbooYT":
- set {beacontid.min} to 0
- set {beacontid.sec} to 0
- send "&3&lMania&f&lDrop &8» &7Beaconen vil starte om lidt"
- every 1 second:
- if {beacontid.sec} is less or equal to 0:
- if {beacontid.min} is less or equal to 0:
- stop
- else:
- remove 1 from {beacontid.min}
- set {beacontid.sec} to 59
- else:
- remove 1 from {beacontid.sec}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement