Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/camerashake: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Remove broken links to missing pages
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
Line 1: Line 1:
{{distinguish|Commands/camera}}
{{MC/Distinguish|Commands/camera}}
{{exclusive|bedrock|education}}
{{MC/Exclusive|bedrock|education}}
{{Infobox command
{{Infobox command
|name=camerashake
|name=camerashake
Line 15: Line 15:


== Arguments ==
== Arguments ==
{{argument|be=1|player: target|CommandSelector<Player>}}
{{MC/Argument|be=1|player: target|CommandSelector<Player>}}
: Specifies the player(s) whose clients are sent a camera shake request. If not specified, defaults to the command's executor ({{code|@s}}).
: Specifies the player(s) whose clients are sent a camera shake request. If not specified, defaults to the command's executor ({{MC/Code|@s}}).
: {{arg desc|type=players|be=player}} Unlike in other command, this target selector can always target online dead players with <code>@e</code>.
: {{MC/Arg desc|type=players|be=player}} Unlike in other command, this target selector can always target online dead players with <code>@e</code>.


{{argument|be=1|intensity: float|float}}
{{MC/Argument|be=1|intensity: float|float}}
: Specifies the intensity of the camera shake.
: Specifies the intensity of the camera shake.
: {{arg desc|be=float}} Should be between 0 and 4 (inclusive).
: {{MC/Arg desc|be=float}} Should be between 0 and 4 (inclusive).


{{argument|be=1|seconds: float|float}}
{{MC/Argument|be=1|seconds: float|float}}
: Specifies the duration of the camera shake.
: Specifies the duration of the camera shake.
: {{arg desc|be=float}}
: {{MC/Arg desc|be=float}}


{{argument|be=1|shakeType: CameraShakeType|enum}}
{{MC/Argument|be=1|shakeType: CameraShakeType|enum}}
: Specifies the type of camera shake direction.
: Specifies the type of camera shake direction.
: Must be one of <code>positional</code> and <code>rotational</code>.
: Must be one of <code>positional</code> and <code>rotational</code>.
Line 41: Line 41:
== Output ==
== Output ==


{{Output table|onlybe=1}}
{{MC/Output table|onlybe=1}}
{{Output table|edition=be|On fail|0}}
{{MC/Output table|edition=be|On fail|0}}
{{Output table|On success|1}}
{{MC/Output table|On success|1}}
{{Output table}}
{{MC/Output table}}


== Example ==
== Example ==
Line 61: Line 61:
=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|bedrock}}
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine||1.16.100|dev=beta 1.16.100.57|Added {{cmd|camerashake|link=none}}.}}
|{{HistoryLine||1.16.100|dev=beta 1.16.100.57|Added {{MC/Cmd|camerashake|link=none}}.}}
|{{HistoryLine|||dev=beta 1.16.100.59|Added the ability to pick between different shake types.}}
|{{MC/HistoryLine|||dev=beta 1.16.100.59|Added the ability to pick between different shake types.}}
|{{HistoryLine||1.16.210|dev=beta 1.16.210.54|Added the stop camera shake command type.}}
|{{MC/HistoryLine||1.16.210|dev=beta 1.16.210.54|Added the stop camera shake command type.}}
}}
}}


=== ''Minecraft Education'' ===
=== ''Minecraft Education'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|education}}
|{{MC/HistoryLine|education}}
|{{HistoryLine||1.17.30|dev=1.17.30.2|Added {{cd|/camerashake}}.}}
|{{HistoryLine||1.17.30|dev=1.17.30.2|Added {{MC/Cd|/camerashake}}.}}
}}
}}


Line 78: Line 78:


== Navigation ==
== Navigation ==
{{Navbox commands}}
{{MC/Navbox commands}}


de:Befehl/camerashake
de:Befehl/camerashake

Latest revision as of 20:08, 9 April 2026

Template:Hatnote Script error: No such module "Exclusive". Template:Infobox command Sends a request to client for shaking the player's camera (the effect won't be shown if the player has Camera Shake disabled in their Accessibility settings).

Syntax

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

player: target: CommandSelector<Player>

Specifies the player(s) whose clients are sent a camera shake request. If not specified, defaults to the command's executor (@s).
{{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|entity}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}} Unlike in other command, this target selector can always target online dead players with @e.

intensity: float: float

Specifies the intensity of the camera shake.
{{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|float}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}} Should be between 0 and 4 (inclusive).

seconds: float: float

Specifies the duration of the camera shake.
{{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|float}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

shakeType: CameraShakeType: enum

Specifies the type of camera shake direction.
Must be one of positional and rotational.

Result

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

Output

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|be}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

Example

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

Bedrock Edition

Template:HistoryTable

Minecraft Education

Template:HistoryTable

External links

Navigation

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

de:Befehl/camerashake es:Comandos/camerashake ja:コマンド/camerashake pt:Comandos/camerashake ru:Команды консоли/camerashake zh:命令/camerashake