4 ‐ Dimension and Biome Hatches - Alecsioo/MMCE-Addons GitHub Wiki
Dimension and Biome Hatches
Dimension Hatches and Biome Hatches are used to define specific environmental conditions under which a craft can occur. They ensure that the required dimension or biome is met before allowing the multiblock structure to start crafting.
Dimension Hatch
A Dimension Hatch defines a dimension requirement. The multiblock should be located in the specified dimension for the craft to begin.
Example JSON for Dimension Hatch:
{
"type": "modularmachineryaddons:dimension",
"io-type": "input",
"id": 0
}
- type: Must be
"modularmachineryaddons:dimension"
, which identifies the requirement type. - io-type: Defines whether the requirement is for input (
"input"
). - id: The ID of the dimension. For example,
0
is the Overworld,-1
is the Nether, and1
is the End.
Biome Hatch
A Biome Hatch is similar to the dimension hatch, but with a focus on the biome. The multiblock must be in a location where at least one of the biome hatches matches the biome defined in the recipe.
Example JSON for Biome Hatch:
{
"type": "modularmachineryaddons:biome",
"io-type": "input",
"biomeRegistryName": "minecraft:desert"
}
- type: Must be
"modularmachineryaddons:biome"
, which identifies the requirement type. - io-type: Defines whether the requirement is for input (
"input"
). - biomeRegistryName: The registry name of the biome to check for (e.g.,
"minecraft:desert"
).
ZS Integration
Information on how to add requirements through ZenScript can be found here