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.
| Field | Type | Default | Description |
|---|---|---|---|
multiplier | Double | 1 | 0 freezes the view, 0.5 is half speed, 2 is double. |
horizontal | Boolean | true | Whether it scales turning left and right. |
vertical | Boolean | true | Whether it scales looking up and down. |
duration | Integer | 0 | Ticks until it goes back to normal. 0 lasts until reset. |
reset | Boolean | false | true 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
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. multiplier: 1works likereset: true.
Example: "Dazed". Hitting an entity makes a player target turn at a quarter speed for 3 seconds.
{
"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
}