I love to work with command_blocks, now i can't find the right command and youtube let me down.
I play now 1.15.2 and i can find all the codes for 1.13 but that's that i'm playing.
What i need
I want a player on certain cordinates that workes. Now the player needs to face between certain points to open the door/make path in the air or lava.
The first path of the code is here: execute if entity @e[x=418,y=74,z=-244,distance=0..0.75]
Now i want the player facing between East(Towards positiveX) (-90.0 / -5.0) and East (Towards positive X) (-87.0 / 1.5)
How can i put this in the command block so it worked, i hoped someone can tell me because the internet hasn't the answer for me.
should "x_rotation" and "y_rotation" be what you are looking for?
https://www.digminecraft.com/getting_started/target_selectors.php (see Arguments)
I got into chiptune music composition.
You can listen to them on my Youtube channel :
Descriptions are in french, you'd just need some google translation copy-paste...
Yes i now that i need those two command but not how to use them.
I can not make the command that so you need to look at a small area.
I need to set this looking point
You want to look for a certain area?
Did you try "x_rotation=-90..-70" and "y_rotation=-10..10"?
I did it i know what i did wrong
execute if entity @e[x=418.5,y=74,z=-243.5,distance=0..0.4,x_rotation=1.5..4.2,y_rotation=268.5..271.5]
Oh sorry the x_rotation is the vertical and the y is horizontal.
Start by trying only :
/execute as @a[x_rotation=-10..10,y_rotation=-100..-80]