Skocz do zawartości

Drop z stone i z obsydianu


kanafu
 Udostępnij

Rekomendowane odpowiedzi

Spoiler
#################
# SKRYPT KANAFU #
# prosty skrypt #
#################


on mine stone:
        chance of 0.5%:        
                drop 1 diamond 
                send "&7Wypadl ci &bdiax!"
        chance of 1.0%:
                drop 1 emerald
                send "&7Wypadl ci &2emerald!"
        chance of 2.0%:
                drop 1 coal
                send "&7Wypadl ci &8wegiel!"
        chance of 3.0%:
                drop 1 gold ingot
                send "&7Wypadlo ci &6zloto!"
        chance of 4.0%:
                drop 1 iron ingot
                send "&7Wypadlo ci &fzelazo!"
        chance of 2.0%:
                drop 1 redstone
                send "&7Wypadl ci &credstone!"

on mine obsidian:
        chance of 3.0%:        
                drop 1 diamond 
                send "&7Wypadl ci &bdiax!"
        chance of 4.0%:
                drop 1 emerald
                send "&7Wypadl ci &2emerald!"
        chance of 4.0%:
                drop 1 coal
                send "&7Wypadl ci &8wegiel!"
        chance of 12.0%:
                drop 1 gold ingot
                send "&7Wypadlo ci &6zloto!"
        chance of 16.0%:
                drop 1 iron ingot
                send "&7Wypadlo ci &fzelazo!"
        chance of 4.0%:
                drop 1 redstone
                send "&7Wypadl ci &credstone!"

command /drop:
    trigger:
        open chest with 3 rows named "&e&lDrop" to player
        wait 2 ticks
        format slot 0 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 1 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 2 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 3 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 4 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 5 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 6 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 7 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 8 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 9 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 10 of player with 1 of stone named "&7Stone to close then run [make player execute command "/dropstone"]
        format slot 11 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 12 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 13 of player with 1 of red stained glass pane named " " to be unstealable      
        format slot 14 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 15 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 16 of player with 1 of obsidian named "&5Obsydian" to close then run [make player execute command "/dropobsydian"]
        format slot 17 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 18 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 19 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 20 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 21 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 22 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 23 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 24 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 25 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 26 of player with 1 of red stained glass pane named " " to be unstealable

command /dropstone:
        trigger:
                send "&7&l&m-----------------------"
                send "&bDiamend&8: &a0.5&7%%"
                send "&2Emerald&8: &a1&7%%"
                send "&7Wegiel&8: &a2&7%%"
                send "&cRedstone&8: &a2&7%%"
                send "&6Zloto&8: &a3&7%%"
                send "&fZelazo&8: &a4&7%%"
                send "&7&l&m-----------------------"

command /dropobsydian:
        trigger:
                send "&7&l&m-----------------------"
                send "&bDiamend&8: &a3&7%%"
                send "&2Emerald&8: &a4&7%%"
                send "&7Wegiel&8: &a4&7%%"
                send "&cRedstone&8: &a4&7%%"
                send "&6Zloto&8: &a12&7%%"
                send "&fZelazo&8: &a16&7%%"
                send "&7&l&m-----------------------"

 

 

Edytowane przez kanafu
dodane procenty
bludis

Wstawiam w code.

Notatka dodana przez bludis

Odnośnik do komentarza
Udostępnij na innych stronach

  • 2 tygodnie później...

Nowa wersja mojego skryptu

dodane:

-komenda /drop

Spoiler

 

#################
# SKRYPT KANAFU #
# prosty skrypt #
#################

on mine stone:
        chance of 0.5%:        
                drop 1 diamond 
                send "&7Wypadl ci &bdiax!"
        chance of 1.0%:
                drop 1 emerald
                send "&7Wypadl ci &2emerald!"
        chance of 2.0%:
                drop 1 coal
                send "&7Wypadl ci &8wegiel!"
        chance of 3.0%:
                drop 1 gold ore
                send "&7Wypadla ci ruda &6zlota!"
        chance of 4.0%:
                drop 1 iron ore
                send "&7Wypadla ci ruda &fzelaza!"
        chance of 2.0%:
                drop 1 redstone
                send "&7Wypadl ci &credstone!"

