Immersive Petroleum - roidrole/Roids-Tweaker GitHub Wiki
Adds ways for CT to interact with reservoirs more directly.
Essentially a MineralMixTweaker for Immersive Petroleum
Features :
Import :
import crafttweaker.world.IWorld| Method | Parameters | Return Type |
|---|---|---|
| getReservoir | pos as IBlockPos | IReservoir |
| setReservoir | pos as IBlockPos, reservoir as IReservoir | void |
Import :
import mods.roidtweaker.immersivepetroleum.IReservoir;A fluid depot in the world. Only current and capacity are per-instance. Modifying any other parameter modifies them for all reservoirs.
They have getProperty, setProperty, getters and setters.
| Property | Type |
|---|---|
| capacity | int |
| current | int |
| type | string |
| name | string |
| fluid | string |
| minSize | int |
| maxSize | int |
| replenishRate | int |
| dimensionWhitelist | int[] |
| dimensionBlacklist | int[] |
| biomeWhitelist | string[] |
| biomeBlacklist | string[] |
Import :
import mods.immersivepetroleum.Reservoir;| Method | Parameters | Return Type |
|---|---|---|
| getReservoir | type as string | IReservoir |
| getRegisteredReservoirs | [None] | List |
These are static methods and return reservoirs which have no capacity and current. To add it to a chunk, you must add them manually (you might want to use Math.getRandom()).
They also might return null. Use isNull(thisReservoir) to know.
Note that reservoirs from the config are registered in the mod's init, which might not happen before CraftTweaker's script loading. Use ZenUtils' custom entrypoints for best results.