Too Many Attributes
» Entity actions » Set FOV

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.

FieldTypeDefaultDescription
multiplierDouble1Multiplies the FOV. 0.5 zooms in, 1.3 zooms out.
affected_by_fov_effect_scaleBooleantrueWith true, the player's "FOV Effects" video setting weakens the change. false always shows it at full strength.
durationInteger0Ticks until it goes back to normal. 0 lasts until reset.
resetBooleanfalsetrue 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 duration runs 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.

json
{
  "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
}