/camera
The /camera command controls a player's viewpoint, field of view, screen fade transitions, and camera tracking targets. It allows you to lock the camera to specific perspectives, move it smoothly between world coordinates using easing functions, or attach it to other entities. You must run /camera <players> clear to return normal camera control back to the player after setting a free or custom camera.
Syntax
Exactly as the game prints it. <angle brackets> are required, [square brackets] are optional.
/camera <players: target> attach_to_entity <entity: target>/camera <players: target> clear/camera <players: target> detach_from_entity/camera <players: target> fade/camera <players: target> fade color <red: int> <green: int> <blue: int>/camera <players: target> fade time <fadeInSeconds: float> <holdSeconds: float> <fadeOutSeconds: float>/camera <players: target> fade time <fadeInSeconds: float> <holdSeconds: float> <fadeOutSeconds: float> color <red: int> <green: int> <blue: int>/camera <players: target> fov_clear [fovEaseTime: float] [fovEaseType: Easing]/camera <players: target> fov_set <fov_value: float> [fovEaseTime: float] [fovEaseType: Easing]/camera <players: target> play_spline <name: string>/camera <players: target> remove_target/camera <players: target> set <preset: string> [default: default]/camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> [default: default]/camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> entity_offset <xEntityOffset: float> <yEntityOffset: float> <zEntityOffset: float>/camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> facing <lookAtEntity: target>/camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> facing <lookAtPosition: x y z>/camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> pos <position: x y z>/camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> pos <position: x y z> facing <lookAtEntity: target>/camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> pos <position: x y z> facing <lookAtPosition: x y z>/camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> pos <position: x y z> rot <xRot: value> <yRot: value>/camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> rot <xRot: value> <yRot: value>/camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> rot <xRot: value> <yRot: value> entity_offset <xEntityOffset: float> <yEntityOffset: float> <zEntityOffset: float>/camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> rot <xRot: value> <yRot: value> view_offset <xViewOffset: float> <yViewOffset: float>/camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> rot <xRot: value> <yRot: value> view_offset <xViewOffset: float> <yViewOffset: float> entity_offset <xEntityOffset: float> <yEntityOffset: float> <zEntityOffset: float>/camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> view_offset <xViewOffset: float> <yViewOffset: float>/camera <players: target> set <preset: string> ease <easeTime: float> <easeType: Easing> view_offset <xViewOffset: float> <yViewOffset: float> entity_offset <xEntityOffset: float> <yEntityOffset: float> <zEntityOffset: float>/camera <players: target> set <preset: string> entity_offset <xEntityOffset: float> <yEntityOffset: float> <zEntityOffset: float>/camera <players: target> set <preset: string> facing <lookAtEntity: target>/camera <players: target> set <preset: string> facing <lookAtPosition: x y z>/camera <players: target> set <preset: string> pos <position: x y z>/camera <players: target> set <preset: string> pos <position: x y z> facing <lookAtEntity: target>/camera <players: target> set <preset: string> pos <position: x y z> facing <lookAtPosition: x y z>/camera <players: target> set <preset: string> pos <position: x y z> rot <xRot: value> <yRot: value>/camera <players: target> set <preset: string> rot <xRot: value> <yRot: value>/camera <players: target> set <preset: string> rot <xRot: value> <yRot: value> entity_offset <xEntityOffset: float> <yEntityOffset: float> <zEntityOffset: float>/camera <players: target> set <preset: string> rot <xRot: value> <yRot: value> view_offset <xViewOffset: float> <yViewOffset: float>/camera <players: target> set <preset: string> rot <xRot: value> <yRot: value> view_offset <xViewOffset: float> <yViewOffset: float> entity_offset <xEntityOffset: float> <yEntityOffset: float> <zEntityOffset: float>/camera <players: target> set <preset: string> view_offset <xViewOffset: float> <yViewOffset: float>/camera <players: target> set <preset: string> view_offset <xViewOffset: float> <yViewOffset: float> entity_offset <xEntityOffset: float> <yEntityOffset: float> <zEntityOffset: float>/camera <players: target> target_entity <entity: target>/camera <players: target> target_entity <entity: target> target_center_offset <xTargetCenterOffset: float> <yTargetCenterOffset: float> <zTargetCenterOffset: float>What it is used for
- Creating smooth cinematic cutscenes that pan across a build or boss arena.
- Fading a player's screen to black or another color while teleporting them to a new area.
- Forcing a specific perspective in an adventure map, such as top-down, over-the-shoulder, or first-person.
- Making the player's camera track a specific mob or look at an important object.
- Zooming the view in or out dynamically by changing the field of view (FOV).
Parameters
| Parameter | What it means |
|---|---|
players: target | The player or players whose camera will be modified. Accepts a player name or a target selector like @p, @a, @r, or @s. |
entity: target | The single entity to attach the camera to (with attach_to_entity) or to keep centered in the view (with target_entity). Accepts a target selector. |
red: int | The red color channel for the screen fade, from 0 to 255. |
green: int | The green color channel for the screen fade, from 0 to 255. |
blue: int | The blue color channel for the screen fade, from 0 to 255. |
fadeInSeconds: float | The time in seconds it takes for the screen to fade from normal vision to solid color. |
holdSeconds: float | The time in seconds the screen stays completely covered by the fade color. |
fadeOutSeconds: float | The time in seconds it takes for the solid color to fade back to normal vision. |
fov_value: float | The target field of view angle in degrees. |
fovEaseTime: float | Optional duration in seconds for the FOV change to transition. If omitted, the FOV changes instantly. |
fovEaseType: Easing | Optional easing curve used over fovEaseTime. Accepts values like linear, spring, in_quad, out_quad, in_out_sine, etc. Defaults to immediate change if omitted. |
name: string | The identifier of a camera spline defined in an active behavior pack to play. |
preset: string | The camera preset ID to activate. Built-in presets are minecraft:first_person, minecraft:third_person, minecraft:third_person_front, minecraft:free, minecraft:fixed_boom, minecraft:follow_orbit, and minecraft:control_scheme_camera. |
default: default | Optional literal keyword 'default'. Resets the specified preset's position, rotation, and offsets to its default configuration. |
easeTime: float | The duration in seconds for the camera to smoothly transition from its current state to the new position, rotation, or offset. |
easeType: Easing | The movement curve used during easeTime. Accepted values: linear, spring, in_quad, out_quad, in_out_quad, in_cubic, out_cubic, in_out_cubic, in_quart, out_quart, in_out_quart, in_quint, out_quint, in_out_quint, in_sine, out_sine, in_out_sine, in_expo, out_expo, in_out_expo, in_circ, out_circ, in_out_circ, in_bounce, out_bounce, in_out_bounce, in_back, out_back, in_out_back, in_elastic, out_elastic, in_out_elastic. |
xEntityOffset: float | The X offset of the camera relative to the player or attached entity. |
yEntityOffset: float | The Y offset of the camera relative to the player or attached entity. |
zEntityOffset: float | The Z offset of the camera relative to the player or attached entity. |
lookAtEntity: target | A target selector for the entity the camera should rotate to face. |
lookAtPosition: x y z | The world coordinates (or ~ and ^ relative coordinates) the camera should rotate to face. |
position: x y z | The world coordinates (or ~ and ^ relative coordinates) where the camera will be placed. |
xRot: value | The vertical pitch rotation of the camera in degrees (positive looks down, negative looks up). Supports ~ for relative rotation. |
yRot: value | The horizontal yaw rotation of the camera in degrees. Supports ~ for relative rotation. |
xViewOffset: float | The horizontal 2D screen-space view offset for third-person and orbit presets. |
yViewOffset: float | The vertical 2D screen-space view offset for third-person and orbit presets. |
xTargetCenterOffset: float | The X offset from the targeted entity's center when using target_entity. |
yTargetCenterOffset: float | The Y offset from the targeted entity's center when using target_entity. |
zTargetCenterOffset: float | The Z offset from the targeted entity's center when using target_entity. |
Examples
Every example below was sent to a real Bedrock Dedicated Server (1.26.66.1) and accepted by the game.
/camera @a clearResets the camera for all players back to their normal player-controlled view.
/camera @p set minecraft:third_personForces the nearest player's camera into standard third-person view.
/camera @a fade time 1.0 2.0 1.0 color 0 0 0Fades all players' screens to black over 1 second, holds for 2 seconds, and fades back in over 1 second.
/camera @p fov_set 30 1.5 out_quadZooms the nearest player's field of view in to 30 degrees over 1.5 seconds using an out_quad curve.
/camera @p fov_clear 1.0 linearRestores the nearest player's field of view to their default setting over 1 second.
/camera @p set minecraft:free pos 100 85 -200 facing 100 64 -180Detaches the nearest player's camera and places it at 100, 85, -200 looking toward 100, 64, -180.
/camera @p set minecraft:free ease 4.0 in_out_sine pos ~ ~15 ~-15 rot 45 ~Smoothly moves the nearest player's camera over 4 seconds to 15 blocks above and behind its current spot, tilted down at 45 degrees.
/execute as @a at @s run camera @s set minecraft:free ease 2.5 out_cubic pos ^ ^3 ^-6 facing @e[type=minecraft:ender_dragon,c=1]Moves every player's camera to a spot 3 blocks above and 6 blocks behind them while aiming directly at the nearest Ender Dragon.
/camera @p set minecraft:follow_orbit view_offset 1.5 0.5 entity_offset -2.0 1.0 -3.0Sets the nearest player's camera to an over-the-shoulder orbit view using custom view and entity offsets.
/camera @p attach_to_entity @e[type=minecraft:villager,c=1]Attaches the nearest player's camera perspective to the closest villager.
/camera @p target_entity @e[type=minecraft:warden,c=1] target_center_offset 0 1.5 0Locks the nearest player's camera onto the closest Warden, aiming 1.5 blocks above the Warden's center.
Accepted values
CameraPresets
minecraft:first_personminecraft:fixed_boomminecraft:follow_orbitminecraft:freeminecraft:third_personminecraft:third_person_frontminecraft:control_scheme_camera
Easing
linearspringin_quadout_quadin_out_quadin_cubicout_cubicin_out_cubicin_quartout_quartin_out_quartin_quintout_quintin_out_quintin_sineout_sinein_out_sinein_expoout_expoin_out_expoin_circout_circin_out_circin_bounceout_bouncein_out_bouncein_backout_backin_out_backin_elasticout_elasticin_out_elastic
Common mistakes
Using pos or facing with minecraft:first_person or minecraft:third_person and getting an error or no movement.
Built-in player-locked presets cannot be placed at arbitrary world coordinates. Use minecraft:free when setting custom world positions with pos.
Running /camera from a command block with ~ ~ ~ coordinates puts the camera inside the command block instead of near the player.
Relative coordinates (~ and ^) resolve at the command's execution position. Wrap the command in /execute as <player> at @s run camera @s ... so coordinates are relative to the player.
RGB color values higher than 255 or lower than 0 in /camera fade color fail with a syntax or range error.
Keep red, green, and blue integer values strictly between 0 and 255.
The player is stuck looking at a fixed spot and cannot restore their view using the perspective toggle button.
An active camera instruction overrides player perspective settings. Run /camera <player> clear (and /camera <player> fov_clear if FOV was changed) to give control back.
attach_to_entity or target_entity fails to execute.
Make sure the active camera preset supports entity attachment or targeting (such as minecraft:third_person or minecraft:follow_orbit) and that your entity selector matches exactly one loaded entity (use c=1).
Tips
- To create a multi-point camera path without behavior pack splines, chain multiple impulse and delay-tick chain command blocks that each run /camera ... set minecraft:free ease <time> linear pos <x y z>.
- Combine /camera @a fade with a /tp command timed during the holdSeconds phase to hide chunk loading when moving players to a new area.
- Use /inputpermission set <player> movement disabled during free-camera cutscenes so players do not accidentally walk off cliffs while their camera is detached from their body.
- Use /hud <player> hide all alongside /camera to remove the crosshair, hotbar, and health bars for a clean cinematic view.
Questions about /camera
How do I return the camera back to normal after a cutscene?
Run /camera <player> clear to restore the player's normal camera perspective. If you also changed their field of view or locked onto a target, run /camera <player> fov_clear and /camera <player> remove_target.
Why does the player's body still move around while using minecraft:free?
The /camera command only moves the viewport and does not freeze the player entity. Use /inputpermission set <player> movement disabled to stop the player from walking while the camera is detached.
What is the difference between minecraft:free and minecraft:follow_orbit?
The minecraft:free preset detaches the camera completely and places it at fixed world coordinates. The minecraft:follow_orbit preset keeps the camera following an entity while allowing you to adjust view_offset, entity_offset, and target tracking.
More from 9Minecraft
Command reference © 2026 9Minecraft.net. Syntax read from Minecraft Bedrock Edition 1.26.66.1.