Skip to main content

Feature and feature rule reference (11/14)

This page excerpts the reference from MS Learn (MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0). Relative links in the original are removed.

(Source: ms-learn, creator/Reference/Content/FeaturesReference/Examples/Features/minecraft_scan_surface.md)

Feature Documentation - minecraft:scan_surface​

[!IMPORTANT] This type is internal to vanilla Minecraft usage, and is not functional or supported within custom Minecraft content.

Searches for valid terrain surface positions before placing features. Scans downward from the generation height to find solid ground, then places the referenced feature at appropriate surface level. Essential for features like flowers, grass, and decorations that must sit on top of terrain regardless of elevation.

Scan Surface Properties​

NameDefault ValueTypeDescription
descriptionnot setDescription item
format_versionnot setString
Description​

Description Properties​

JSON path: description

NameDefault ValueTypeDescription
identifiernot setStringThe name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.

(Source: ms-learn, creator/Reference/Content/FeaturesReference/Examples/Features/minecraft_scatter_feature.md)

Feature Documentation - minecraft:scatter_feature​

Scatters a feature throughout a chunk. The x, y, and z fields are per-coordinate parameters. Coordinates represent an offset from the input position instead of an absolute position, and may be a single value, random distribution, or Molang expression that resolves to a numeric value. The coordinate_eval_order field is provided for finer control of coordinate resolution (particularly when using the grid distribution). iterations controls how many individual placements should occur if the scatter_chance check succeeds. The scatter_chance check happens once, so either all placements will run or none will. Succeeds if At least one feature placement succeeds. Fails if all feature placements fail.

[!Note] In format version 1.21.20 and later, the distribution field was introduced to consolidate scatter parameters. Prior versions use x, y, z, iterations, and scatter_chance fields directly at the root level of the feature.

[!Note] This item requires a format version of at least 1.20.30.

Scatter Feature Properties​

NameDefault ValueTypeDescription
descriptionnot setDescription item
distributionnot setObjectParameters controlling the scatter of the feature. Object of type ScatterParams This item requires a format version of at least 1.21.20.
format_versionnot setString
project_input_to_floornot setBoolean true/falseIf true, snaps the y-value of the scattered position to the terrain heightmap. If false or unset, y-value is unmodified.
Description​

Description Properties​

JSON path: description

NameDefault ValueTypeDescription
identifiernot setStringThe name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.

Samples​

Example​

At Legacy format (pre-1.21.20) with scatter parameters at root level:

"minecraft:scatter_feature": {
"format_version": "1.13.0",
"minecraft:scatter_feature": {
"description": {
"identifier": "example:scatter_tall_grass_feature"
},
"places_feature": "example:tall_grass_feature",
"iterations": 90,
"x": {
"distribution": "gaussian",
"extent": [
-8,
8
]
},
"y": {
"distribution": "gaussian",
"extent": [
-4,
4
]
},
"z": {
"distribution": "gaussian",
"extent": [
-8,
8
]
},
"coordinate_eval_order": "zyx"
}
}

At Modern format (1.21.20+) using the distribution field:

"minecraft:scatter_feature": {
"format_version": "1.21.20",
"minecraft:scatter_feature": {
"description": {
"identifier": "example:scatter_flowers_feature"
},
"places_feature": "example:flower_feature",
"distribution": {
"iterations": 10,
"scatter_chance": 50,
"x": {
"distribution": "uniform",
"extent": [
0,
15
]
},
"y": 64,
"z": {
"distribution": "uniform",
"extent": [
0,
15
]
}
}
}
}

(Source: ms-learn, creator/Reference/Content/FeaturesReference/Examples/Features/minecraft_sculk_patch_feature.md)

Feature Documentation - minecraft:sculk_patch_feature​

[!IMPORTANT] This type is internal to vanilla Minecraft usage, and is not functional or supported within custom Minecraft content.

Generates clusters of sculk blocks with veins spreading across surfaces, as found in Deep Dark biomes and Ancient Cities. Configure patch size, spread pattern, and catalyst generation. Creates the distinctive dark blue organic growth that defines sculk-infected underground areas.

Sculk Patch Feature Properties​

NameDefault ValueTypeDescription
can_place_sculk_patch_onnot setArray of strings
charge_amountnot setInteger number
cursor_countnot setInteger number
descriptionnot setDescription item
format_versionnot setString
growth_roundsnot setInteger number
spread_attemptsnot setInteger number
spread_roundsnot setInteger number
Description​

Description Properties​

JSON path: description

NameDefault ValueTypeDescription
identifiernot setStringThe name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.

(Source: ms-learn, creator/Reference/Content/FeaturesReference/Examples/Features/minecraft_search_feature.md)

Feature Documentation - minecraft:search_feature​

