본문으로 건너뛰기

피처와 피처 룰 레퍼런스 (3/14)

MS Learn(MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0)의 레퍼런스를 발췌한 쪽이다. 원문의 상대 링크는 제거했다.

(출처: ms-learn, creator/Documents/FeaturesTaxonomy.md)

Features Types​

When thinking about features, it may be helpful to consider grouping them according to what each one has in common, how they are used, and how they are different from other features.

This list is taken from the Feature List and is arranged with the categories sorted from the (arguably) least to most complex.

CategoryFeaturesUse
Natural Featuresfossil<br /> geode<br /> growing plant<br /> ore<br />partially exposed blob<br />tree<br />vegetation patch<br />Adds a feature similar to a vanilla feature to the world.
Terrain Featurescave carver<br /> nether cave carver<br /> underwater cave carver<br />Cuts holes into underground terrain.
Block Placersmultiface<br /> single block<br /> structure template<br />Places a feature relative to the surface of a block.
Conditional Placementscatter<br /> search<br /> snap to surface<br /> surface relative threshold<br /> weighted random<br />Places features according to a given criteria for placement.
Groupingaggregate<br /> sequence<br />Provides a way to place features relative to other features.

Natural Features​

The features in the 'Natural Features' category are things a player can see when playing a vanilla Minecraft world. Trees, and growing plants are common and easily visible from the moment a player spawns in, although the schema for trees is richly complex. If a creator wants to add a new type of ore or a new kind of geode, this is where they should start.

Aside from trees, growing plants, and vegetation patches, this is the category to start if you want to put your own ore, geodes, fossils, and even something similar to the partially exposed blocks of magma rock that bubble on the ocean floor.

The names of these features immediately evoke their use for someone beginning a journey to work with features.

This is just a typical image from Minecraft. As a creator, you can create your own versions of these features: trees, flowers, growing plants, and a pumpkin.

Terrain Features​

The three cave carver features (cave, underwater cave, and nether cave) obviously belong together, they're just intended for different parts of Minecraft and the resulting caves are filled with air or water source blocks, accordingly.

Helpful hint: before you start working with cave carvers, take a look at the structure block tutorial. One of the ways to use a structure block is take a "core sample" of the world. You could do this to see if the sample has your intended cave in it.

You could also change the replacement blocks from "air" to something like "diamond blocks" so you can tell your caves from the naturally occurring ones.

Block Placers​

Using single block, multiface, and structure template features make sense for placing a single block (like a carved pumpkin) or something like glow lichen on multiple surface of a block.

After you make it through the structure block tutorial, using the structure_template feature to put copies of your structure into a world is a logical next step. In fact, if you don't mind a bit of obviously "cut and paste" appearance, you could put your naturally occurring features into a structure and place it in the world like that.

Conditional Placement​

If you do not want a "copy and paste" appearance to your features, this is the category for you. These are the features that handle the complexity of placing your simpler features in a world. After you create your own tree, flower, vine, or whatever, you can search for scatter them in a world or snap them to the ceiling of a cave according to how you want them placed.

In fact, you can search for the perfect place for them to go, place them relative to the surface of the ground, and control the chances they will be spawned in and thus control their density.

Different placement features can search according to criteria (such as viable block type) and calculate the chance that the placement will occur. If you want glow lichen to appear on the 5 percent of the walls or ceiling of a cave, then conditional placement features, such as weighted_random handle that for you.

It depends on the effect you're going for.

Grouping​

Finally, the aggregate_feature and sequence_feature functionality comes in when you want to control how custom features are placed relative to other custom features.

Although the code for these two looks very similar, they are basically just lists of the features to be placed, they work quite differently.

Features being placed in a sequence rely on the successful placement of the feature listed in the code before it. For example, if a creator wants to celebrate the science of grafting trees by making an oak tree grow apples, it's going to take a bit of consideration about the timing. The oak trees will need to exist so that Minecraft can find them. After an oak tree is successfully found, an apple block is attached to it.

The key is: in a sequence_feature, the position of the successfully placed feature is used as the input position for where the next successful feature will be placed.

If you change the sequence feature in the behavior pack to be an aggregate, the placement of apple blocks no longer relies on finding a tree. They just happen.

The features listed in the aggregate_feature all use the same starting position and they do not rely on each other. Each feature in the aggregated list has its own placement criteria, so certain features may be placed and others will not.

For example, an aggregate list containing sugar cane and bamboo would place these plants differently according to their placement criteria. Sugar cane requires placement on sand or grass or dirt next to water. Bamboo can be placed on sand or grass or dirt, but it does not need water next to it. Neither plant relies on the successful placement of each other.

Thinking about Features​

So, each feature has its appearance and use. For example, a typical tree is made of logs and leaves. Trees also have their own conditional placement criteria, like oak trees can't grow on gravel or upside down or under water. Trees also have criteria about being spaced out from one another and certain ones grow in some biomes but not others.

This is one of those subjects that, after you work with it for a while, you look at a Minecraft world a bit differently, as a player. You may wander through a cave and see the placement of glow lichen and ore and you wonder how did they do that?

And then maybe your next thought it how can I do that? ... and now you know where to start.

(출처: ms-learn, creator/Reference/Content/FeatureRulesReference/Examples/FeatureRulesComponents/feature_rules_document.md)

Feature Rules Documentation - minecraft:feature_rules_document​

A Minecraft Bedrock Edition feature rules definition document. Feature rules control where world generation features (like trees, ores, and structures) are placed in the world based on biome conditions.

Feature Rules Document Properties​

NameDefault ValueTypeDescription
format_versionnot setVersionThe format version of this feature rules file. Use '1.13.0' or later.
minecraft:feature_rulesnot setFeature Rules itemThe feature rules definition containing description and conditions.
Feature Rules​

Feature Rules Definition Properties​

JSON path: minecraft:feature_rules

NameDefault ValueTypeDescription
conditionsnot setObjectConditions that control where the feature is placed.
descriptionnot setDescription itemContains the identifier and the feature to place.

Description​

Feature Rules Description Properties​

JSON path: minecraft:feature_rules > description

NameDefault ValueTypeDescription
identifiernot setBoolean true/falseThe unique identifier for this feature rule.
places_featurenot setBoolean true/falseThe identifier of the feature to place.

(출처: ms-learn, creator/Reference/Content/FeatureRulesReference/Examples/FeatureRulesList.md)

Feature Rules Documentation​

Feature RulesDescription
feature_rules_documentA Minecraft Bedrock Edition feature rules definition document.
출처
id출처라이선스커밋접근일
ms-learnMinecraft Creator 문서 (Microsoft Learn)CC BY 4.0 (문서), MIT (코드)a9fd1c02026-11-13