2 ‐ Demonic Will Hatch - Alecsioo/MMCE-Addons GitHub Wiki
Demonic Will Input and Output Hatches
The Demonic Will Input and Output Hatches in Modular Machinery Addons are enhanced versions of the corresponding hatches found in MMCE. These hatches support multi-chunk behavior to allow multiblocks to spread will across multiple chunks, allowing less spamming of the same otherwise singular chunk hatch and multiblock. This includes having it function with ALL Demonic will types in Blood Magic. Default, Corrosive, Destructive, Vengeful, and Steadfast. These types are referenced in recipes when defining the required Demonic Will for input or output.
Recipe JSON Example
You can define recipes for Demonic Will hatches in JSON format. Below is an example of how to define an Output Hatch using a multi-chunk configuration:
{
"type": "modularmachineryaddons:willmultichunk",
"will-type": "default",
"io-type": "output",
"minPerChunk": 0,
"maxPerChunk": 20000,
"amount": 1000,
"chunkRange": 1
}
In this recipe:
will-type
: Specifies the type of Demonic Will (e.g.,default
,corrosive
, etc.).io-type
: Specifies whether this hatch is aninput
oroutput
.minPerChunk
: The minimum amount of Demonic Will per chunk in input mode (must be a positive number).maxPerChunk
: The maximum amount of Demonic Will per chunk in output mode (must be a positive number).amount
: The total amount of Demonic Will to process.chunkRange
: The range of chunks the hatch can operate over (defaults to0
, which means only the chunk the hatch is in will be affected). This must be a positive number.
Other Fields
minPerChunk
(Input mode only): The minimum amount of Demonic Will per chunk (must be a positive number). Used in input mode to prevent a hatch from going below a set limit when inputting a given will type.maxPerChunk
(Output mode only): The maximum amount of Demonic Will per chunk (must be a positive number). Used in output mode to prevent a hatch from going above a set limit when outputting a given will type.
Multi-Chunk Behavior
The Demonic Will Input and Output Hatches support multi-chunk behavior. This means the hatch 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