/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.

Operator (cheats on)Cheats must be onChecked on 1.26.66.1

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

Parameters

ParameterWhat it means
players: targetThe player or players whose camera will be modified. Accepts a player name or a target selector like @p, @a, @r, or @s.
entity: targetThe 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: intThe red color channel for the screen fade, from 0 to 255.
green: intThe green color channel for the screen fade, from 0 to 255.
blue: intThe blue color channel for the screen fade, from 0 to 255.
fadeInSeconds: floatThe time in seconds it takes for the screen to fade from normal vision to solid color.
holdSeconds: floatThe time in seconds the screen stays completely covered by the fade color.
fadeOutSeconds: floatThe time in seconds it takes for the solid color to fade back to normal vision.
fov_value: floatThe target field of view angle in degrees.
fovEaseTime: floatOptional duration in seconds for the FOV change to transition. If omitted, the FOV changes instantly.
fovEaseType: EasingOptional 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: stringThe identifier of a camera spline defined in an active behavior pack to play.
preset: stringThe 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: defaultOptional literal keyword 'default'. Resets the specified preset's position, rotation, and offsets to its default configuration.
easeTime: floatThe duration in seconds for the camera to smoothly transition from its current state to the new position, rotation, or offset.
easeType: EasingThe 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: floatThe X offset of the camera relative to the player or attached entity.
yEntityOffset: floatThe Y offset of the camera relative to the player or attached entity.
zEntityOffset: floatThe Z offset of the camera relative to the player or attached entity.
lookAtEntity: targetA target selector for the entity the camera should rotate to face.
lookAtPosition: x y zThe world coordinates (or ~ and ^ relative coordinates) the camera should rotate to face.
position: x y zThe world coordinates (or ~ and ^ relative coordinates) where the camera will be placed.
xRot: valueThe vertical pitch rotation of the camera in degrees (positive looks down, negative looks up). Supports ~ for relative rotation.
yRot: valueThe horizontal yaw rotation of the camera in degrees. Supports ~ for relative rotation.
xViewOffset: floatThe horizontal 2D screen-space view offset for third-person and orbit presets.
yViewOffset: floatThe vertical 2D screen-space view offset for third-person and orbit presets.
xTargetCenterOffset: floatThe X offset from the targeted entity's center when using target_entity.
yTargetCenterOffset: floatThe Y offset from the targeted entity's center when using target_entity.
zTargetCenterOffset: floatThe 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 clear

Resets the camera for all players back to their normal player-controlled view.

/camera @p set minecraft:third_person

Forces the nearest player's camera into standard third-person view.

/camera @a fade time 1.0 2.0 1.0 color 0 0 0

Fades 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_quad

Zooms 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 linear

Restores 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 -180

Detaches 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.0

Sets 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 0

Locks 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

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.