Camera Distance (camera_distance)

Attributes

How far is the camera from a third-person view (F5) of an entity: 4 blocks from the player. 16 blocks from dragons and giants, 8 blocks from ghasts — the camera moves farther when you're sitting on such an entity.

  • by default 4
  • from 0 to 32
  • Minecraft 26.3
My Game select version

Save your preferences in this browser and apply them to supported tools. Settings in a shared link take priority. Wiki version labels are not affected.

On this page 6 sections

At a glance

Chat command — below

  • Camera F5 twice as far
    /attribute @s minecraft:camera_distance base set 8
  • Return to how it was
    /attribute @s minecraft:camera_distance base reset
  • Check your value
    /attribute @s minecraft:camera_distance get

By default 4, the player's 4; the game accepts values from 0 to 32.

Purpose

How far is the camera from a third-person view (F5) of an entity: 4 blocks from the player. 16 blocks from dragons and giants, 8 blocks from ghasts — the camera moves farther when you're sitting on such an entity.

Distance is multiplied by size (scale attribute): for a giant player, the camera moves farther away.

For mobs

Here only mobs with a base different from default (4).

Numbers

WhatValue
IDminecraft:camera_distance
By default4
For the player4
Bordersfrom 0 to 32
What is measuredblocks
Sees the clientyes
Name in the English gameCamera Distance

Frequently asked questions

What does the camera_distance attribute do?

How far is the camera from a third-person view (F5) of an entity: 4 blocks from the player. 16 blocks from dragons and giants, 8 blocks from ghasts — the camera moves farther when you're sitting on such an entity.

How to change the camera distance with a command?

/attribute @s minecraft:camera_distance base set <value> — for example, 8. Reset to default: /attribute @s minecraft:camera_distance base reset. Requires operator permissions or cheats.

What are the bounds of camera_distance?

Default: 4. Accepted range: 0 to 32. The command cannot set a value outside this range.

More: size and camera

Data from Minecraft 26.3: Values, boundaries, and who changes them — from game code and game enchantment files.