Skocz do zawartości
  • 0

Cześć, mam problem z kowalem, jak klikam na niego to sie nic nie otwiera ani nic sie nie dzieje postawic i usunac go moge ale nic wiecej juz nie moge zrobic! Pomocy..


Pytanie

variables:
    {procent} = "%"

command /ustawkowala [<text>]:
    permission: cashblock.kowal
    permission message: &4Blad: &cNie Posiadasz uprawnien do &8* &ecashblock.kowal &8*
    trigger:
        execute player command "npc create &e&lKowal"
        send "&2Sukces: &aPoprawnie Stworzyles kowala!"


command /usunkowala [<text>]:
    permission: cashblock.kowal
    permission message: &4Blad: &cNie Posiadasz uprawnien do &8* &ecashblock.kowal &8*
    trigger:
        execute player command "npc remove &e&lKowal"
        send "&2Sukces: &aPoprawnie Usunales Kowala!"


on right click on entity:
    if name of the clicked entity is "&e&lKowal":            
        if player's tool is blaze rod named "&cBrush 1x1":
            cancel event
            wait 3 ticks
            open chest with 5 rows named "&6&lKowal" to player
            set slot 0,1,2,3,4,5,6,7,8,9,17,18,26,27,35,36,37,38,39,40,41,42,43,44 of player's current inventory to yellow stained glass pane named "&8&lâś–"
            set player's current inventory's slot 21 to glowing hopper named "&6Ulepsz Swego Brusha!" with lore "" and "&7Kliknij &6PPM &7Aby Ulepszyc brusha!" and ""
            set player's current inventory's slot 23 to glowing paper named "&6Informacje o ulepszeniach" with lore "" and "&6Szanse:" and "  &8* &730%{procent}% - &aNa Ulepszenie brusha!" and "  &8* &760%{procent}% - &cNa Zniszczenie brusha!" and ""
        if player's tool is blaze rod named "&cBrush 2x2":
            cancel event
            wait 3 ticks
            open chest with 5 rows named "&6&lKowal" to player
            set slot 0,1,2,3,4,5,6,7,8,9,17,18,26,27,35,36,37,38,39,40,41,42,43,44 of player's current inventory to yellow stained glass pane named "&8&lâś–"            
            set player's current inventory's slot 21 to glowing hopper named "&6Ulepsz Swego Brusha!" with lore "" and "&7Kliknij &6PPM &7Aby Ulepszyc brusha!" and ""
            set player's current inventory's slot 23 to glowing paper named "&6Informacje o ulepszeniach" with lore "" and "&6Szanse:" and "  &8* &730%{procent}% - &aNa Ulepszenie brusha!" and "  &8* &760%{procent}% - &cNa Zniszczenie brusha!" and ""            
        if player's tool is blaze rod named "&cBrush 3x3":
            cancel event
            wait 3 ticks
            open chest with 5 rows named "&6&lKowal" to player
            set slot 0,1,2,3,4,5,6,7,8,9,17,18,26,27,35,36,37,38,39,40,41,42,43,44 of player's current inventory to yellow stained glass pane named "&8&lâś–"        
            set player's current inventory's slot 21 to glowing hopper named "&6Ulepsz Swego Brusha!" with lore "" and "&7Kliknij &6PPM &7Aby Ulepszyc brusha!" and ""
            set player's current inventory's slot 23 to glowing paper named "&6Informacje o ulepszeniach" with lore "" and "&6Szanse:" and "  &8* &730%{procent}% - &aNa Ulepszenie brusha!" and "  &8* &760%{procent}% - &cNa Zniszczenie brusha!" and ""
            lepszenie brusha!" and "  &8* &760%{procent}% - &cNa Zniszczenie brusha!" and ""            
        if player's tool is blaze rod named "&cBrush 4x4":
            cancel event
            wait 3 ticks
            open chest with 5 rows named "&6&lKowal" to player
            set slot 0,1,2,3,4,5,6,7,8,9,17,18,26,27,35,36,37,38,39,40,41,42,43,44 of player's current inventory to yellow stained glass pane named "&8&lâś–"        
            set player's current inventory's slot 21 to glowing hopper named "&6Ulepsz Swego Brusha!" with lore "" and "&7Kliknij &6PPM &7Aby Ulepszyc brusha!" and ""
            set player's current inventory's slot 23 to glowing paper named "&6Informacje o ulepszeniach" with lore "" and "&6Szanse:" and "  &8* &730%{procent}% - &aNa Ulepszenie brusha!" and "  &8* &760%{procent}% - &cNa Zniszczenie brusha!" and ""
            Ulepszenie brusha!" and "  &8* &760%{procent}% - &cNa Zniszczenie brusha!" and ""
            lepszenie brusha!" and "  &8* &760%{procent}% - &cNa Zniszczenie brusha!" and ""            
        if player's tool is blaze rod named "&cBrush 5x5":
            cancel event
            wait 3 ticks
            open chest with 5 rows named "&6&lKowal" to player
            set slot 0,1,2,3,4,5,6,7,8,9,17,18,26,27,35,36,37,38,39,40,41,42,43,44 of player's current inventory to yellow stained glass pane named "&8&lâś–"        
            set player's current inventory's slot 21 to glowing hopper named "&6Ulepsz Swego Brusha!" with lore "" and "&7Kliknij &6PPM &7Aby Ulepszyc brusha!" and ""
            set player's current inventory's slot 23 to glowing paper named "&6Informacje o ulepszeniach" with lore "" and "&6Szanse:" and "  &8* &730%{procent}% - &aNa Ulepszenie brusha!" and "  &8* &760%{procent}% - &cNa Zniszczenie brusha!" and ""
            
            
