fov_modifier¶
type: "fov_modifier"
Changes the player's field of view.
Fields¶
Camera effects also accept the shared definition fields (
duration,easing,loop,persistent,fade_ticks,sound).
| Field | Type | Default | Meaning |
|---|---|---|---|
fov_delta |
float | 10 (fades to 0) | FOV change in degrees (positive = zoom out) |
Layering note (
screen_layerfor camera/roll effects): thescreen_layerparameter (0under the first-person hand,1above the hand below the GUI,2above everything) applies only to screen post-processing effects in section 2.1. Camera-space effects (camera_shake,camera_roll,fov_modifier) act directly on the camera transform - the world shakes, and the same shake is applied to the first-person hand (it moves together with the world). They do not acceptscreen_layer.
Example¶
Code¶
Its datapack definition: