Set FOV
too-many-attributes:set_foventity action
Changes a player's field of view for a set time. It does nothing on other entities.
| Field | Type | Default | Description |
|---|---|---|---|
multiplier | Double | 1 | Multiplies the FOV. 0.5 zooms in, 1.3 zooms out. |
affected_by_fov_effect_scale | Boolean | true | With true, the player's "FOV Effects" video setting weakens the change. false always shows it at full strength. |
duration | Integer | 0 | Ticks until it goes back to normal. 0 lasts until reset. |
reset | Boolean | false | true puts the player's FOV back to normal. Other fields are ignored. |
- Running it again replaces the earlier setting and its time.
- It goes back to normal when
durationruns out, even if the player was offline for some of it. It stays through death and dimension changes. Every setting ends when the server restarts.
Example: "Shockwave". Hitting an entity makes a player target's view zoom out for a second.
{
"type": "origins:action_on_hit",
"bientity_action": {
"type": "origins:target_action",
"action": {
"type": "too-many-attributes:set_fov",
"multiplier": 1.4,
"affected_by_fov_effect_scale": false,
"duration": 20
}
},
"cooldown": 60
}