Minecraft:Commands/inputpermission: Difference between revisions
More actions
Remove broken links to missing pages |
Fix template calls: add MC/ prefix |
||
| Line 1: | Line 1: | ||
{{Exclusive|bedrock|education}} | {{MC/Exclusive|bedrock|education}} | ||
{{Infobox command | {{Infobox command | ||
|name=inputpermission | |name=inputpermission | ||
| Line 15: | Line 15: | ||
== Arguments == | == Arguments == | ||
{{ | {{MC/Argument|targets: target|CommandSelector<Player>|be=1}} | ||
:Specifies the owner of the permission. | :Specifies the owner of the permission. | ||
:{{ | :{{MC/Arg desc|be=CommandSelector<Player>}} | ||
{{ | {{MC/Argument|permission: permission|enum|be=1}} | ||
:Specifies the authority for the operation. | :Specifies the authority for the operation. | ||
:Must be one of the following: | :Must be one of the following: | ||
:* {{ | :* {{MC/Cd|camera}} — Turn the camera view | ||
:* {{ | :* {{MC/Cd|dismount}} — Dismount | ||
:* {{ | :* {{MC/Cd|jump}} — Jump and fly upward | ||
:* {{ | :* {{MC/Cd|lateral_movement}} — Move | ||
:* {{ | :* {{MC/Cd|mount}} — Mount | ||
:* {{ | :* {{MC/Cd|move_backward}} — Move backward | ||
:* {{ | :* {{MC/Cd|move_forward}} — Move forward | ||
:* {{ | :* {{MC/Cd|move_left}} — Move left | ||
:* {{ | :* {{MC/Cd|move_right}} — Move right | ||
:* {{ | :* {{MC/Cd|movement}} — Move, sneak, jump, and fly | ||
:* {{ | :* {{MC/Cd|sneak}} — Sneak and fly downward | ||
{{ | {{MC/Argument|state: state|enum|be=1}} | ||
:The status of the specified permission. | :The status of the specified permission. | ||
:Must be for<code>enabled</code> (Enable) or<code>disabled</code> (Disable). | :Must be for<code>enabled</code> (Enable) or<code>disabled</code> (Disable). | ||
| Line 46: | Line 46: | ||
== 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}} | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|bedrock}} | |{{MC/HistoryLine|bedrock}} | ||
|{{HistoryLine||1.19.80|dev=Preview 1.19.80.21|Added {{ | |{{HistoryLine||1.19.80|dev=Preview 1.19.80.21|Added {{MC/Cmd|inputpermission|link=none}}.}} | ||
|{{HistoryLine||1.21.50|dev=Preview 1.21.50.20|Now the <code>permission: permission</code> argument of {{ | |{{HistoryLine||1.21.50|dev=Preview 1.21.50.20|Now the <code>permission: permission</code> argument of {{MC/Cmd|inputpermission|link=none}} command accepts more values.}} | ||
}} | }} | ||
| Line 63: | Line 63: | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/inputpermission | de:Befehl/inputpermission | ||
Latest revision as of 20:11, 9 April 2026
Script error: No such module "Exclusive". Template:Infobox command
Specify the operation for the player's input permission status, such as player movements, camera movements, and more.
Syntax
inputpermission query <targets: target> <permission: permission> [state: state]- Queries the status of the specified privilege of the target.
inputpermission set <targets: target> <permission: permission> <state: state>- Modifies the status of the specified privilege of the target.
Arguments
targets: target: CommandSelector<Player>
- Specifies the owner of the permission.
- {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|inapplicability}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
permission: permission: enum
- Specifies the authority for the operation.
- Must be one of the following:
- REDIRECT Template:Code
Template:Redr — Turn the camera view
- REDIRECT Template:Code
Template:Redr — Dismount
- REDIRECT Template:Code
Template:Redr — Jump and fly upward
- REDIRECT Template:Code
Template:Redr — Move
- REDIRECT Template:Code
Template:Redr — Mount
- REDIRECT Template:Code
Template:Redr — Move backward
- REDIRECT Template:Code
Template:Redr — Move forward
- REDIRECT Template:Code
Template:Redr — Move left
- REDIRECT Template:Code
Template:Redr — Move right
- REDIRECT Template:Code
Template:Redr — Move, sneak, jump, and fly
- REDIRECT Template:Code
Template:Redr — Sneak and fly downward
state: state: enum
- The status of the specified permission.
- Must be for
enabled(Enable) ordisabled(Disable). - For
... query ..., If not specified, all states are queried.
Results
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|}}
History
External links
de:Befehl/inputpermission ja:コマンド/inputpermission lzh:令/inputpermission pt:Comandos/inputpermission zh:命令/inputpermission