-
Notifications
You must be signed in to change notification settings - Fork 3
General info
By default the game will crash if the scripts are not configured properly, this is to prevent loss of fluid chunks.
The mod disabled the default reservoir loading. You should use this as a starting template, this is the equivalent for the default reservoir config.
For the default Reservoirs configs visit Immersive Petroleum's wiki
TweakedReservoir.registerPowerUsage(int tier, int capacity, int rft)
PowerUsage tier must start from 0, and at least one must be registered
PowerUsage capacity can not be smaller than 1
PowerUsage capacity can not be equal to Max int (2,147,483,647)
PowerUsage capacity can not be smaller than rft
TweakedReservoir.registerReservoir(String name, ILiquidStack fluid, int minSize, int maxSize, int replenishRate, int pumpSpeed, int weight, int powerTier int[] dimBlacklist, int[] dimWhitelist, String[] biomeBlacklist, String[] biomeWhitelist);
The pumpSpeed must be equal or greater than replenishRate.
Reservoir powerTier must start from 0.
The name of the reservoir will act as an id, and it should be unique and not renamed, if its renamed existing fluid chunks with that id will disappear. It will be saved in minecraft/saves/New Normal Overworld/data/ImmersiveEngineering-SaveData.dat, with some other data, example:
{
x: -19
dim: 0
z: -11
info: {
oil: 7161816
type: Aquifer
capacity: 7161816
}
TweakedReservoir.registerReservoirWithDrainChance(String name, ILiquidStack fluid, int minSize, int maxSize, int replenishRate, int pumpSpeed, float drainChance, int weight, int powerTier, int[] dimBlacklist, int[] dimWhitelist, String[] biomeBlacklist, String[] biomeWhitelist)
This reservoir has a chance to not drain the fluid from the chunk for that tick, the values must me between 1 and 0.
1 means that is has a 100% chance to consume from the chunk
0.5 means that is has a 50% chance to consume from the chunk
0 means that its effectively infinite