# NAJNOWSZE RINGO!!! # on quit: stopEffect "%player%" set {ringo.rainbow::%player%} to false set {ringo.black::%player%} to false set {ringo.gray::%player%} to false on script load: loop all players: stopEffect "%loop-player%" set {ringo.rainbow::%loop-player%} to false set {ringo.black::%loop-player%} to false set {ringo.gray::%loop-player%} to false command /ringo []: trigger: if player has permissions "ringo.cmd": close player's inventory open chest with 3 rows named "&c&lRINGO" to player loop 3*9 times: set player's current inventory's slot loop-number -1 to stained glass pane:15 named " " set {_} to "wool:%random integer between 0 and 15%" parsed as item if {ringo.rainbow::%player%} is true: set player's current inventory's slot 13 to {_} named "&8» &fRingo: &1&lR&2&lA&3&lI&4&lN&5&lB&6&lO&7&lW" with lore "&8» &fStatus: &a&lON" if {ringo.rainbow::%player%} is false: set player's current inventory's slot 13 to {_} named "&8» &fRingo: &1&lR&2&lA&3&lI&4&lN&5&lB&6&lO&7&lW" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!" if {ringo.black::%player%} is true: set player's current inventory's slot 12 to wool:15 named "&8» &fRingo: &8&lBLACK" with lore "&8» &fStatus: &a&lON" if {ringo.black::%player%} is false: set player's current inventory's slot 12 to wool:15 named "&8» &fRingo: &8&lBLACK" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!" if {ringo.gray::%player%} is true: set player's current inventory's slot 14 to gray wool named "&8» &fRingo: &7&lGRAY" with lore "&8» &fStatus: &a&lON" if {ringo.gray::%player%} is false: set player's current inventory's slot 14 to gray wool named "&8» &fRingo: &7&lGRAY" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!" else: send "&8&l» &cNie masz uprawnien do tej komendy! &8( &fringo.cmd &8)" stop every 1 second: loop all players: if "%inventory name of loop-player's current inventory%" is "&c&lRINGO": loop 3*9 times: set loop-player's current inventory's slot loop-number -1 to stained glass pane:15 named " " set {_} to "wool:%random integer between 0 and 15%" parsed as item if {ringo.rainbow::%loop-player%} is true: set loop-player's current inventory's slot 13 to {_} named "&8» &fRingo: &1&lR&2&lA&3&lI&4&lN&5&lB&6&lO&7&lW" with lore "&8» &fStatus: &a&lON" if {ringo.rainbow::%loop-player%} is false: set loop-player's current inventory's slot 13 to {_} named "&8» &fRingo: &1&lR&2&lA&3&lI&4&lN&5&lB&6&lO&7&lW" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!" if {ringo.black::%loop-player%} is true: set loop-player's current inventory's slot 12 to wool:15 named "&8» &fRingo: &8&lBLACK" with lore "&8» &fStatus: &a&lON" if {ringo.black::%loop-player%} is false: set loop-player's current inventory's slot 12 to wool:15 named "&8» &fRingo: &8&lBLACK" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!" if {ringo.gray::%loop-player%} is true: set loop-player's current inventory's slot 14 to gray wool named "&8» &fRingo: &7&lGRAY" with lore "&8» &fStatus: &a&lON" if {ringo.gray::%loop-player%} is false: set loop-player's current inventory's slot 14 to gray wool named "&8» &fRingo: &7&lGRAY" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!" on inventory click: if "%inventory name of player's current inventory%" is "&c&lRINGO": cancel event if "%clicked slot%" is "12": if {ringo.black::%player%} is false: set {ringo.rainbow::%player%} to false set {ringo.black::%player%} to true set {ringo.gray::%player%} to false stopEffect "%player%" drawWarpRings style 1, particle "redstone", RGB 0, 0, 0, center player, id "%player%", rainbowMode false, scan false, height 0, radius 1.7, ringCount 40, ringDensity 20, visibleRange 32 set {_} to "wool:%random integer between 0 and 15%" parsed as item if {ringo.rainbow::%player%} is true: set player's current inventory's slot 13 to {_} named "&8» &fRingo: &1&lR&2&lA&3&lI&4&lN&5&lB&6&lO&7&lW" with lore "&8» &fStatus: &a&lON" if {ringo.rainbow::%player%} is false: set player's current inventory's slot 13 to {_} named "&8» &fRingo: &1&lR&2&lA&3&lI&4&lN&5&lB&6&lO&7&lW" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!" if {ringo.black::%player%} is true: set player's current inventory's slot 12 to wool:15 named "&8» &fRingo: &8&lBLACK" with lore "&8» &fStatus: &a&lON" if {ringo.black::%player%} is false: set player's current inventory's slot 12 to wool:15 named "&8» &fRingo: &8&lBLACK" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!" if {ringo.gray::%player%} is true: set player's current inventory's slot 14 to gray wool named "&8» &fRingo: &7&lGRAY" with lore "&8» &fStatus: &a&lON" if {ringo.gray::%player%} is false: set player's current inventory's slot 14 to gray wool named "&8» &fRingo: &7&lGRAY" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!" if "%clicked slot%" is "13": if {ringo.rainbow::%player%} is false: set {ringo.rainbow::%player%} to true set {ringo.black::%player%} to false set {ringo.gray::%player%} to false stopEffect "%player%" drawWarpRings style 1, particle "redstone", RGB 0, 0, 0, center player, id "%player%", rainbowMode true, scan false, height 0, radius 1.7, ringCount 40, ringDensity 20, visibleRange 32 set {_} to "wool:%random integer between 0 and 15%" parsed as item if {ringo.rainbow::%player%} is true: set player's current inventory's slot 13 to {_} named "&8» &fRingo: &1&lR&2&lA&3&lI&4&lN&5&lB&6&lO&7&lW" with lore "&8» &fStatus: &a&lON" if {ringo.rainbow::%player%} is false: set player's current inventory's slot 13 to {_} named "&8» &fRingo: &1&lR&2&lA&3&lI&4&lN&5&lB&6&lO&7&lW" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!" if {ringo.black::%player%} is true: set player's current inventory's slot 12 to wool:15 named "&8» &fRingo: &8&lBLACK" with lore "&8» &fStatus: &a&lON" if {ringo.black::%player%} is false: set player's current inventory's slot 12 to wool:15 named "&8» &fRingo: &8&lBLACK" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!" if {ringo.gray::%player%} is true: set player's current inventory's slot 14 to gray wool named "&8» &fRingo: &7&lGRAY" with lore "&8» &fStatus: &a&lON" if {ringo.gray::%player%} is false: set player's current inventory's slot 14 to gray wool named "&8» &fRingo: &7&lGRAY" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!" if "%clicked slot%" is "14": if {ringo.gray::%player%} is false: set {ringo.rainbow::%player%} to false set {ringo.black::%player%} to false set {ringo.gray::%player%} to true stopEffect "%player%" drawWarpRings style 1, particle "redstone", RGB 70, 80, 70, center player, id "%player%", rainbowMode false, scan false, height 0, radius 1.7, ringCount 80, ringDensity 20, visibleRange 32 set {_} to "wool:%random integer between 0 and 15%" parsed as item if {ringo.rainbow::%player%} is true: set player's current inventory's slot 13 to {_} named "&8» &fRingo: &1&lR&2&lA&3&lI&4&lN&5&lB&6&lO&7&lW" with lore "&8» &fStatus: &a&lON" if {ringo.rainbow::%player%} is false: set player's current inventory's slot 13 to {_} named "&8» &fRingo: &1&lR&2&lA&3&lI&4&lN&5&lB&6&lO&7&lW" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!" if {ringo.black::%player%} is true: set player's current inventory's slot 12 to wool:15 named "&8» &fRingo: &8&lBLACK" with lore "&8» &fStatus: &a&lON" if {ringo.black::%player%} is false: set player's current inventory's slot 12 to wool:15 named "&8» &fRingo: &8&lBLACK" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!" if {ringo.gray::%player%} is true: set player's current inventory's slot 14 to gray wool named "&8» &fRingo: &7&lGRAY" with lore "&8» &fStatus: &a&lON" if {ringo.gray::%player%} is false: set player's current inventory's slot 14 to gray wool named "&8» &fRingo: &7&lGRAY" with lore "&8» &fStatus: &c&lOFF||&8» &fKliknij, aby &a&lwlaczyc&f!"