Skocz do zawartości
  • 0

Generatory


Hydra1802

Pytanie

Hej próbowałem napisać generator kamienia w skripcie ale nie mam pomysłu jak go dokończyć jakby ktoś go poprawił i skończył był bym wdzięczny

options:
    Kamien: pig spawn egg named "&8&o&lGenerator Kamienia"

command /generator [<text>]:
    trigger:
        if arg-1 is "k" or "kamienia":
            give {@Kamien} to player
        if arg-1 is not set:
            send "&cPodaj Nazwe generatora !!!"
 
on right click with any spawn eggs:
    if name of spawned entity is "&8&o&lGenerator Kamienia":
        kill event-entity
        set {_loc} to location of event-entity
        set block at {_loc} to cobblestone
Nieaktywny

Poprawiam formatowanie kodu skryptu

Odnośnik do komentarza
https://skript.pl/temat/56330-generatory/
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
options:
    Kamien: end stone named "&8&o&lGenerator Kamienia"
 
command /generator [<text>]:
    trigger:
        if arg-1 is "k" or "kamienia":
            give {@Kamien} to player
        if arg-1 is not set:
            send "&cPodaj Nazwe generatora !!!"
 
on place:
    name of event-block is "&8&o&lGenerator Kamienia"
    add location of event-block to {bloki::*}
    set event-block to stone
on break:
    event-block is stone
    {bloki::*} contains location of event-block
    if player's tool is gold pickaxe:
        remove location of event-block from {bloki::*}
        stop
    wait 2 seconds
    set event-block to stone

oto chodzilo?

Odnośnik do komentarza
https://skript.pl/temat/56330-generatory/#findComment-337981
Udostępnij na innych stronach

  • 0
3 godziny temu, Fendi napisał:
options:
    Kamien: end stone named "&8&o&lGenerator Kamienia"
 
command /generator [<text>]:
    trigger:
        if arg-1 is "k" or "kamienia":
            give {@Kamien} to player
        if arg-1 is not set:
            send "&cPodaj Nazwe generatora !!!"
 
on place:
    name of event-block is "&8&o&lGenerator Kamienia"
    add location of event-block to {bloki::*}
    set event-block to stone
on break:
    event-block is stone
    {bloki::*} contains location of event-block
    if player's tool is gold pickaxe:
        remove location of event-block from {bloki::*}
        stop
    wait 2 seconds
    set event-block to stone

oto chodzilo?

dało by rade aby ten kamień respił się na tym end stownie ??

Edytowane przez Hydra1802
Odnośnik do komentarza
https://skript.pl/temat/56330-generatory/#findComment-337984
Udostępnij na innych stronach

  • 0
options:
    Kamien: end stone named "&8&o&lGenerator Kamienia"
 
command /generator [<text>]:
    trigger:
        if arg-1 is "k" or "kamienia":
            give {@Kamien} to player
        if arg-1 is not set:
            send "&cPodaj Nazwe generatora !!!"
 
on place:
    name of event-block is "&8&o&lGenerator Kamienia"
    add location of block 1 blocks above location of event-block to {bloki::*}
    set location of block 1 blocks above location of event-block to stone
on break:
    if event-block is stone:
        {bloki::*} contains location of event-block
        wait 2 seconds
        set event-block to stone
    if event-block is end stone:
        {bloki::*} contains location of block 1 blocks above location of event-block
        remove location of block 1 blocks above location of event-block from {bloki::*}

chyba powinno dzialac

Odnośnik do komentarza
https://skript.pl/temat/56330-generatory/#findComment-337989
Udostępnij na innych stronach

  • 0
5 minut temu, Fendi napisał:
options:
    Kamien: end stone named "&8&o&lGenerator Kamienia"
 
command /generator [<text>]:
    trigger:
        if arg-1 is "k" or "kamienia":
            give {@Kamien} to player
        if arg-1 is not set:
            send "&cPodaj Nazwe generatora !!!"
 
on place:
    name of event-block is "&8&o&lGenerator Kamienia"
    add location of block 1 blocks above location of event-block to {bloki::*}
    set location of block 1 blocks above location of event-block to stone
on break:
    if event-block is stone:
        {bloki::*} contains location of event-block
        wait 2 seconds
        set event-block to stone
    if event-block is end stone:
        {bloki::*} contains location of block 1 blocks above location of event-block
        remove location of block 1 blocks above location of event-block from {bloki::*}

chyba powinno dzialac

nie działa blok się nie respii 

 

Odnośnik do komentarza
https://skript.pl/temat/56330-generatory/#findComment-337990
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
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ę...