細編集の要約なし |
編集の要約なし |
||
1行目: | 1行目: | ||
− | <includeonly>{{#vardefine:onlyje|{{#if:{{{be|}}}|{{IN|java}} |
+ | <includeonly>{{#vardefine:onlyje|{{#if:{{{be|}}}|{{IN|java}}、|}}}}{{#vardefine:onlybe|{{#if:{{{je|}}}|{{IN|bedrock}}、|}}}}{{#vardefine:je-arg|{{lc:{{#explode:{{{je|}}}|:|-1}}}}}}{{#vardefine:be-arg|{{#switch:{{lc:{{{be}}}}} |
|actordefinitionidentifier|entitytype=entity_summon |
|actordefinitionidentifier|entitytype=entity_summon |
||
|agentcommand::mode=inapplicability |
|agentcommand::mode=inapplicability |
||
73行目: | 73行目: | ||
|long=Must be a {{nbt|long}} 64-bit long. |
|long=Must be a {{nbt|long}} 64-bit long. |
||
|string=Must be a string. {{#if:{{#var:je-arg}}|{{#switch:{{{type}}}|word={{#var:onlyje|And}} it must be in a single word (no spaces).|phrase={{#var:onlyje|And}} it must be a quotable phrase (either single word or quoted string).|greedy={{#var:onlyje|And}} it must be a greedy phrase (taking the rest of the command as the string argument).}}}} |
|string=Must be a string. {{#if:{{#var:je-arg}}|{{#switch:{{{type}}}|word={{#var:onlyje|And}} it must be in a single word (no spaces).|phrase={{#var:onlyje|And}} it must be a quotable phrase (either single word or quoted string).|greedy={{#var:onlyje|And}} it must be a greedy phrase (taking the rest of the command as the string argument).}}}} |
||
+ | |angle=ヨー角を、浮動小数点数を用いて度単位で指定する。-180.0が真北、-90.0が真東、0.0が真南、90.0が真西であり、179.9は真北からほんの少し西側となる。チルダ表記法を使用することができ、コマンドの実行者のヨー角を基準とする相対値を指定できる。 |
||
− | |angle=Must be a yaw angle, measured in degrees with float number. -180.0 for due north, -90.0 for due east, 0.0 for due south, 90.0 for due west, to 179.9 for just west of due north, before wrapping back around to -180.0. Tilde notation can be used to specify a rotation relative to the executor's yaw angle. |
||
|block_pos={{#if:{{#var:je-arg}}|{{#if:{{#var:be-arg}}|{{#var:onlyje}} it|It}} must be a [[Coordinates#Block position|block position]] composed of <x>, <y> and <z>, each of which must be an integer or [[Commands#Tilde and caret notation|tilde and caret notation]].}}{{#if:{{#var:be-arg}}|{{#if:{{#var:je-arg}}|{{#var:onlybe}} it|It}} must be a three-dimensional coordinates composed of <x>, <y> and <z>, each of which must be a floating-point number or [[Commands#Tilde and caret notation|tilde and caret notation]].}} |
|block_pos={{#if:{{#var:je-arg}}|{{#if:{{#var:be-arg}}|{{#var:onlyje}} it|It}} must be a [[Coordinates#Block position|block position]] composed of <x>, <y> and <z>, each of which must be an integer or [[Commands#Tilde and caret notation|tilde and caret notation]].}}{{#if:{{#var:be-arg}}|{{#if:{{#var:je-arg}}|{{#var:onlybe}} it|It}} must be a three-dimensional coordinates composed of <x>, <y> and <z>, each of which must be a floating-point number or [[Commands#Tilde and caret notation|tilde and caret notation]].}} |
||
|block_predicate={{#if:{{#var:be-arg}}|{{#var:onlyje}} it|It}} must be a [[Command#<block>|block argument]] (accepts block tags). {{#if:{{#var:be-arg}}|{{#var:onlybe}} it must be a [[Bedrock_Edition_data_value|block id]].}} |
|block_predicate={{#if:{{#var:be-arg}}|{{#var:onlyje}} it|It}} must be a [[Command#<block>|block argument]] (accepts block tags). {{#if:{{#var:be-arg}}|{{#var:onlybe}} it must be a [[Bedrock_Edition_data_value|block id]].}} |
||
112行目: | 112行目: | ||
|uuid=Must be a [[UUID]] in the [[UUID#Representation|hyphenated hexadecimal format]]. Allowed characters include:<ul><li>{{cd|-}}</li><li>{{cd|A|F|delimiter=-}}</li><li>{{cd|a|f|delimiter=-}}</li><li>{{cd|0|9|delimiter=-}}</li></ul> |
|uuid=Must be a [[UUID]] in the [[UUID#Representation|hyphenated hexadecimal format]]. Allowed characters include:<ul><li>{{cd|-}}</li><li>{{cd|A|F|delimiter=-}}</li><li>{{cd|a|f|delimiter=-}}</li><li>{{cd|0|9|delimiter=-}}</li></ul> |
||
|vec2=Must be a two-dimensional coordinates with floating-point number elements. Accepts [[Commands#Tilde_and_caret_notation|tilde and caret notations]]. |
|vec2=Must be a two-dimensional coordinates with floating-point number elements. Accepts [[Commands#Tilde_and_caret_notation|tilde and caret notations]]. |
||
+ | |vec3=浮動小数点数で構成される3次元座標でなければならない。[[コマンド#チルダ・キャレット表記法|チルダ・キャレット表記法]]を使用できる。 |
||
− | |vec3=Must be a three-dimensional coordinates with floating-point number elements. Accepts [[Commands#Tilde_and_caret_notation|tilde and caret notations]]. |
||
|unknown=This argument has no type. It may be a bug in the game's code. |
|unknown=This argument has no type. It may be a bug in the game's code. |
||
|{{error|Arg desc: Illegal parameters}}}}<!-- |
|{{error|Arg desc: Illegal parameters}}}}<!-- |
||
− | -->|{{error|Arg desc: |
+ | -->|{{error|Arg desc: Illegal parameters}}}}</includeonly><noinclude> |
{{documentation}} |
{{documentation}} |
||
+ | <!-- Put categories/interwiki on the documentation page --> |
||
− | <!-- カテゴリと言語間リンクはここではなく、解説ページに追加してください --> |
||
</noinclude> |
</noinclude> |
2020年9月6日 (日) 12:10時点における版
このテンプレートは、各コマンドの引数の種類に関する書式の説明を表示するためのものです。
パラメータ
|je=
:Java Editionでの引数の種類
|be=
:Bedrock Editionでの引数の種類
例
{{arg desc|je=item_predicate}} {{arg desc|je=vec2|be=RelativeFloat}} {{arg desc|je=float|max=5.0|min=1.0|be=float}} {{arg desc|je=entity|amount=single|type=entities|be=actor}}
It must be a item argument (accepts item tags).
Must be a two-dimensional coordinates with floating-point number elements. Accepts tilde and caret notations.
Must be a Single-precision floating-point format number. Java Editionでは、 it must be between 1.0 and 5.0 (inclusive).
Must be a player name, a target selector or a UUID[Java Edition限定]. Java Editionでは、 the target selector must be of single type.
関連項目
{{argument}}
[閲覧 | 編集 | 履歴 | キャッシュ破棄]上記の解説は、テンプレート:Arg desc/docから参照されています。