# Reservoir

Link to reservoir

## registerReservoir

Link to registerreservoir

Type | Data Type |
---|---|

Type Name Identifier | Data Type String |

Type Fluid | Data Type Fluidstack |

Type Minimum Size | Data Type Integer |

Type Maximum Size | Data Type Integer |

Type Replenish Rate | Data Type Integer |

Type Weight | Data Type Integer |

### Weight

Link to 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:

` Copy````
5 in 34
5 in 34
6 in 34
8 in 34
10 in 34
```

### Code Example:

Link to code-example

`ZenScript Copy````
mods.immersivepetroleum.Reservoir.registerReservoir(String name, ILiquidStack fluid, int minSize, int maxSize, int replenishRate, int weight);
mods.immersivepetroleum.Reservoir.registerReservoir("WaterTest", <liquid:water>, 48000, 64000, 200, 5);
```