Commands/camerashake
< Commands
This feature is exclusive to Bedrock Edition.
camerashake
Restrictions | |
---|---|
First introduced |
Used to enable a camera shaking effect.
Syntax[edit]
camerashake add <player: target> [intensity: float] [seconds: float] [shakeType: CameraShakeType]
- Add the camera shake effect to a player.
camerashake stop <player: target>
- Stops the camera shake.
Arguments[edit]
player: target
: CommandSelector<Player>
- Must be a player name or a target selector. And the target selector must be of player type.
- Specifies the player(s) who's clients will be sent a camera shake request. If not specified, defaults to the command's executor (
@s
).
intensity: float
: float
- Must be a Single-precision floating-point format number. Must be between 0 and 4 (inclusive).
- Specifies the intensity of the camera shake.
seconds: float
: float
- Must be a Single-precision floating-point format number.
- Specifies the duration of the camera shake.
shakeType: CameraShakeType
- Must be one of
positional
androtational
. - Specifies the type of camera shake direction.
Result[edit]
Command | Trigger | Bedrock Edition |
---|---|---|
any | the arguments are not specified correctly | Failed |
if the intensity number is above 4 | ||
On success | Sends a request to shake a player's camera (the effect won't be shown if the player has Camera Shake disabled in their Accessibility settings) |
Output[edit]
Command | Edition | Situation | Success Count |
---|---|---|---|
any | Bedrock Edition | On fail | 0 |
On success | 1 |
Example[edit]
To perform a positional camera shake with intensity 0.25 for 5 seconds:
/camerashake add @p 0.25 5 positional
To perform a rotational camera shake with intensity 0.25 for 5 seconds:
/camerashake add @p 0.25 5 rotational
History[edit]
Bedrock Edition | |||||
---|---|---|---|---|---|
1.16.100 | beta 1.16.100.57 | Added /camerashake . | |||
beta 1.16.100.59 | Added the ability to pick between different shake types. | ||||
Upcoming Bedrock Edition | |||||
1.16.210 | beta 1.16.210.54 | Added the stop camera shake command type. |