minecraft.wiki-mirror/wiki_backup/placefeature.txt
2024-12-24 10:56:43 -05:00

69 lines
2.9 KiB
Text

{{Outdated feature}}
{{Infobox command
| name = placefeature
| oplevel =
* 2 {{only|java|short=1}}
* 1 {{only|bedrock|short=1}}
|others=[[Options|Cheats]] only{{only|bedrock|short=1}}
}}
Places a [[feature]] at the specified location where meet the placement requirements.
== Syntax ==
* '''Java Edition'''
:<code>placefeature <feature> [<pos>]</code>
* '''Bedrock Edition'''
:<code>placefeature <featureName: Features> [position: x y z]</code>
:<code>placefeature <featureRule: featureRules> [position: x y z]</code>
== Arguments ==
{{el|je|short=1}}: {{argument|feature|resource}}<br>
{{el|be|short=1}}: {{argument|be=1|featureName: Features|enum}} or {{argument|be=1|featureRule: featureRules|enum}}
:{{IN|java}}, specifies the [[Custom feature|configured feature]] to place. Must be a [[resource location]].
:{{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 [[feature]] for IDs of vanilla features.
{{argument|pos|block_pos|position|CommandPosition}}
:Specifies the position of the origin for the feature to be placed.
:{{arg desc|je=block_pos|be=CommandPosition}}
== Result ==
{{Result table}}
{{Result table|the arguments are not specified correctly|unparseable|unparseable}}
{{Result table|the requirements for the selected feature are not met|fail|fail}}
{{Result table|there's no configured feature with the provided ID||N/A}}
{{Result table|cmd=/placefeature ... <pos>|<code><pos></code> is not loaded}}
{{Result table|cmd=|succeed|Generates the feature in the specified location}}
{{Result table}}
== Output ==
{{Output table}}
{{Output table|edition=je|On fail|0|0|0}}
{{Output table|On success|1|1|1}}
{{Output table|edition=be|On fail|0}}
{{Output table|On success|1}}
{{Output table}}
== History ==
{{HistoryTable
|{{HistoryLine|java}}
|{{HistoryLine||1.18.2|dev=22w03a|Added {{cmd|placefeature|link=none}}.}}
|{{HistoryLine|||dev=1.18.2-pre3|Changed from {{cd|resource_location}} to {{cd|resource}} [[argument type]] for the feature argument.}}
|{{HistoryLine||1.19|dev=22w18a|Removed {{cmd|placefeature|link=none}} in favor of {{cmd|place|link=commands/place (Java Edition)}}}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.18.30|dev=beta 1.18.20.25|Added {{cmd|placefeature|link=none}}. However, it may be removed again due to the commands being not 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 {{cmd|placefeature|link=none}} temporarily.}}
}}
== References ==
{{Reflist}}
== Navigation ==
{{Navbox commands}}
[[de:Befehl/placefeature]]
[[ja:コマンド/placefeature]]
[[pt:Comandos/placefeature]]
[[zh:命令/placefeature]]