on place:
block under event-block is air
set {_} to type of event-block
break event-block
spawn "falling %{_}%" parsed as entity type at event-block
on break:
set {_x} to location of event-block
while y-coordinate of {_x} is less than 320:
add 1 to y-coordinate of {_x}
block at {_x} is not air
set {_} to type of block at {_x}
set block at {_x} to air
spawn "falling %{_}%" parsed as entity type at {_x}
ale nie mam pojęcia jak zrobić, aby bloki zawalały się nie tylko przy niszczeniu ich ręką, ale kiedy po prostu znikną, np. setblockiem
Jest na to jakiś w miarę optymalny nielagujący serwera sposób?
Pytanie
TeZetYT 11
Hej wszystkim, robię skrypt na grawitację
on place:
block under event-block is air
set {_} to type of event-block
break event-block
spawn "falling %{_}%" parsed as entity type at event-block
on break:
set {_x} to location of event-block
while y-coordinate of {_x} is less than 320:
add 1 to y-coordinate of {_x}
block at {_x} is not air
set {_} to type of block at {_x}
set block at {_x} to air
spawn "falling %{_}%" parsed as entity type at {_x}
ale nie mam pojęcia jak zrobić, aby bloki zawalały się nie tylko przy niszczeniu ich ręką, ale kiedy po prostu znikną, np. setblockiem
Jest na to jakiś w miarę optymalny nielagujący serwera sposób?
Odnośnik do komentarza
https://skript.pl/temat/58714-grawitacja/Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
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ą.