Skip to content

General info

Srdjan-V edited this page Aug 1, 2022 · 8 revisions

Tweaked Reservoirs

For the default Reservoirs configs visit Immersive Petroleum's wiki

import mods.TweakedPetroleum.TweakedReservoir

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 be at least 0 (A RuntimeException can occur if handled incorrectly).

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
            }

registerPowerUsage

TweakedReservoir.registerPowerUsage(int tier, int capacity, int rft)

PowerUsage tier must start from 0, and at least one must be registered or the config 'Disable IP's Default Pumpjack Capacity and Consumption' must be set to false (A RuntimeException can occur if handled incorrectly)

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

Clone this wiki locally