3 ‐ Flux and Vis Hatches - Alecsioo/MMCE-Addons GitHub Wiki
Flux and Vis Hatches
The flux and Vis Hatches offer multiblocks the capability to have the two Thaumcraft chunk resources integrate into your recipes.
The flux hatch has 3 variants, the input and output respectively, and the scrubber, allowing you to just remove flux from the surrounding chunk/s. While the Vis hatch only has a input and output version.
Recipe JSON Example
Flux
{
"type": "modularmachineryaddons:flux",
"io-type": "output",
"amount": 1000,
"chunkRange": 2
}
Vis
{
"type": "modularmachineryaddons:vis",
"io-type": "output",
"amount": 1000,
"chunkRange": 2
}
In this recipe:
- type: Specifies the type of hatch as
flux
, or 'vis' for the second one. - io-type: Specifies whether the flux hatch is an
input
oroutput
. In this example, it is set tooutput
. - amount: Defines how much flux is being transferred (in this case, 1000 units).
- chunkRange: Defines the range of chunks the flux hatch will affect. In this case, it affects chunks within a range of 2.
Multi-Chunk Behavior
The Flux and Vis I/O Hatches support multi-chunk behavior. This means the hatches can apply its requirements across multiple chunks in the world. If multiple chunks are involved, the total required amount of Demonic Will is split across the chunks.
- All chunks must be loaded for the hatch to operate. If any chunk in the range is unloaded, the hatch will not function.
- The required amount is distributed evenly across all loaded chunks in the specified range.
- If a requirement (e.g., a limit) is applied, all chunks must satisfy it for the hatch to work.
ZS Integration
Information on how to add requirements through ZenScript can be found here