Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- tag: &c[&l&6EVENT&r&c]
- command /event start:
- trigger:
- if player has permission "event.drop":
- if {event} is 0:
- set {event} to 1
- set {drop} to 1
- send "{@tag} &aWlasnie rozpoczales event!"
- set {czas.min} to 29
- set {czas.sec} to 60
- send "{@tag} &aAdmin &c%player% &arozpoczal event!" to player
- else:
- send "{@tag} &aEvent juz trwa!" to player
- command /event stop:
- trigger:
- if player has permission "event.drop":
- if {event} is 1:
- set {event} to 0
- send "{@tag} &aWlasnie wylaczyles event!" to player
- set {czas.sec} to 0
- set {czas.min} to 0
- set {drop} to 0
- send "{@tag} &aAdmin &c%player% &awylaczyl event!" to all players
- else:
- send "{@tag} &aEvent jest juz wylaczony!" to player
- on mine of stone:
- if {drop} is 1:
- if player's gamemode is survival:
- chance of 3%:
- drop diamond
- send "{@tag} &aWydropiles: &bDiament&a!" to player
- chance of 3%:
- drop gold ore
- send "{@tag} &aWydropiles: &eRude Zlota&a!" to player
- chance of 3%
- drop iron ore
- send "{@tag} &aWydropiles: Rude Zeleza&a!" to player
- every 1 second:
- if {czas.sec} is bigger than 0:
- remove 1 from {czas.sec}
- if {czas.sec} is 0:
- remove 1 from {czas.m}
- set {czas.sec} to 60
- if {czas.min} is 0:
- if {czas.sec} is 0
- set {drop} to 0
- set {event} to 0
- send "{@tag} &aDrop Eventowy wlasnie sie skonczyl" to all players
- if {event} is 1:
- loop all players:
- display "&6Koniec Eventu za: &a%{czas.min}% &6min &a%{czas.sec}% &6sec" on bossbar with 100 percent by 10 seconds for loop-players
Advertisement
Add Comment
Please, Sign In to add comment