#We want to place a 5x5 wall 10 squares in front in the direction the player is facing

1 messages · Page 1 of 1 (latest)

rough cloud
#

you can use ```vb
add all blocks within {_loc_1} and {_loc_2} to {_list::}
loop {_list::
}:
set block at loop-value to <your block type>
wait 5 seconds
loop {_list::*}:
set block at loop-value to air

tough dagger
rough cloud
#

what

#

5x5 = 25?

tough dagger
tough dagger
rough cloud
#

then the code i sent should work

tough dagger
rough cloud
#

🤦

#

do you know skript at all?

#

you need to set the 2 variables

tough dagger
#

I set 2 variables

rough cloud
#

what did you set the 2 variables to?

tough dagger
#

set {_loc2} to block 10 infront of player's eyes
set {_loc1} to player's eyes
{_loc2} It seems strange. I want to set it in the direction I am facing.

rough cloud
#

location of player

tough dagger
#

I'll show you in pictures.

#

Do you understand?

rough cloud
#

yes

#

so

#

basically

#

what you need to do is

#

set a variable to location 10 blocks in front of player's eyes

#

wait

#

ill send code

#
set {_e} to block 10 blocks in front of player's eyes
set {_e} to block 2 blocks below {_e}
set {_loc_1} to block 2 blocks right of {_e}

set {_e} to block 10 blocks in front of player's eyes
set {_e} to block 2 blocks above {_e}
set {_loc_2} to block 2 blocks left of {_e}

add all blocks within {_loc_1} and {_loc_2} to {_list::*}
loop {_list::*}:
  set block at loop-value to stone bricks
wait 5 seconds
loop {_list::*}:
  set block at loop-value to air
#

try this code

tough dagger
#

It works!!. Lastly, when looking at the floor and creating a wall, a wall is created within the floor. Is it possible to create a wall that matches the floor?

rough cloud
#

yeah but its much more difficult

tough dagger
#

Can you do it for me..? I'm asking because I think I can apply it later if I learn it now.