Skip to content

Ore Node Structure Definition

BeeIsYou edited this page Dec 8, 2024 · 1 revision

Ore nodes are internally created as structures, which are then placed by a structure set

The json for the structure determines what it is made out of

  • type: Must be deepdrilling:ore_node to actually be an ore node structure
  • ore_node: An object containing the resource locations of what blocks to use
    • nodeID: The block that replaces bedrock at the very bottom of the world
    • ores: A non-empty list containing the blocks to use for the bottom half of the surface deposit
    • layers A non-empty list containing the blocks to use for the top half of the surface deposit, and the spherical layers for the ore node at bottom of the world
  • biomes: (vanilla) The biome, list of biomes, or biome tag that determine where it is allowed to generate
  • step: (vanilla) What step of world generation to try and place this. Should probably be underground_decoration idk how much it matters
  • spawn_overrides: (vanilla) Overrides what mobs can spawn in the structure. Can be empty ({})

For example, deepdrilling/worldgen/structure/asurine_node.json is

{
  "type": "deepdrilling:ore_node",
  "biomes": "#deepdrilling:asurine_node",
  "step": "underground_decoration",
  "spawn_overrides": {},
  "ore_node": {
    "nodeID": "deepdrilling:asurine_node",
    "ores": [
      "create:zinc_ore"
    ],
    "layers": [
      "create:asurine",
      "minecraft:tuff",
      "minecraft:calcite"
    ]
  }
}

Clone this wiki locally