Minecraft:Commands/camerashake: Difference between revisions
More actions
Remove broken links to missing pages |
Fix template calls: add MC/ prefix |
||
| Line 1: | Line 1: | ||
{{ | {{MC/Distinguish|Commands/camera}} | ||
{{ | {{MC/Exclusive|bedrock|education}} | ||
{{Infobox command | {{Infobox command | ||
|name=camerashake | |name=camerashake | ||
| Line 15: | Line 15: | ||
== Arguments == | == Arguments == | ||
{{ | {{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 ({{ | : Specifies the player(s) whose clients are sent a camera shake request. If not specified, defaults to the command's executor ({{MC/Code|@s}}). | ||
: {{ | : {{MC/Arg desc|type=players|be=player}} Unlike in other command, this target selector can always target online dead players with <code>@e</code>. | ||
{{ | {{MC/Argument|be=1|intensity: float|float}} | ||
: Specifies the intensity of the camera shake. | : Specifies the intensity of the camera shake. | ||
: {{ | : {{MC/Arg desc|be=float}} Should be between 0 and 4 (inclusive). | ||
{{ | {{MC/Argument|be=1|seconds: float|float}} | ||
: Specifies the duration of the camera shake. | : Specifies the duration of the camera shake. | ||
: {{ | : {{MC/Arg desc|be=float}} | ||
{{ | {{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 {{ | |{{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 {{ | |{{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
positionalandrotational.
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
-
Example of a positional camera shake
-
Example of a rotational camera shake
History
Bedrock Edition
Minecraft Education
External links
de:Befehl/camerashake es:Comandos/camerashake ja:コマンド/camerashake pt:Comandos/camerashake ru:Команды консоли/camerashake zh:命令/camerashake