movblock.mov

hbmspace:substitute

Surface rule replacing chosen results of another rule.

The rule runs rule and replaces a result equal to a from state with its to state; other results pass unchanged. A repeated from uses its last entry.

Fields

FieldMeaning and default
typehbmspace:substitute.
ruleMaterial rule of any type.
replacementsList of state replacements.

Example

From data/hbmspace/worldgen/noise_settings/duna.json:

{
  "type": "hbmspace:substitute",
  "replacements": [
    {
      "from": {
        "Name": "minecraft:terracotta"
      },
      "to": {
        "Name": "hbmspace:duna_rock"
      }
    },
    {
      "from": {
        "Name": "minecraft:orange_terracotta"
      },
      "to": {
        "Name": "minecraft:red_terracotta"
      }
    },
    {
      "from": {
        "Name": "minecraft:yellow_terracotta"
      },
      "to": {
        "Name": "minecraft:red_terracotta"
      }
    },
    {
      "from": {
        "Name": "minecraft:brown_terracotta"
      },
      "to": {
        "Name": "minecraft:red_terracotta"
      }
    },
    {
      "from": {
        "Name": "minecraft:white_terracotta"
      },
      "to": {
        "Name": "minecraft:red_terracotta"
      }
    },
    {
      "from": {
        "Name": "minecraft:light_gray_terracotta"
      },
      "to": {
        "Name": "minecraft:red_terracotta"
      }
    }
  ],
  "rule": {
    "type": "minecraft:bandlands"
  }
}

© 2026 movblock. Original site text is licensed under CC BY-SA 4.0 unless otherwise noted. Built with Fumadocs.

On this page