Skip to content

General info

Srdjan-V edited this page Sep 6, 2022 · 8 revisions

Before adding this mod

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.

Tweaked Reservoirs

For the default Reservoirs configs visit Immersive Petroleum's wiki

registerPowerUsage

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

registerReservoir

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
            }

registerReservoirWithDrainChance

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

Clone this wiki locally