6 ‐ Meteor Hatch - Alecsioo/MMCE-Addons GitHub Wiki
Meteor Hatch
The Meteor Hatch is a custom output hatch provided by Modular Machinery Addons that enables multiblock machines to trigger meteor events as defined by Blood Magic.
Overview
This hatch allows a multiblock structure to spawn any meteor registered in Blood Magic. Each meteor is associated with a specific catalyst item, which serves as the input for the meteor ritual in vanilla Blood Magic. This same item is used in the multiblock recipe to determine which meteor should be spawned.
Note: This feature requires Blood Magic to be installed. If Blood Magic is not present, the hatch will not be present.
Catalyst Item
The catalyst item is specified in the recipe as a string in the format namespace:item_name
(e.g., minecraft:iron_block
). This item determines which meteor is spawned when the recipe is executed.
For information on how to define or customize meteors in Blood Magic, please refer to their official documentation.
ZenScript Integration
Due to the internal mechanics of this hatch and its reliance on Blood Magic's registry, there is currently no CraftTweaker (ZenScript) integration available for this requirement type. Recipes must be defined using JSON.
JSON Recipe Example
Below is an example of how to define a recipe that includes the Meteor Hatch requirement:
{
"type": "modularmachineryaddons:meteor",
"io-type": "output",
"item": "minecraft:iron_block"
}
Explanation
- "type": The unique identifier for the meteor hatch requirement.
- "io-type": Must be
"output"
since this hatch only produces an effect. - "item": The catalyst item that defines which meteor will be triggered. Must be a valid item string in the
namespace:item_name
format.
Additional Notes
- This hatch can only be used in output mode.
- Ensure that the specified catalyst item matches an existing meteor definition in Blood Magic; otherwise, the requirement will fail to load and throw an exception.
- This requirement does not consume the catalyst item—it is used as an internal reference, not an input.
- In order to prevent the hatch from continuously summoning meteors, I hardcoded the requirement that there must be at most one block between the hatch and the sky (max height, 256). This should allow players to position the usual block of obsidian to stop the meteor, while also ensuring that the hatch doesn’t endlessly spawn meteors.