on mine obsidian:
        chance of 3.0%:        
                drop 1 diamond 
                send "&7Wypadl ci &bdiax!"
        chance of 4.0%:
                drop 1 emerald
                send "&7Wypadl ci &2emerald!"
        chance of 4.0%:
                drop 1 coal
                send "&7Wypadl ci &8wegiel!"
        chance of 12.0%:
                drop 1 gold ore
                send "&7Wypadla ci ruda &6zlota!"
        chance of 16.0%:
                drop 1 iron ore
                send "&7Wypadla ci ruda &fzelaza!"
        chance of 4.0%:
                drop 1 redstone
                send "&7Wypadl ci &credstone!"

command /drop:
    trigger:
        open chest with 3 rows named "&e&lDrop" to player
        wait 2 ticks
        format slot 0 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 1 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 2 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 3 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 4 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 5 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 6 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 7 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 8 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 9 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 10 of player with 1 of stone named "&7Stone to close then run [make player execute command "/dropstone"]
        format slot 11 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 12 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 13 of player with 1 of red stained glass pane named " " to be unstealable       
        format slot 14 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 15 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 16 of player with 1 of obsidian named "&5Obsydian" to close then run [make player execute command "/dropobsydian"]
        format slot 17 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 18 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 19 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 20 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 21 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 22 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 23 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 24 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 25 of player with 1 of red stained glass pane named " " to be unstealable
        format slot 26 of player with 1 of red stained glass pane named " " to be unstealable

command /dropstone:
        trigger:
                send "&7&l&m-----------------------"
                send "&bDiamend&8: &a0.5"
                send "&2Emerald&8: &a1"
                send "&7Wegiel&8: &a2"
                send "&cRedstone&8: &a2"
                send "&6Zloto&8: &a3"
                send "&fZelazo&8: &a4"
                send "&7&l&m-----------------------"

command /dropobsydian:
        trigger:
                send "&7&l&m-----------------------"
                send "&bDiamend&8: &a3"
                send "&2Emerald&8: &a4"
                send "&7Wegiel&8: &a4"
                send "&cRedstone&8: &a4"
                send "&6Zloto&8: &a12"
                send "&fZelazo&8: &a16"
                send "&7&l&m-----------------------"
Edytowane przez kanafu
Odnośnik do komentarza
Udostępnij na innych stronach

Nie rozumiem czemu robisz takie coś:

command /dropstone:
        trigger:

 

command /dropobsydian:
        trigger:

możesz przecież zrobić takie coś:

command /drop [<text>]:

    trigger:

        if arg 1 is not set:

            open chest...

        if arg 1 is set:

            if arg 1 is "obsydian":

                <eventy po wpisaniu /drop obsydian, kliknięciu na item w GUI>

            if arg 1 is "stone"

                <eventy po wpisaniu /drop stone, kliknięciu na item w GUI>

oczywiście można zrobić to bez "if arg 1 is set:"

Odnośnik do komentarza
Udostępnij na innych stronach

36 minut temu, G12 napisał:

Nie rozumiem czemu robisz takie coś:

command /dropstone:
        trigger:

 

command /dropobsydian:
        trigger:

możesz przecież zrobić takie coś:

command /drop [<text>]:

    trigger:

        if arg 1 is not set:

            open chest...

        if arg 1 is set:

            if arg 1 is "obsydian":

                <eventy po wpisaniu /drop obsydian, kliknięciu na item w GUI>

            if arg 1 is "stone"

                <eventy po wpisaniu /drop stone, kliknięciu na item w GUI>

oczywiście można zrobić to bez "if arg 1 is set:"

dzienki !

tylko ze mi nie dziala skrypt jak tak robie bo dopiero zaczynam wiec zostane przy tym co jest

Edytowane przez kanafu
Odnośnik do komentarza
Udostępnij na innych stronach

16 godzin temu, HotAngel2K17 napisał:

N9oo to nie widzialem. Ale i tak dropow jest 1000000 wiec po co kolejny

dział: "nauka" - wymień to, co jest źle, a co dobrze i ewentualnie rozpisz to, jak miałby napisać skrypt, wytłumacz co to są np. aliasy itp.

Odnośnik do komentarza
Udostępnij na innych stronach

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
Dodaj odpowiedź do tematu...

×   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.

 Udostępnij

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

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