on inventory click:
    event-inventory is not player's inventory
    if name of event-inventory is "&6&lKowal":
        cancel event
        if clicked slot is 21:
            set {_a} to random integer from 1 to 10
            if {_a} is 1 or 2 or 3:
                if player has 1 blaze rod named "&cBrush 1x1":
                    remove 1 blaze rod named "&cBrush 1x1" from player's inventory
                    give 1 blaze rod named "&cBrush 2x2" to player
                else:
                    if player has 1 blaze rod named "&cBrush 2x2":
                        remove 1 blaze rod named "&cBrush 2x2" from player's inventory
                        give 1 blaze rod named "&cBrush 3x3" to player
                    else:
                        if player has 1 blaze rod named "&cBrush 3x3":
                            remove 1 blaze rod named "&cBrush 3x3" from player's inventory                            
                            give 1 blaze rod named "&cBrush 4x4" to player
                            else:
                    if player has 1 blaze rod named "&cBrush 4x4":
                        remove 1 blaze rod named "&cBrush 4x4" from player's inventory
                        give 1 blaze rod named "&cBrush 5x5" to player
                            else:
                            if player has 1 blaze rod named "&cBrush 5x5":
                        remove 1 blaze rod named "&cBrush 5x5" from player's inventory
                        give 1 blaze rod named "&cBrush 7x7" to player
                send "&8[&6&l!&8] &7Ulepszyles Swojego Brusha! &6Gratulujemy!" 
                close player's inventory
                send player title "&2Gratulujemy" with subtitle "&aUlepszyles Brusha!" for 3 seconds
                broadcast "&8[&6&l!&8] &7Gracz &e%player% &7ulepszyl swojego brush u kowala &e(jebany ma farta) &6Gratulujemy!"
                play sound "random.levelup" to player
                launch ball large firework colored yellow at player
            if {_a} is 4 or 5 or 6 or 7 or 8 or 9 or 10:
                if player's tool is blaze rod named "&cBrush 1x1":
                    remove 1 blaze rod named "&cBrush 1x1" from player's inventory
                if player's tool is blaze rod named "&cBrush 2x2":
                    remove 1 blaze rod named "&6Brush 2x2" from player's inventory
                if player's tool is blaze rod named "&cBrush 3x3":        
                    remove 1 blaze rod named "&6Brush 3x3" from player's inventory
                if player's tool is blaze rod named "&cBrush 4x4":        
                    remove 1 blaze rod named "&6Brush 4x4" from player's inventory                    
                send "&8[&6&l!&8] &7Niestety twoj brush zostal zniszczony!"            
                if player's tool is blaze rod named "&cBrush 5x5":        
                    remove 1 blaze rod named "&6Brush 5x5" from player's inventory                    
                send "&8[&6&l!&8] &7Niestety twoj brush zostal zniszczony!"    

0 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

Nie udzielono jeszcze odpowiedzi na to pytanie

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...