In the latest update, a new feature was added to the /camera command that allows the camera to focus on a target entity and keep it centered on the screen. For example, the command /camera @s target_entity @e[type=husk]
should make the camera focus on a husk entity and keep it in the middle of the screen. However, when using this command in third-person perspective, it does not work correctly. The camera fails to keep both the player and the target entity in view and centered on the screen.
Additionally, for the command to work properly in third-person perspective, you need to set the camera to free mode first. The command /camera @a set minecraft:free ease 0.2 in_out_quad pos ^-1 ^1.2 ^-4 rot ~~
should be executed before the target_entity
command to make the camera work as intended because it detaches the camera from the player.
Steps to Reproduce:
Switch to third person perspective
Spawn a husk
Execute the command:
/camera @s target_entity @e[type=husk]
Observed Result:
The camera does not focus on the target entity in third-person perspective.
Expected Result:
The camera should focus on the target entity (husk) and keep it centered on the screen, while also maintaining the player and the target entity in view in third-person perspective.
Additional Steps to Make the Command Work:
Execute the command:
/camera @a set minecraft:free ease 0.2 in_out_quad pos ^-1 ^1.2 ^-4 rot ~~
Then execute the command:
/camera @s target_entity @e[type=husk]
The camera now focuses on the target entity because the camera is detached from the player.
Notes:
The target focus feature works correctly only when the camera is set to minecraft:free
mode.
Attachments
Comments 3
