Edit

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

Name Default Value Type Description
description not set Description item
distribution not set Object Parameters controlling the scatter of the feature. Object of type ScatterParams This item requires a format version of at least 1.21.20.
format_version not set String
project_input_to_floor not set Boolean true/false If 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

Name Default Value Type Description
identifier not set String The 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
        ]
      }
    }
  }
}