Minecraft:Commands/placefeature: Difference between revisions
More actions
imported>RedX Removing link parameter which is a redirect |
Fix template calls: add MC/ prefix |
||
| (One intermediate revision by the same user not shown) | |||
| Line 6: | Line 6: | ||
* 2 {{only|java|short=1}} | * 2 {{only|java|short=1}} | ||
* 1 {{only|bedrock|short=1}} | * 1 {{only|bedrock|short=1}} | ||
|others= | |others=Cheats only{{only|bedrock|short=1}} | ||
}} | }} | ||
| Line 20: | Line 20: | ||
== Arguments == | == Arguments == | ||
{{ | {{MC/El|je|short=1}}: {{MC/Argument|feature|resource}}<br> | ||
{{ | {{MC/El|be|short=1}}: {{MC/Argument|be=1|featureName: Features|enum}} or {{MC/Argument|be=1|featureRule: featureRules|enum}} | ||
:{{ | :{{MC/In|java}}, specifies the configured feature to place. Must be a resource location. | ||
:{{ | :{{MC/In|bedrock}}, specifies the feature to place. Must be an namespaced ID of a feature rule or feature. If both a feature rule with the specified ID and a feature with the ID exist, the feature rule is placed. | ||
:See [[Minecraft:feature]] for IDs of vanilla features. | :See [[Minecraft:feature]] for IDs of vanilla features. | ||
{{ | {{MC/Argument|pos|block_pos|position|CommandPosition}} | ||
:Specifies the position of the origin for the feature to be placed. | :Specifies the position of the origin for the feature to be placed. | ||
:{{ | :{{MC/Arg desc|je=block_pos|be=CommandPosition}} | ||
== Result == | == Result == | ||
| Line 40: | Line 40: | ||
== Output == | == Output == | ||
{{Output table}} | {{MC/Output table}} | ||
{{Output table|edition=je|On fail|0|0|0}} | {{MC/Output table|edition=je|On fail|0|0|0}} | ||
{{Output table|On success|1|1|1}} | {{MC/Output table|On success|1|1|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 == | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.18.2|dev=22w03a|Added {{ | |{{HistoryLine||1.18.2|dev=22w03a|Added {{MC/Cmd|placefeature|link=none}}.}} | ||
|{{HistoryLine|||dev=1.18.2-pre3|Changed from {{ | |{{HistoryLine|||dev=1.18.2-pre3|Changed from {{MC/Cd|resource_location}} to {{MC/Cd|resource}} argument type for the feature argument.}} | ||
|{{HistoryLine||1.19|dev=22w18a|{{ | |{{HistoryLine||1.19|dev=22w18a|{{MC/Cmd|placefeature|link=none}} has been replaced with {{MC/Cmd|place}}.}} | ||
}} | }} | ||
=== ''Bedrock Edition'' === | === ''Bedrock Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|bedrock}} | |{{MC/HistoryLine|bedrock}} | ||
|{{HistoryLine||1.18.30|dev=beta 1.18.20.25|Added {{ | |{{HistoryLine||1.18.30|dev=beta 1.18.20.25|Added {{MC/Cmd|placefeature|link=none}}. The command has not been fully implemented.<ref>{{tweet|MattGartzke|1491601001618366467|@MCPE4theBeacon Not quite ready for full implementation. You might see it go away in the next beta, but the team is still working hard on it!}}</ref>}} | ||
|{{HistoryLine|||dev=Preview 1.18.20.28|Removed {{ | |{{HistoryLine|||dev=Preview 1.18.20.28|Removed {{MC/Cmd|placefeature|link=none}}.}} | ||
}} | }} | ||
== References == | == References == | ||
{{Reflist}} | {{MC/Reflist}} | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/placefeature | |||
ja:コマンド/placefeature | |||
pt:Comandos/placefeature | |||
zh:命令/placefeature | |||
Latest revision as of 20:12, 9 April 2026
Places a Minecraft:feature at the specified location where meet the placement requirements.
Syntax
- Java Edition
placefeature <feature> [<pos>]
- Bedrock Edition
placefeature <featureName: Features> [position: x y z]placefeature <featureRule: featureRules> [position: x y z]
Arguments
- REDIRECT Template:Edition
Template:Rcat: <feature>: resource
- REDIRECT Template:Edition
Template:Rcat: featureName: Features: enum or featureRule: featureRules: enum
- in Template:Editions, specifies the configured feature to place. Must be a resource location.
- in Template:Editions, specifies the feature to place. Must be an namespaced ID of a feature rule or feature. If both a feature rule with the specified ID and a feature with the ID exist, the feature rule is placed.
- See Minecraft:feature for IDs of vanilla features.
Template:El: <pos>: block_pos
Template:El: position: CommandPosition
- Specifies the position of the origin for the feature to be placed.
- {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|block_pos}}{{#vardefine:be-arg|block_pos}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
Result
Template:Result table Template:Result table 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}}|0}}{{#vardefine:output3-{{#var:output-table-lines}}|0}}{{#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}}|je}}{{#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}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1}}{{#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: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
Java Edition
Bedrock Edition
References
<references group="">
</references>
de:Befehl/placefeature ja:コマンド/placefeature pt:Comandos/placefeature zh:命令/placefeature