Skip to content

Placement Modifier: Minecraft: Height Range

DerFrZocker edited this page May 7, 2023 · 3 revisions

Table of Contents

  1. Description
  2. Settings
    1. Height
  3. Example Settings
  4. File Configuration

Description

Key: minecraft:height_range

The height range placement modifier will take a location and outputs the locations with the y value set to the one of the height range setting.

Settings

Height

Value-Type: Integer
Value-Range: (-∞, ∞)

The height determines to which value the y-axis of the location should be set. In vanilla this setting is usually used with the feature:trapezoid_integer or feature:uniform_integer value type.

Example Settings

Example features with feature:trapezoid_integer as height setting value type:

Feature Heigt
Min Inclusive Max Inclusive Plateau
minecraft:ore_ancient_debris_large 8 24 0
minecraft:ore_coal_lower 0 192 0
minecraft:ore_copper -16 112 0
minecraft:ore_iron_middle -24 56 0
minecraft:ore_emerald -16 480 0
minecraft:ore_gold -64 32 0

Example features with feature:uniform_integer as height setting value type:

Feature Heigt
Min Inclusive Max Inclusive
minecraft:ore_blackstone 5 31
minecraft:ore_gold_lower -64 -48
minecraft:ore_granite_upper 64 128
minecraft:ore_diamond -80 80
minecraft:ore_gravel_nether 5 41
minecraft:ore_magma 27 36

File Configuration

Configuration

"height": <integer value>,
"placement_modifier_type": "minecraft:height_range"

Full Example

"placement_modifier_configurations": [
  {
    "height": {
      "height_range_type": "feature:fixed_double_to_integer",
      "value": 2.0
    },
    "placement_modifier_type": "minecraft:height_range"
  }
]

Clone this wiki locally