Home Getting Started With Scripts Commands Examples

Reservoir

remove

NameType
Name
Recipe Name
Type
String

Example:

script.zs
// mods.immersivepetroleum.ReservoirRegistry.remove(String recipeName);
mods.immersivepetroleum.ReservoirRegistry.remove("aquifer");

removeAll

NameType

Example:

script.zs
// mods.immersivepetroleum.ReservoirRegistry.removeAll();
mods.immersivepetroleum.ReservoirRegistry.removeAll();

Reservoir Builder

constructor

NameType
Name
Fluid
Type
Fluidstack
Name
Minimum Size
Type
int
Name
Maximum Size
Type
int
Name
Replenish Rate
Type
int
Name
Weight
Type
int

Weight

Weight is the Weighted Chance of a chunk containing that specific fluid reservoir. The weight is counted as in X in Total.

So if you have 5 Reservoir values at: 5, 5, 6, 8, 10

Then each respective entry will have a weighted chance of:

script.zs
5 in 34
5 in 34
6 in 34
8 in 34
10 in 34

Example:

script.zs
// new mods.immersivepetroleum.ReservoirBuilder(IFluidStack fluid, int minSize, int maxSize, int traceAmount, int weight);
new mods.immersivepetroleum.ReservoirBuilder(<fluid:minecraft:lava>, 1000, 5000, 0, 20);

addDimensions

NameType
Name
Blacklist
Type
Boolean
Name
Dimension Names
Type
String[] array

Example:

script.zs
// builderInstance.addDimensions(boolean isBlacklist, String[] dimensionNames);
builderInstance.addDimensions(false, ["minecraft:overworld"]);

addBiomes

NameType
Name
Blacklist
Type
Boolean
Name
Biome Names
Type
String[] array

Example:

script.zs
// builderInstance.addBiomes(boolean isBlacklist, String[] biomeNames);
builderInstance.addBiomes(false, ["minecraft:plains"]);

build

NameType
Name
Name
Type
String

Preface

The base reservoirs are lowercase as they are translated - custom ones should be properly capitalized (ex. “Deep Ocean Oil Reservoir”).

Example:

script.zs
// builderInstance.build(String name);
builderInstance.build("Example Name");

Copy/Paste example:

script.zs
new ReservoirBuilder(<fluid:minecraft:lava>, 25000, 100000, 0, 20)
.addDimensions(false, ["overworld"])
.addBiomes(false, ["minecraft:desert"])
.build("Desert Lava");