Sweeps a volume searching for a valid placement location for its referenced feature. The search_volume field specifies the axis-aligned bounding box that defines the boundaries of the search. The search sweeps along the axis defined by the search_axis field, layer by layer. For example, if search_axis is set to -x, blocks with greater x values will be checked before blocks with lower x values. Each layer is searched from the bottom-left to the top-right before moving to the next layer along the axis. By default, only one valid position must be found, but this can be altered by specifying the required_successes field. If fewer than the required successes are found, no placement will occur. Succeeds if the number of valid positions is equal to the value specified by required_successes. Fails if the number of valid positions is less than the value specified by required_successes.

[!Note] This item requires a format version of at least 1.20.30.

Search Feature Properties​

NameDefault ValueTypeDescription
descriptionnot setDescription item
format_versionnot setString
required_successesnot setInteger numberNumber of valid positions the search must find in order to place the referenced feature
search_axis"<"-x", "+x", "-y", "+y", "-z", "+z"not setStringAxis that the search will sweep along through the 'search_volume'
search_volumenot setSearch Volume itemAxis-aligned bounding box that will be searched for valid placement positions. Expressed as offsets from the input position.
Description​

Description Properties​

JSON path: description

NameDefault ValueTypeDescription
identifiernot setStringThe name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.
Search Volume​

Search Volume Properties​

JSON path: search_volume

NameDefault ValueTypeDescription
[0..0]not setInteger numberx_min
[0..0] (Alternate 1)not setInteger numberx_max
[1..1]not setInteger numbery_min
[1..1] (Alternate 1)not setInteger numbery_max
[2..2]not setInteger numberz_min
[2..2] (Alternate 1)not setInteger numberz_max
maxnot setArray of stringsMaxium extent of the bounding volume expressed as [ x, y, z ]
minnot setArray of stringsMinimum extent of the bounding volume expressed as [ x, y, z ]

Samples​

Example​

"minecraft:search_feature": {
"format_version": "1.13.0",
"minecraft:search_feature": {
"description": {
"identifier": "example:find_valid_apples_feature"
},
"places_feature": "example:apple_feature",
"search_volume": {
"min": [
-3,
-3,
-3
],
"max": [
3,
3,
3
]
},
"search_axis": "-y",
"required_successes": 3
}
}

(Source: ms-learn, creator/Reference/Content/FeaturesReference/Examples/Features/minecraft_sequence_feature.md)

Feature Documentation - minecraft:sequence_feature​

Places a collection of features sequentially, in the order they appear in data. The output position of the previous feature is used as the input position for the next. For example, a tree feature is placed at (0, 0, 0) and places blocks up to (0, 10, 0). The next feature in the sequence begins at (0, 10, 0). Succeeds if all features in the sequence are successfully placed. Fails if any feature in the sequence fails to be placed. Features that have not yet been placed at the time of failure are skipped.

[!Note] This item requires a format version of at least 1.20.30.

Sequence Feature Properties​

NameDefault ValueTypeDescription
descriptionnot setDescription item
featuresnot setArray of stringsList of features to be placed in sequence. The output position of the previous feature is used as the input position to the next.
format_versionnot setString
Description​

Description Properties​

JSON path: description

NameDefault ValueTypeDescription
identifiernot setStringThe name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.

Samples​

Example​

"minecraft:sequence_feature": {
"format_version": "1.13.0",
"minecraft:sequence_feature": {
"description": {
"identifier": "example:oak_tree_then_apples_feature"
},
"features": [
"example:oak_tree_feature",
"example:scatter_apples_feature"
]
}
}

(Source: ms-learn, creator/Reference/Content/FeaturesReference/Examples/Features/minecraft_single_block_feature.md)

Feature Documentation - minecraft:single_block_feature​

Places a single block in the world. The places_block field supports a single block or a list of weighted blocks, where the weight defines how likely it is for that block to be selected. The may_attach_to and may_replace fields are allowlists which specify where the block can be placed. If these fields are omitted, the block can be placed anywhere. The may_not_attach_to field is a denylist that specifies what blocks can't be close to the placement location. The randomize_rotation field will randomize the block's cardinal orientation. The block's internal survivability and placement rules can optionally be enforced with the enforce_survivability_rules and enforce_placement_rules fields. These rules are specified per-block and are typically designed to produce high quality gameplay or natural behavior. However, enabling this enforcement may make it harder to debug placement failures. Succeeds if the block is successfully placed in the world. Fails if the block fails to be placed. Example use: Placing a single pumpkin or carved pumpkin block where carved pumpkins are less likely to appear.

[!Note] This item requires a format version of at least 1.20.30.

Single Block Feature Properties​

