@melon_PL
A to przepraszam najmocniej, już się poprawiam.
on place:
model data of player's tool is 20
set {_l} to location of event-block
set {_c1} to {_l} ~ vector(1, 2, 0)
set {_c2} to {_l} ~ vector(-1, 0, 0)
set blocks within {_c1} and {_c2} to event-block
Warto jednak zauważyć, że ta ściana zawsze będzie zwrócona w tym samym kierunku. Jeśli ma ona osłaniać gracza, należy wykorzystać jego kierunek patrzenia.
on place:
model data of player's tool is 20
set {_x} to 1
set {_z} to 0
if player's horizontal facing is east or west:
set {_x} to 0
set {_z} to 1
set {_l} to location of event-block
set {_c1} to {_l} ~ vector({_x}, 2, {_z})
set {_c2} to {_l} ~ vector({_x}*-1, 0, {_z}*-1)
set blocks within {_c1} and {_c2} to event-block
Pozdrawiam.