Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click on beacon:
- set {_beaconloc2} to location of event-block
- if location of {_beaconloc2} is location of {beaconloc}:
- cancel event
- if {beacontid.min} is 0:
- if {beacontid.sec} is 0:
- 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:
- stop
- else:
- set {_Mangler} to 15
- set {_Spillere} to number of all players
- reduce {_Mangler} by {_Spillere}
- send "&2&lBEACON &8» &aDer mangler &2%{_Mangler}% &aSpillere for &2Beacondrop"
- else:
- set {_tid.min} to {beacontid.min}
- if {_tid.min} is greater or equal to 1:
- set {_tiden.min} to "%{beacontid.min}% minutter"
- else if {_tid.min} is 0:
- set {_tiden.min} to "%{beacontid.min}% minutter"
- else:
- set {_tiden.min} to "%{beacontid.min}% minut"
- set {_tid.sec} to {beacontid.sec}
- if {_tid.sec} is greater or equal to 2:
- set {_tiden.sec} to "%{beacontid.sec}% sekunder"
- else if {_tid.sec} is 0:
- set {_tiden.sec} to "%{beacontid.sec}% sekunder"
- else:
- set {_tiden.sec} to "%{beacontid.sec}% sekund"
- send "&2&lBEACON &8» &aDer er beacondrop om &2%{_tiden.min}%&a og &2%{_tiden.sec}%&a."
- else:
- set {_tid.min} to {beacontid.min}
- if {_tid.min} is greater or equal to 1:
- set {_tiden.min} to "%{beacontid.min}% minutter"
- else if {_tid.min} is 0:
- set {_tiden.min} to "%{beacontid.min}% minutter"
- else:
- set {_tiden.min} to "%{beacontid.min}% minut"
- set {_tid.sec} to {beacontid.sec}
- if {_tid.sec} is greater or equal to 2:
- set {_tiden.sec} to "%{beacontid.sec}% sekunder"
- else if {_tid.sec} is 0:
- set {_tiden.sec} to "%{beacontid.sec}% sekunder"
- else:
- set {_tiden.sec} to "%{beacontid.sec}% sekund"
- send "&2&lBEACON &8» &aDer er beacondrop om &2%{_tiden.min}%&a og &2%{_tiden.sec}%&a."
- command /beaconstart:
- permission: *
- trigger:
- set {beacontid.min} to 29
- set {beacontid.sec} to 59
- broadcast "&2&lBEACON &8» &aDer er &2beacondrop&a i spawn om &25 sekunder&a."
- wait 1 second
- broadcast "&2&lBEACON &8» &aDer er &2beacondrop&a i spawn om &24 sekunder&a."
- wait 1 second
- broadcast "&2&lBEACON &8» &aDer er &2beacondrop&a i spawn om &23 sekunder&a."
- wait 1 second
- broadcast "&2&lBEACON &8» &aDer er &2beacondrop&a i spawn om &22 sekunder&a."
- wait 1 second
- broadcast "&2&lBEACON &8» &aDer er &2beacondrop&a i spawn om &21 sekund&a."
- wait 1 second
- launch ball large firework colored lime at {beaconloc} timed 1
- loop blocks in radius 4 around {beaconloc}:
- loop-block is air:
- add location of loop-block to {_rloctoin::*}
- loop 10 times:
- wait 30 ticks
- drop a emerald at random location out of {_rloctoin::*}
- loop 2 times:
- wait 30 ticks
- drop a nether star at random location out of {_rloctoin::*}
- loop 2 times:
- wait 30 ticks
- drop a iron helmet of protection 1 at random location out of {_rloctoin::*}
- loop 2 times:
- wait 30 ticks
- drop a iron chestplate of protection 1 at random location out of {_rloctoin::*}
- loop 2 times:
- wait 30 ticks
- drop a iron leggings of protection 1 at random location out of {_rloctoin::*}
- loop 2 times:
- wait 30 ticks
- drop a iron boots of protection 1 at random location out of {_rloctoin::*}
- loop 2 times:
- wait 30 ticks
- drop a iron sword of sharpness 1 at random location out of {_rloctoin::*}
- loop 2 times:
- wait 30 ticks
- drop a bow of power 1 at random location out of {_rloctoin::*}
- drop a emerald at random location out of {_rloctoin::*}
- launch ball large firework colored red at location of {beaconloc} timed 1
- wait 3 ticks
- send "&2&lBEACON &8» &aBeacondrop&e er nu færdigt."
- command /beaconset:
- permission: *
- permission message: &cDu har ikke adgang til denne kommando
- trigger:
- if targeted block is a beacon:
- set {beaconloc} to location of targeted block
- send "&2&lBEACON &8» &aDu har sat beaconen."
- else:
- send "&2&lBEACON &8» &aDu skal kigge på en beacon."
- every 1 second:
- if {beacontid.sec} is less or equal to 0:
- if {beacontid.min} is less or equal to 0:
- set {_Online} to number of all players
- if {_Online} is greater or equal to 25:
- execute console command "beaconstart"
- stop
- else:
- remove 1 from {beacontid.min}
- set {beacontid.sec} to 59
- else:
- remove 1 from {beacontid.sec}
- on join:
- if {beacontid.sec} is less or equal to 0:
- if {beacontid.min} is less or equal to 0:
- set {_Online} to number of all players
- if {_Online} is greater or equal to 15:
- execute console command "beaconstart"
- on quit:
- if {beacontid.sec} is less or equal to 0:
- if {beacontid.min} is less or equal to 0:
- set {_Online} to number of all players
- if {_Online} is greater or equal to 15:
- execute console command "beaconstart"
Advertisement
Add Comment
Please, Sign In to add comment