NameDefault ValueTypeDescription
descriptionnot setDescription item
enforce_placement_rulesnot setBoolean true/falseIf true, enforce the block's canPlace check.
enforce_survivability_rulesnot setBoolean true/falseIf true, enforce the block's canSurvive check.
format_versionnot setString
may_attach_tonot setMay Attach To itemAllowlist which specifies where the block can be placed.
may_not_attach_tonot setMay Not Attach To itemDenylist which specifies where the block can't be placed.
may_replacenot setArray of strings
places_blocknot setArray of Places Block items
places_block (as Object)not setObjectReference to the block to be placed.
places_block (as Array of strings)not setArray of strings
randomize_rotationnot setBoolean true/falseIf true, randomizes the block's cardinal orientation.
Description​

Description Properties​

JSON path: description

NameDefault ValueTypeDescription
identifiernot setStringThe name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.
May Attach To​

May Attach To Properties​

JSON path: may_attach_to

NameDefault ValueTypeDescription
allnot setArray of strings
auto_rotatenot setBoolean true/falseAutomatically rotate the block to attach sensibly. This setting is ignored if 'randomize_rotation' is enabled.
bottomnot setArray of strings
diagonalnot setArray of strings
eastnot setArray of strings
min_sides_must_attachnot setInteger numberNumber of side faces that need to pass the attach conditions before the block can be placed. Default value is four.
northnot setArray of strings
sidesnot setArray of strings
southnot setArray of strings
topnot setArray of strings
westnot setArray of strings
May Not Attach To​

May Not Attach To Properties​

JSON path: may_not_attach_to

NameDefault ValueTypeDescription
allnot setArray of strings
bottomnot setArray of strings
diagonalnot setArray of strings
eastnot setArray of strings
northnot setArray of strings
sidesnot setArray of strings
southnot setArray of strings
topnot setArray of strings
westnot setArray of strings
Places Block​

Places Block Properties​

JSON path: places_block

NameDefault ValueTypeDescription
blocknot setObjectReference to the block to be placed.

Samples​

Example​

"minecraft:single_block_feature": {
"format_version": "1.21.40",
"minecraft:single_block_feature": {
"description": {
"identifier": "example:single_pumpkin_feature"
},
"places_block": [
{
"block": "minecraft:pumpkin",
"weight": 5
},
{
"block": "minecraft:carved_pumpkin",
"weight": 1
}
],
"randomize_rotation": true,
"enforce_survivability_rules": true,
"enforce_placement_rules": true,
"may_attach_to": {
"auto_rotate": false,
"min_sides_must_attach": 1,
"south": [
"minecraft:grass",
"minecraft:dirt"
]
},
"may_not_attach_to": {
"south": {
"name": "minecraft:dirt",
"states": {
"dirt_type": "coarse"
}
}
}
}
}

(Source: ms-learn, creator/Reference/Content/FeaturesReference/Examples/Features/minecraft_snap_to_surface_feature.md)

Feature Documentation - minecraft:snap_to_surface_feature​

Snaps the y-value of a feature placement pos to the floor or the ceiling within the provided vertical_search_range. The placement biome is preserved. If the snap position goes outside of the placement biome, placement will fail.

[!Note] This item requires a format version of at least 1.20.30.

Snap To Surface Feature Properties​

NameDefault ValueTypeDescription
allow_air_placementnot setBoolean true/falseDetermines whether the feature can snap through air blocks. Defaults to true.
allow_non_air_placementnot setBoolean true/falseDetermines whether the feature can snap through non air blocks. Defaults to false, is only used if the snap is started in a block that is not water or air.
allow_underwater_placementnot setBoolean true/falseDetermines whether the feature can snap through water blocks. Defaults to false.
allowed_surface_blocksnot setArray of stringsA list of blocks that the feature is permitted to snap to. Leaving this empty results in the feature snapping to blocks that can provide support for the given face (up/down/horizontal)
descriptionnot setDescription item
embed_in_surfacefalseBoolean true/falseIf true, the snapped feature is embedded into the located surface block instead of being placed on top of it. This item requires a format version of at least 1.26.20.
format_versionnot setString
search_rangenot setInteger numberRange to search for a valid snapping position for the feature.
surfacenot setStringDefines the surface that the y-value of the placement position will be snapped to. Valid values: 'ceiling', 'floor', 'random_horizontal' and wall
Description​

Description Properties​

JSON path: description

NameDefault ValueTypeDescription
identifiernot setStringThe name of this feature in the form 'namespace_name:feature_name'. 'feature_name' must match the filename.

Samples​

Example​

"minecraft:snap_to_surface_feature": {
"format_version": "1.13.0",
"minecraft:snap_to_surface_feature": {
"description": {
"identifier": "example:cave_vine_snapped_to_ceiling_feature"
},
"feature_to_snap": "example:cave_vine_feature",
"vertical_search_range": 12,
"surface": "ceiling",
"allowed_surface_blocks": {
"name": "minecraft:cobblestone"
}
}
}
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13