Skocz do zawartości
  • 0

Klucz do Skrzyni


KjubaxDDD
 Udostępnij

Pytanie

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Masz

Spoiler

# Skrypt na Zlecenie KjubaxDDD

on rightclick with chest:
    if player's tool is chest of unbreaking 10 named "&6> &e&lSkrzyneczka &6<":
        if player has permission "skrzyneczka.open":
            if player has 1 tripwire hook of unbreaking 10 named "&6> &e&lKlucz Do Skrzyneczki &6<":
                chance of 30%:
                    play raw sound "random.fizz" at player with pitch 1 volume 8
                    remove 1 chest of unbreaking 10 named "&6> &e&lSkrzyneczka &6<" from player
                    remove 1 tripwire hook of unbreaking 10 named "&6> &e&lKlucz Do Skrzyneczki &6<" from player
                    execute console command "give %player% iron_ingot 1"
                    send "&6>> &3&lWygrales 1 Zelaza!"
                    stop
                chance of 20%:
                    play raw sound "random.fizz" at player with pitch 1 volume 8
                    remove 1 chest of unbreaking 10 named "&6> &e&lSkrzyneczka &6<" from player
                    remove 1 tripwire hook of unbreaking 10 named "&6> &e&lKlucz Do Skrzyneczki &6<" from player
                    execute console command "give %player% gold_ingot 1"
                    send "&6>> &3&lWygrales 1 Zlota!"
                    stop
                chance of 10%:
                    play raw sound "random.fizz" at player with pitch 1 volume 8
                    remove 1 chest of unbreaking 10 named "&6> &e&lSkrzyneczka &6<" from player
                    remove 1 tripwire hook of unbreaking 10 named "&6> &e&lKlucz Do Skrzyneczki &6<" from player
                    execute console command "give %player% diamond 1"
                    send "&6>> &3&lWygrales 1 Diament!"
                    stop
                chance of 1%:
                    play raw sound "random.fizz" at player with pitch 1 volume 8
                    remove 1 chest of unbreaking 10 named "&6> &e&lSkrzyneczka &6<" from player
                    remove 1 tripwire hook of unbreaking 10 named "&6> &e&lKlucz Do Skrzyneczki &6<" from player
                    execute console command "give %player% emerald 1"
                    send "&6>> &3&lWygrales 1 Emerald!"
                    stop
            else:
                send "&6>> &4Nie Posiadasz Klucza Do Tej Skrzyni!"
                stop
        else:
            send "&6>> &4Brak Uprawnien!"
            stop

on place chest:
    if player's tool is chest of unbreaking 10 named "&6> &e&lSkrzyneczka &6<":
        cancel event
        stop

command /xcase [<text>]:
    permission: skrzyneczka.cmd
    permission message: &6>> &4Brak Uprawnien!
    trigger:
        if arg 1 is not set:
            send "&6>> &3Skrzyneczki:"
            send "&6>> &3/xcase klucz"
            send "&6>> &3/xcase skrzyneczka"
            stop
        if arg 1 is "klucz":
            send "&6>> &3Otrzymano Kluczyk!"
            add 1 tripwire hook of unbreaking 10 named "&6> &e&lKlucz Do Skrzyneczki &6<" to player
            stop
        if arg 1 is "skrzyneczka":
            send "&6>> &3Otrzymano Skrzyneczke!"
            add 1 chest of unbreaking 10 named "&6> &e&lSkrzyneczka &6<" to player
            stop

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
2 godziny temu, ErrorTV napisał:

Masz

Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! Pokaż ukrytą zawartość

# Skrypt na Zlecenie KjubaxDDD

on rightclick with chest:
    if player's tool is chest of unbreaking 10 named "&6> &e&lSkrzyneczka &6<":
        if player has permission "skrzyneczka.open":
            if player has 1 tripwire hook of unbreaking 10 named "&6> &e&lKlucz Do Skrzyneczki &6<":
                chance of 30%:
                    play raw sound "random.fizz" at player with pitch 1 volume 8
                    remove 1 chest of unbreaking 10 named "&6> &e&lSkrzyneczka &6<" from player
                    remove 1 tripwire hook of unbreaking 10 named "&6> &e&lKlucz Do Skrzyneczki &6<" from player
                    execute console command "give %player% iron_ingot 1"
                    send "&6>> &3&lWygrales 1 Zelaza!"
                    stop
                chance of 20%:
                    play raw sound "random.fizz" at player with pitch 1 volume 8
                    remove 1 chest of unbreaking 10 named "&6> &e&lSkrzyneczka &6<" from player
                    remove 1 tripwire hook of unbreaking 10 named "&6> &e&lKlucz Do Skrzyneczki &6<" from player
                    execute console command "give %player% gold_ingot 1"
                    send "&6>> &3&lWygrales 1 Zlota!"
                    stop
                chance of 10%:
                    play raw sound "random.fizz" at player with pitch 1 volume 8
                    remove 1 chest of unbreaking 10 named "&6> &e&lSkrzyneczka &6<" from player
                    remove 1 tripwire hook of unbreaking 10 named "&6> &e&lKlucz Do Skrzyneczki &6<" from player
                    execute console command "give %player% diamond 1"
                    send "&6>> &3&lWygrales 1 Diament!"
                    stop
                chance of 1%:
                    play raw sound "random.fizz" at player with pitch 1 volume 8
                    remove 1 chest of unbreaking 10 named "&6> &e&lSkrzyneczka &6<" from player
                    remove 1 tripwire hook of unbreaking 10 named "&6> &e&lKlucz Do Skrzyneczki &6<" from player
                    execute console command "give %player% emerald 1"
                    send "&6>> &3&lWygrales 1 Emerald!"
                    stop
            else:
                send "&6>> &4Nie Posiadasz Klucza Do Tej Skrzyni!"
                stop
        else:
            send "&6>> &4Brak Uprawnien!"
            stop

on place chest:
    if player's tool is chest of unbreaking 10 named "&6> &e&lSkrzyneczka &6<":
        cancel event
        stop

command /xcase [<text>]:
    permission: skrzyneczka.cmd
    permission message: &6>> &4Brak Uprawnien!
    trigger:
        if arg 1 is not set:
            send "&6>> &3Skrzyneczki:"
            send "&6>> &3/xcase klucz"
            send "&6>> &3/xcase skrzyneczka"
            stop
        if arg 1 is "klucz":
            send "&6>> &3Otrzymano Kluczyk!"
            add 1 tripwire hook of unbreaking 10 named "&6> &e&lKlucz Do Skrzyneczki &6<" to player
            stop
        if arg 1 is "skrzyneczka":
            send "&6>> &3Otrzymano Skrzyneczke!"
            add 1 chest of unbreaking 10 named "&6> &e&lSkrzyneczka &6<" to player
            stop

 

Wielkie dzieki :D


ZAMYKAM

//Łącze ~bvcz

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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