#camera in front
1 messages · Page 1 of 1 (latest)
change the camera position y coordinate to a static one.
What you mean,i mean how do you do that in command
location.y = player.location.y + 1
assuming location is the location you used for your camera
I meant in /camera command, because i dont know how to set camera in script
rotated ~ 0
execute as @a at @s positioned ~~1~ rotated ~ 0 run camera ... ^^^1 ...
Does it need the 'facing' one after the first coordinate inside /camera
use facing if you want it to face at a specific location.
So do i type it like this
execute as @s at @s positioned ~~1~ rotated 0 run camera @s set minecraft:free pos ^^^1
?
Oh so this
execute as @s at @s positioned ~~1~ rotated ~ 0 run camera @s set minecraft:free pos ^^^1
just test it, I don't exactly remember the camera syntax
Let me try,thank youu
adjust the relative position (...positioned ~~1~) to suit your needs.
basically rotated ~ 0 eliminates the player's up/down rotation, and only passes the left/right rotation if you want to know.
it works,the only missing is how to adjust the distance of the camera to the player,because its too close
/execute as @s at @s positioned ~~2~ rotated ~ 0 run camera @s set minecraft:free pos ^^^1 facing @p
Omg it worked,i increased the ^1