Too Many Attributes
» Entity actions » Set cursor speed

Set cursor speed

too-many-attributes:set_cursor_speedentity action

Scales how fast a player's view turns with the mouse, for a set time. It does nothing on other entities.

FieldTypeDefaultDescription
multiplierDouble10 freezes the view, 0.5 is half speed, 2 is double.
horizontalBooleantrueWhether it scales turning left and right.
verticalBooleantrueWhether it scales looking up and down.
durationInteger0Ticks until it goes back to normal. 0 lasts until reset.
resetBooleanfalsetrue puts the player's cursor speed 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.
  • multiplier: 1 works like reset: true.

Example: "Dazed". Hitting an entity makes a player target turn at a quarter speed for 3 seconds.

json
{
  "type": "origins:action_on_hit",
  "bientity_action": {
    "type": "origins:target_action",
    "action": {
      "type": "too-many-attributes:set_cursor_speed",
      "multiplier": 0.25,
      "duration": 60
    }
  },
  "cooldown": 100
}