on right click: if "%region at player%" contains "plot_124": if "%event-block%" contains "door": if player has gunpowder: if player has gunpowder: if player's tool is gunpowder: if {freeze.%player%} is true: send "&cJe bent al bezig" cancel event else: set {_waited} to difference between {mazebankcooldown} and now set {mazebanktimer} to "&7Maze Bank Cooldown: &c%difference between 3600 seconds and {_waited}%" replace all "minutes" with "minuten" in {mazebanktimer} replace all "and" with "en" in {mazebanktimer} replace all "seconds" with "secondes" in {mazebanktimer} if {_waited} is less than 3600 seconds: send "%{mazebanktimer}%" to player stop else: cancel event set {freeze.%player%} to true loop all players: if "%region at loop-player%" contains "plot_124": send "jemama" to loop-player set {mb.%loop-player%} to true #set {mb.%player%} to true set {mazebankcooldown} to now play sound "revangemt.bomplaats" with volume 100 and pitch 2 at player for player loop all players: #if "%region at loop-player%" contains "plot_124": #send "jemama" to loop-player #else: if loop-player has permission "minetopiasdb.politie": send "&9&lPolitie: &fIemand probeert de bank te overvallen! %location at player%" to loop-player set {_time} to 5 set {_update} to 0.1 set {_wait} to ("%{_update}% seconds" parsed as timespan) loop ({_time} / {_update}) times: send title "&c&lC4 Planten.." with subtitle "&7%{_time} - ((loop-value) * {_update})%&7s" to player with fadein 0 ticks and fadeout 0 ticks wait {_wait} play sound "revangemt.bompiep" with volume 100 and pitch 2 at player for player #spawn armor stand at {c4maze} set {c4maze} to {doormb1} set {_armorstandmaze} to last spawned armor stand add "{Invisible:1b}" to nbt of {_armorstandmaze} set helmet of {_armorstandmaze} to tnt with nbt "{mtcustom:c4_fullmodel}" clear {freeze.%player%} remove 1 gunpowder from player set {_time} to 5 set {_update} to 0.1 set {_wait} to ("%{_update}% seconds" parsed as timespan) loop ({_time} / {_update}) times: send action bar "&cC4 geplant, ren! &c%{_time} - ((loop-value) * {_update})%&cs " to player wait {_wait} clear {freeze.%player%} create a fake explosion at {doormb1} kill {_armorstandmaze} activate {doormb1} and {doormb2} set {_time} to 180 set {_update} to 30 set {_wait} to ("%{_update}% seconds" parsed as timespan) loop all players: if "%region at loop-player%" contains "plot_124": loop ({_time} / {_update}) times: send "&7Tijd: &c%{_time} - ((loop-value) * {_update})%&7s" to loop-value-5-player wait {_wait} wait 2 seconds deactivate {doormb1} and {doormb2} clear {mb.%player%} else: send "&cJe hebt een hackdevice nodig"