options: prefix : &8[<##6efa75>N<##61fa83>a<##54f990>t<##47f99d>u<##3bf8a8>r<##30f7b3>e<##28f6bd>C<##25f4c6>r<##29f3ce>a<##32f1d6>f<##3defdc>t&8] variables: {wings1Enabled::%player%} = false {wings2Enabled::%player%} = false command /wings []: trigger: if arg 1 is "enable": stopEffect "%player%" drawWings style 5, particle1 "redstone", RGB 112, 0, 153, particle2 "redstone", RGB2 112, 0, 153, particle3 "redstone", RGB3 222, 85, 230, center player, id "%player%", angle 110, height 0, space 0.2, visibleRange 30, tps 0, second 3 send "{@prefix} &aSkrzydła włączone" else if arg 1 is "disable": stopEffect "%player%" send "{@prefix} &cSkrzydła wyłączone" else: send "{@prefix} &cNiepoprawny argument!" command /dodatki: trigger: set {_dodatkiGui} to chest inventory with 6 rows named "&9Dodatki" if {wings1Enabled::%player%} is true: set slot 21 of {_dodatkiGui} to purple dye named "&bFioletowe skrzydła" with lore "&aWłączone" else: set slot 21 of {_dodatkiGui} to purple dye named "&bFioletowe skrzydła" with lore "&7Wyłączone" if {wings2Enabled::%player%} is true: set slot 23 of {_dodatkiGui} to skull of "Santa" parsed as offline player named "&bSkrzydła Mikołaja" with lore "&aWłączone" else: set slot 23 of {_dodatkiGui} to skull of "Santa" parsed as offline player named "&bSkrzydła Mikołaja" with lore "&7Wyłączone" open {_dodatkiGui} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "&9Dodatki": cancel event if clicked slot is 21: toggleWings(1, "Fioletowe skrzydła", 21, player) else if clicked slot is 23: toggleWings(2, "Skrzydła Mikołaja", 23, player) on quit: stopEffect "%player%" function toggleWings(id: integer, nazwa: text, slot: integer, gracz: player): if {wings%{_id}%Enabled::%{_gracz}%} isn't set: set {wings%{_id}%Enabled::%{_gracz}%} to false if {wings%{_id}%Enabled::%{_gracz}%} is false: set {wings%{_id}%Enabled::%{_gracz}%} to true if {_id} is 1: drawWings style 5, particle1 "redstone", RGB 112, 0, 153, particle2 "redstone", RGB2 112, 0, 153, particle3 "redstone", RGB3 222, 85, 230, center {_gracz}, id "wings%{_id}%-%{_gracz}%", angle 110, height 0, space 0.2, visibleRange 30, tps 0, second 3 set slot {_slot} of {_gracz}'s current inventory to purple dye named "&b%{_nazwa}%" with lore "&aWłączone" else if {_id} is 2: drawWings style 7, particle1 "redstone", RGB 255, 255, 255, particle2 "redstone", RGB2 255, 255, 255, particle3 "redstone", RGB3 247, 30, 59, center {_gracz}, id "wings%{_id}%-%{_gracz}%", angle 110, height 0, space 0.2, visibleRange 30, tps 0, second 3 set slot {_slot} of {_gracz}'s current inventory to skull of "Santa" parsed as offline player named "&b%{_nazwa}%" with lore "&aWłączone" else if {wings%{_id}%Enabled::%{_gracz}%} is true: set {wings%{_id}%Enabled::%{_gracz}%} to false stopEffect "wings%{_id}%-%{_gracz}%" if {_id} is 1: set slot {_slot} of {_gracz}'s current inventory to purple dye named "&b%{_nazwa}%" with lore "&7Wyłączone" else if {_id} is 2: set slot {_slot} of {_gracz}'s current inventory to skull of "Santa" parsed as offline player named "&b%{_nazwa}%" with lore "&7Wyłączone"