-
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, a option exist to somewhat disable this but will introduce unintended behavior like fluid not pumping. This is to prevent loss of fluid chunks, you will see why below.
You should also use this as a starting template, this is the replacement for the default reservoir config. This is needed since the mod disables the default reservoir loading (this can be enabled but it will cause the unintended behavior mention above)
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
}
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