Skocz do zawartości
  • 0

Trampolina - bloki slime


osenek

Pytanie

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

nietestowane (działa z każdym slimeblockiem, automatycznie wybiera dostępne 2x2 miejsce a jak nie znajdzie to blokuje stawianie bloku)

on place of slime block:
    set {_l} to location of event-block
    set {_n} to block north {_l}
    set {_s} to block south {_l}
    set {_e} to block east {_l}
    set {_w} to block west {_l}
    if {_n} is air:
        if block east {_n} is air:
            if {_e} is air:
                set {_n} to slime block
                set block east {_n} to slime block
                set block {_e} to slime block
                stop
        if block west {_n} is air:
            if {_w} is air:
                set {_n} to slime block
                set block west {_n} to slime block
                set block {_w} to slime block
                stop
    if {_s} is air:
        if block east {_s} is air:
            if {_e} is air:
                set {_s} to slime block
                set block east {_s} to slime block
                set block {_e} to slime block
                stop
        if block west {_s} is air:
            if {_w} is air:
                set {_s} to slime block
                set block west {_s} to slime block
                set block {_w} to slime block
                stop
    cancel event
Edytowane przez LloydPL
Odnośnik do komentarza
https://skript.pl/temat/26493-trampolina-bloki-slime/#findComment-174534
Udostępnij na innych stronach

  • 0

właśnie błąd składni zauważyłem (nie da) masz fixa:

on place of slime block:
    set {_l} to location of event-block
    set {_n} to block north {_l}
    set {_s} to block south {_l}
    set {_e} to block east {_l}
    set {_w} to block west {_l}
    if {_n} is air:
        if block east {_n} is air:
            if {_e} is air:
                set block at location of {_n} to slime block
                set block at location of block east {_n} to slime block
                set block at location of {_e} to slime block
                stop
        if block west {_n} is air:
            if {_w} is air:
                set block at location of {_n} to slime block
                set block at location of block west {_n} to slime block
                set block at location of {_w} to slime block
                stop
    if {_s} is air:
        if block east {_s} is air:
            if {_e} is air:
                set block at location of {_s} to slime block
                set block at location of block east {_s} to slime block
                set block at location of {_e} to slime block
                stop
        if block west {_s} is air:
            if {_w} is air:
                set block at location of {_s} to slime block
                set block at location of block west {_s} to slime block
                set block at location of {_w} to slime block
                stop
    cancel event
Edytowane przez LloydPL
Odnośnik do komentarza
https://skript.pl/temat/26493-trampolina-bloki-slime/#findComment-174539
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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