Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /kit [<text>]:
- aliases: /zestawy, /ekit.
- trigger:
- if player has permission "KOX":
- set {_KOX} to 1
- if player has permission "SKOX":
- set {_SKOX} to 1
- open chest with 3 rows named "&6&lZESTAWY" to player
- wait 2 ticks
- if inventory name of current inventory of player is "&6&lZESTAWY":
- set slot 11 of player's current inventory to leather chestplate named "&8» &fZESTAW: &8&lGRACZ" with lore "|| &8» &7Dostepny co: &c15 godzin || &8» &7Status: &2Dostepny || &8» &7Dostepny za: &9Wczytywanie... || &8» &a&lKliknij LPM, aby wziac zestaw. || &8» &a&lKliknij PPM, aby zobaczyc zestaw."
- set slot 12 of player's current inventory to golden chestplate named "&8» &fZESTAW: &e&lKOX" with lore "|| &8» &7Dostepny co: &c1 dzien || &8» &7Status: &9Wczytywanie... || &8» &7Dostepny za: &9Wczytywanie... || &8» &a&lKliknij LPM, aby wziac zestaw. || &8» &a&lKliknij PPM, aby zobaczyc zestaw."
- set slot 13 of player's current inventory to diamond chestplate named "&8» &fZESTAW: &6&lSKOX" with lore "|| &8» &7Dostepny co: &c1 dzien || &8» &7Status: &9Wczytywanie... || &8» &7Dostepny za: &9Wczytywanie... || &8» &a&lKliknij LPM, aby wziac zestaw. || &8» &a&lKliknij PPM, aby zobaczyc zestaw."
- set slot 14 of player's current inventory to tnt named "&8» &fZESTAW: &4&lTNT" with lore "|| &8» &7Dostepny co: &c4 dni|| &8» &7Status: &9Wczytywanie... || &8» &7Dostepny za: &9Wczytywanie... || &8» &a&lKliknij LPM, aby wziac zestaw. || &8» &a&lKliknij PPM, aby zobaczyc zestaw."
- set slot 15 of player's current inventory to ender chest named "&8» &fZESTAW: &5&lENDERCHEST" with lore "|| &8» &7Dostepny co: &c14 dni || &8» &7Status: &2Dostepny || &8» &7Dostepny za: &9Wczytywanie... || &8» &a&lKliknij LPM, aby wziac zestaw. || &8» &a&lKliknij PPM, aby zobaczyc zestaw."
- set {_SLOT} to 0
- loop 27 times:
- if slot {_SLOT} of player's current inventory is air:
- set slot {_SLOT} of player's current inventory to black glass named " " with lore "||&8» &7Tu nic nie ma.||&8» &7Wybierz inna pozycje."
- add 1 to {_SLOT}
- if player doesn't have permission "*":
- if {ZESTAWY::%player%::GRACZ} is less than now:
- set line 4 of lore of slot 11 of player's current inventory to " &8» &7Dostepny za: &2Mozesz odebrac ten zestaw."
- else:
- set {_CZAS} to "%difference between {ZESTAWY::%player%::GRACZ} and now%"
- replace "hours" with "godzin" in {_CZAS}
- replace "and" with "i" in {_CZAS}
- replace "minutes" with "minut" in {_CZAS}
- set line 4 of lore of slot 11 of player's current inventory to " &8» &7Dostepny za: &e%{_CZAS}%"
- if {ZESTAWY::%player%::KOX} is less than now:
- set line 4 of lore of slot 12 of player's current inventory to " &8» &7Dostepny za: &2Mozesz odebrac ten zestaw."
- else:
- set {_CZAS} to "%difference between {ZESTAWY::%player%::KOX} and now%"
- replace "hours" with "godzin" in {_CZAS}
- replace "and" with "i" in {_CZAS}
- replace "minutes" with "minut" in {_CZAS}
- set line 4 of lore of slot 12 of player's current inventory to " &8» &7Dostepny za: &e%{_CZAS}%"
- if {ZESTAWY::%player%::SKOX} is less than now:
- set line 4 of lore of slot 13 of player's current inventory to " &8» &7Dostepny za: &2Mozesz odebrac ten zestaw."
- else:
- set {_CZAS} to "%difference between {ZESTAWY::%player%::SKOX} and now%"
- replace "hours" with "godzin" in {_CZAS}
- replace "and" with "i" in {_CZAS}
- replace "minutes" with "minut" in {_CZAS}
- set line 4 of lore of slot 13 of player's current inventory to " &8» &7Dostepny za: &e%{_CZAS}%"
- if {ZESTAWY::%player%::TNT} is less than now:
- set line 4 of lore of slot 14 of player's current inventory to " &8» &7Dostepny za: &2Mozesz odebrac ten zestaw."
- else:
- set {_CZAS} to "%difference between {ZESTAWY::%player%::TNT} and now%"
- replace "days" with "dni" in {_CZAS}
- replace "hours" with "godzin" in {_CZAS}
- replace "and" with "i" in {_CZAS}
- replace "minutes" with "minut" in {_CZAS}
- set line 4 of lore of slot 14 of player's current inventory to " &8» &7Dostepny za: &e%{_CZAS}%"
- if {ZESTAWY::%player%::ENDERCHEST} is less than now:
- set line 4 of lore of slot 15 of player's current inventory to " &8» &7Dostepny za: &2Mozesz odebrac ten zestaw."
- else:
- set {_CZAS} to "%difference between {ZESTAWY::%player%::ENDERCHEST} and now%"
- replace "hours" with "godzin" in {_CZAS}
- replace "days" with "dni" in {_CZAS}
- replace "day" with "dzien" in {_CZAS}
- replace "and" with "i" in {_CZAS}
- replace "minutes" with "minut" in {_CZAS}
- set line 4 of lore of slot 15 of player's current inventory to " &8» &7Dostepny za: &e%{_CZAS}%"
- else:
- set line 4 of lore of slot 11 of player's current inventory to " &8» &7Dostepny za: &2Mozesz odebrac ten zestaw."
- set line 4 of lore of slot 12 of player's current inventory to " &8» &7Dostepny za: &2Mozesz odebrac ten zestaw."
- set line 4 of lore of slot 13 of player's current inventory to " &8» &7Dostepny za: &2Mozesz odebrac ten zestaw."
- set line 4 of lore of slot 14 of player's current inventory to " &8» &7Dostepny za: &2Mozesz odebrac ten zestaw."
- set line 4 of lore of slot 15 of player's current inventory to " &8» &7Dostepny za: &2Mozesz odebrac ten zestaw."
- if {_KOX} is set:
- set line 3 of lore of slot 12 of player's current inventory to " &8» &7Status: &2Dostepny"
- else:
- set line 3 of lore of slot 12 of player's current inventory to " &8» &7Status: &4Niedostepny"
- if {_SKOX} is set:
- set line 3 of lore of slot 13 of player's current inventory to " &8» &7Status: &2Dostepny"
- set line 3 of lore of slot 14 of player's current inventory to " &8» &7Status: &2Dostepny"
- else:
- set line 3 of lore of slot 13 of player's current inventory to " &8» &7Status: &4Niedostepny"
- set line 3 of lore of slot 14 of player's current inventory to " &8» &7Status: &4Niedostepny"
- on join:
- if {ZESTAWY::%player%::GRACZ} is not set:
- set {ZESTAWY::%player%::GRACZ} to now
- if {ZESTAWY::%player%::KOX} is not set:
- set {ZESTAWY::%player%::KOX} to now
- if {ZESTAWY::%player%::SKOX} is not set:
- set {ZESTAWY::%player%::SKOX} to now
- if {ZESTAWY::%player%::TNT} is not set:
- set {ZESTAWY::%player%::TNT} to now
- if {ZESTAWY::%player%::ENDERCHEST} is not set:
- set {ZESTAWY::%player%::ENDERCHEST} to now
- on inventory click:
- if inventory name of current inventory of player is "&1&lPRZEGLAD ZESTAWU":
- cancel event
- if clicked slot is 17:
- close the player's inventory
- execute player command "kit"
- stop
- if inventory name of current inventory of player is "&6&lZESTAWY":
- cancel event
- if "%event-click action%" contain "with shift":
- close the player's inventory
- send "&6&lZESTAWY&r &8» &cTen typ kliknięcia nie jest dozwolony. Klikaj w przedmioty bez użycia klawisza 'shift'."
- stop
- if event-click action is double click using mouse:
- stop
- if clicked slot is 12 or 13 or 14:
- if event-click action is left mouse button:
- if clicked slot is 12:
- if player doesn't have permission "KOX":
- send "&6&lZESTAWY&r &8» &cNie masz uprawnien do uzycia tego zestawu."
- stop
- if clicked slot is 13 or 14:
- if player doesn't have permission "SKOX":
- send "&6&lZESTAWY&r &8» &cNie masz uprawnien do uzycia tego zestawu."
- stop
- if clicked slot is 11:
- if event-click action is left mouse button:
- if player doesn't have permission "*":
- if {ZESTAWY::%player%::GRACZ} is less than now:
- set {ZESTAWY::%player%::GRACZ} to now
- add 15 hours to {ZESTAWY::%player%::GRACZ}
- else:
- set {_CZAS} to "%difference between {ZESTAWY::%player%::GRACZ} and now%"
- replace "hours" with "godzin" in {_CZAS}
- replace "and" with "i" in {_CZAS}
- replace "minutes" with "minut" in {_CZAS}
- send "&6&lZESTAWY&r &8» &cZestaw dostepny za &e%{_CZAS}%"
- stop
- close the player's inventory
- wait tick
- open chest with 2 rows named "&1&lODBIERZ ZESTAW" to player
- wait 2 ticks
- if inventory name of current inventory of player is "&1&lODBIERZ ZESTAW":
- send "&6&lZESTAWY&r &8» &7Przyznano zestaw: &bGracz&7."
- else:
- stop
- if event-click action is right mouse button:
- close the player's inventory
- wait tick
- open chest with 2 rows named "&1&lPRZEGLAD ZESTAWU" to player
- wait 2 ticks
- if inventory name of current inventory of player is "&1&lPRZEGLAD ZESTAWU":
- send "&6&lZESTAWY&r &8» &7Przegladasz zestaw: &bGracz&7."
- else:
- stop
- set slot 0 of player's current inventory to stone pickaxe of efficiency 2, unbreaking 2 named "&6» &eEkwipunek Gracz &6«"
- set slot 1 of player's current inventory to stone axe of efficiency 2, unbreaking 2 named "&6» &eEkwipunek Gracz &6«"
- set slot 2 of player's current inventory to 3 boat named "&6» &eLódka &6«"
- set slot 2 of player's current inventory to 32 oak_wooden_plank named "&6» &eDrewno &6«"
- set slot 3 of player's current inventory to 64 of cooked porkchop named "&6» &eJedzonko &6«"
- if clicked slot is 12:
- if event-click action is left mouse button:
- if player doesn't have permission "*":
- if {ZESTAWY::%player%::KOX} is less than now:
- set {ZESTAWY::%player%::KOX} to now
- add 1 day to {ZESTAWY::%player%::KOX}
- else:
- set {_CZAS} to "%difference between {ZESTAWY::%player%::KOX} and now%"
- replace "hours" with "godzin" in {_CZAS}
- replace "and" with "i" in {_CZAS}
- replace "minutes" with "minut" in {_CZAS}
- send "&6&lZESTAWY &r&8» &cZestaw dostepny za &e%{_CZAS}%"
- stop
- close the player's inventory
- wait tick
- open chest with 2 rows named "&1&lODBIERZ ZESTAW" to player
- wait 2 ticks
- if inventory name of current inventory of player is "&1&lODBIERZ ZESTAW":
- send "&6&lZESTAWY&r &8» &7Przyznano zestaw: &bKOX&7."
- else:
- stop
- if event-click action is right mouse button:
- close the player's inventory
- wait tick
- open chest with 2 rows named "&1&lPRZEGLAD ZESTAWU" to player
- wait 2 ticks
- if inventory name of current inventory of player is "&1&lPRZEGLAD ZESTAWU":
- send "&6&lZESTAWY&r &8» &7Przegladasz zestaw: &bKOX&7."
- else:
- stop
- set slot 0 of player's current inventory to diamond sword of sharpness 2 and fire aspect 2 named "&e» &fZESTAW: &6KOX &e«"
- set slot 1 of player's current inventory to iron sword of knockback 1 named "&e» &fZESTAW: &6KOX &e«"
- set slot 2 of player's current inventory to diamond pickaxe of efficiency 3 and fortune 3 named "&e» &fZESTAW: &6KOX &e«"
- set slot 3 of player's current inventory to 10 of golden apple:1 named "&6» &eGolden Apple &6«"
- set slot 4 of player's current inventory to 15 of golden apple named "&6» &eGolden Apple &6«"
- set slot 5 of player's current inventory to diamond helmet of protection 3 and unbreaking 2 named "&e» &fZESTAW: &6KOX &e«"
- set slot 6 of player's current inventory to diamond chestplate of protection 3 and unbreaking 2 named "&e» &fZESTAW: &6KOX &e«"
- set slot 7 of player's current inventory to diamond leggings of protection 3 and unbreaking 2 named "&e» &fZESTAW: &6KOX &e«"
- set slot 8 of player's current inventory to diamond boots of protection 3 and unbreaking 2 named "&e» &fZESTAW: &6KOX &e«"
- set slot 9 of player's current inventory to 8 of ender pearl named "&6» &eEnderPerla &6«"
- set slot 10 of player's current inventory to 3 of ender chest named "&6» &eEnderchest &6«"
- if clicked slot is 13:
- if event-click action is left mouse button:
- if player doesn't have permission "*":
- if {ZESTAWY::%player%::SKOX} is less than now:
- set {ZESTAWY::%player%::SKOX} to now
- add 1 day to {ZESTAWY::%player%::SKOX}
- else:
- set {_CZAS} to "%difference between {ZESTAWY::%player%::SKOX} and now%"
- replace "hours" with "godzin" in {_CZAS}
- replace "and" with "i" in {_CZAS}
- replace "minutes" with "minut" in {_CZAS}
- send "&6&lZESTAWY&r &8» &cZestaw dostepny za &e%{_CZAS}%"
- stop
- close the player's inventory
- wait tick
- open chest with 2 rows named "&1&lODBIERZ ZESTAW" to player
- wait 2 ticks
- if inventory name of current inventory of player is "&1&lODBIERZ ZESTAW":
- send "&6&lZESTAWY&r &8» &7Przyznano zestaw: &bSKOX&7."
- else:
- stop
- if event-click action is right mouse button:
- close the player's inventory
- wait tick
- open chest with 2 rows named "&1&lPRZEGLAD ZESTAWU" to player
- wait 2 ticks
- if inventory name of current inventory of player is "&1&lPRZEGLAD ZESTAWU":
- send "&6&lZESTAWY&r &8» &7Przegladasz zestaw: &bSKOX&7."
- else:
- stop
- set slot 0 of player's current inventory to diamond sword of sharpness 3 and unbreaking 3 and fire aspect 2 named "&e» &fZESTAW: &6SKOX &e«"
- set slot 1 of player's current inventory to iron sword of knockback 2 named "&e» &fZESTAW: &6SKOX &e«"
- set slot 2 of player's current inventory to diamond pickaxe of efficiency 4 and unbreaking 3 and fortune 3 named "&e» &fZESTAW: &6SKOX &e«"
- set slot 3 of player's current inventory to 10 of golden apple:1 named "&6» &eGolden Apple &6«"
- set slot 4 of player's current inventory to 15 of golden apple named "&6» &eGolden Apple &6«"
- set slot 5 of player's current inventory to diamond helmet of protection 4 and unbreaking 3 named "&e» &fZESTAW: &6SKOX &e«"
- set slot 6 of player's current inventory to diamond chestplate of protection 4 and unbreaking 3 named "&e» &fZESTAW: &6SKOX &e«"
- set slot 7 of player's current inventory to diamond leggings of protection 4 and unbreaking 3 named "&e» &fZESTAW: &6SKOX &e«"
- set slot 8 of player's current inventory to diamond boots of protection 4 and unbreaking 3 named "&e» &fZESTAW: &6SKOX &e«"
- set slot 9 of player's current inventory to 8 of ender pearl named "&6» &eEnderPerla &6«"
- set slot 10 of player's current inventory to spawner_egg:50 named "&e» &fSpawn: &aCreeper &e«"
- set slot 11 of player's current inventory to 5 of ender chest named "&6» &eEnderchest &6«"
- if clicked slot is 14:
- if event-click action is left mouse button:
- if player doesn't have permission "*":
- if {ZESTAWY::%player%::TNT} is less than now:
- set {ZESTAWY::%player%::TNT} to now
- add 4 day to {ZESTAWY::%player%::TNT}
- else:
- set {_CZAS} to "%difference between {ZESTAWY::%player%::TNT} and now%"
- replace "days" with "dni" in {_CZAS}
- replace "day" with "dzien" in {_CZAS}
- replace "hours" with "godzin" in {_CZAS}
- replace "and" with "i" in {_CZAS}
- replace "minutes" with "minut" in {_CZAS}
- send "&6&lZESTAWY&r &8» &cZestaw dostepny za &e%{_CZAS}%"
- stop
- close the player's inventory
- wait tick
- open chest with 2 rows named "&1&lODBIERZ ZESTAW" to player
- wait 2 ticks
- if inventory name of current inventory of player is "&1&lODBIERZ ZESTAW":
- send "&6&lZESTAWY&r &8» &7Przyznano zestaw: &bTNT&7."
- else:
- stop
- if event-click action is right mouse button:
- close the player's inventory
- wait tick
- open chest with 2 rows named "&1&lPRZEGLAD ZESTAWU" to player
- wait 2 ticks
- if inventory name of current inventory of player is "&1&lPRZEGLAD ZESTAWU":
- send "&6&lZESTAWY&r &8» &7Przegladasz zestaw: &bTNT&7."
- else:
- stop
- set slot 0 of player's current inventory to 64 of tnt named "&e» &4&lTNT &e«"
- set slot 1 of player's current inventory to 64 of tnt named "&e» &4&lTNT &e«"
- if clicked slot is 15:
- if event-click action is left mouse button:
- if player doesn't have permission "*":
- if {ZESTAWY::%player%::ENDERCHEST} is less than now:
- set {ZESTAWY::%player%::ENDERCHEST} to now
- add 14 days to {ZESTAWY::%player%::ENDERCHEST}
- else:
- set {_CZAS} to "%difference between {ZESTAWY::%player%::ENDERCHEST} and now%"
- replace "days" with "dni" in {_CZAS}
- replace "day" with "dzien" in {_CZAS}
- replace "hours" with "godzin" in {_CZAS}
- replace "and" with "i" in {_CZAS}
- replace "minutes" with "minut" in {_CZAS}
- send "&6&lZESTAWY&r &8» &cZestaw dostepny za &e%{_CZAS}%"
- stop
- close the player's inventory
- wait tick
- open chest with 2 rows named "&1&lODBIERZ ZESTAW" to player
- wait 2 ticks
- if inventory name of current inventory of player is "&1&lODBIERZ ZESTAW":
- send "&6&lZESTAWY&r &8» &7Przyznano zestaw: &bENDERCHEST&7."
- else:
- stop
- if event-click action is right mouse button:
- close the player's inventory
- wait tick
- open chest with 2 rows named "&1&lPRZEGLAD ZESTAWU" to player
- wait 2 ticks
- if inventory name of current inventory of player is "&1&lPRZEGLAD ZESTAWU":
- send "&6&lZESTAWY&r &8» &7Przegladasz zestaw: &bENDERCHEST&7."
- else:
- stop
- set slot 0 of player's current inventory to 8 of ender chest named "&6» &eEnderchest &6«"
- if clicked slot is 11 or 12 or 13 or 14 or 15:
- if inventory name of current inventory of player is "&1&lPRZEGLAD ZESTAWU":
- set slot 17 of player's current inventory to 1 of red wool named "&c&lPowrot" with lore "||&8» &7Kliknij tutaj aby powrocic||&8» &7do menu wyboru zestawow."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement