Skocz do zawartości
  • 0

czarna dziura


TeZetYT

Pytanie

Witam. Czy istnieje mozliwosc, by po postawieniu bloku węgla wszystkie bloki w okół zamieniały się na failing blocki i leciały w okół tego bloku węgla i się zbliżały a po zetknięciu się z blokiem znikały? Jeśli tak, proszę aby ktoś napisał mi taki skrypt. Z góry dzięki

Odnośnik do komentarza
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
W dniu 29.06.2023 o 23:56, Jaarold napisał:

Ogólnie to pamiętaj, że prędkość jest ograniczona w jakimś stopniu w grze

 
9:18:57] [Server thread/INFO]: Line 574: (AdvancedCommands.sk)
[09:18:57] [Server thread/INFO]: There's no loop that matches 'loop-block is not air'
[09:18:57] [Server thread/INFO]: Line: if loop-block is not coal block and loop-block is not air:
[09:18:57] [Server thread/INFO]:
[09:18:57] [Server thread/INFO]: Line 582: (AdvancedCommands.sk)
[09:18:57] [Server thread/INFO]: There's no loop that matches 'loop-block's velocity'
[09:18:57] [Server thread/INFO]: Line: loop-block's velocity is (vector from location of loop-block to {_center}) multiplied by 0.1
[09:18:57] [Server thread/INFO]:
[09:18:57] [Server thread/INFO]: Line 585: (AdvancedCommands.sk)
[09:18:57] [Server thread/INFO]: Can't understand this condition/effect: remove loop-block
[09:18:57] [Server thread/INFO]: Line: remove loop-block
[09:18:57] [Server thread/INFO]:
[09:18:57] [Server thread/INFO]: Loaded 1 script with a total of 4 triggers and 22 commands in 0.24 seconds
[09:18:57] [Server thread/INFO]: [Skript] Encountered 3 errors while reloading all scripts! (244ms)
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
15 godzin temu, TeZetYT napisał:
 
9:18:57] [Server thread/INFO]: Line 574: (AdvancedCommands.sk)
[09:18:57] [Server thread/INFO]: There's no loop that matches 'loop-block is not air'
[09:18:57] [Server thread/INFO]: Line: if loop-block is not coal block and loop-block is not air:
[09:18:57] [Server thread/INFO]:
[09:18:57] [Server thread/INFO]: Line 582: (AdvancedCommands.sk)
[09:18:57] [Server thread/INFO]: There's no loop that matches 'loop-block's velocity'
[09:18:57] [Server thread/INFO]: Line: loop-block's velocity is (vector from location of loop-block to {_center}) multiplied by 0.1
[09:18:57] [Server thread/INFO]:
[09:18:57] [Server thread/INFO]: Line 585: (AdvancedCommands.sk)
[09:18:57] [Server thread/INFO]: Can't understand this condition/effect: remove loop-block
[09:18:57] [Server thread/INFO]: Line: remove loop-block
[09:18:57] [Server thread/INFO]:
[09:18:57] [Server thread/INFO]: Loaded 1 script with a total of 4 triggers and 22 commands in 0.24 seconds
[09:18:57] [Server thread/INFO]: [Skript] Encountered 3 errors while reloading all scripts! (244ms)

 

spróbuj teraz i daj znać:

 

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
W dniu 2.07.2023 o 00:37, Jaarold napisał:

 

spróbuj teraz i daj znać:

 

 

Ale do tego potrzeba add-onu bo w dokumentacji skript nie ma w oryginalnym skripcie falling blockow a mi ten add-on nie dziala

 

W dniu 2.07.2023 o 00:37, Jaarold napisał:

 

spróbuj teraz i daj znać:

 

 

 
[09:38:26 INFO]: Line 1102: (AdvancedCommands.sk)
[09:38:26 INFO]: Can't understand this expression: 'new falling block at {_loc} of type {_block}'
[09:38:26 INFO]: Line: set {_falling} to new falling block at {_loc} of type {_block}
[09:38:26 INFO]:
[09:38:26 INFO]: Line 1105: (AdvancedCommands.sk)
[09:38:26 INFO]: Variables cannot be used here.
[09:38:26 INFO]: Line: loop {_blocks::*} in {_falling}:
[09:38:26 INFO]:
[09:38:26 INFO]: Line 1108: (AdvancedCommands.sk)
[09:38:26 INFO]: Variables cannot be used here.
[09:38:26 INFO]: Line: loop {_blocks::*} in {_falling}:
[09:38:26 INFO]:
[09:38:26 INFO]: [AdvancedCommands] Successfully enabled AdvancedCommands.
[09:38:26 INFO]: [Skript] Encountered 3 errors while reloading AdvancedCommands.sk! (488ms)
ivall

Łączę posty

Notatka dodana przez ivall

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
18 godzin temu, Jaarold napisał:

spróbuj teraz i daj znać:

 

xD jak juz to tak choc nie wiem cyz to zadzala nawet jak cos dodatek to SkQuery:
 

on block place:
    if block is coal block:
        set {_center} to event-block's location
        loop blocks in radius 5 of {_center}:
            if loop-block is not coal block:
                if loop-block is not air:
                    set {_loc} to location of loop-block
                    set {_block} to type of loop-block
                    set block at {_loc} to air
                    spawn falling block of {_block} at {_loc}
                    add {_falling} to {_blocks::*}
        wait 20 ticks
        loop {_blocks::*}:
            loop-value's velocity is (vector from location of loop-value to {_center})
            set {_l} to loop-value's velocity
            set {_l} to ({_l} * 0.1)
            set loop-value's velocity to {_l}
        wait 5 seconds
        loop {_blocks::*}:
            delete block at loop-value's location

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
19 godzin temu, devyy napisał:

xD jak juz to tak choc nie wiem cyz to zadzala nawet jak cos dodatek to SkQuery:
 

on block place:
    if block is coal block:
        set {_center} to event-block's location
        loop blocks in radius 5 of {_center}:
            if loop-block is not coal block:
                if loop-block is not air:
                    set {_loc} to location of loop-block
                    set {_block} to type of loop-block
                    set block at {_loc} to air
                    spawn falling block of {_block} at {_loc}
                    add {_falling} to {_blocks::*}
        wait 20 ticks
        loop {_blocks::*}:
            loop-value's velocity is (vector from location of loop-value to {_center})
            set {_l} to loop-value's velocity
            set {_l} to ({_l} * 0.1)
            set loop-value's velocity to {_l}
        wait 5 seconds
        loop {_blocks::*}:
            delete block at loop-value's location

 

Napisałem własny inny kod i to co napisałem działa. Temat do zamknięcia :D.

Odnośnik do komentarza
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ę...