Transport-Lib
Modby thepigcat76
A simple library allowing modders to create custom pipe networks
Description
Transport Lib
A library to streamline the process of creating transport networks for any resource.
The library supports the following parameters by default:
- Resource loss per block (Energy loss, Fluids leaking…)
- Custom Transport Handlers for merging/splitting resources
- Syncing resource amounts to the client for visual display
- Accessing resources in cables through block capabilities (WIP)
Here is a concrete example of how to register a network.
public static final DeferredHolder<TransportNetwork<?>, TransportNetworkImpl<Integer>> MANA_NETWORK = NETWORKS.register("mana",
() -> TransportNetworkImpl.builder(ManaTransportingHandler.INSTANCE)
.synced(ByteBufCodecs.INT)
.lossPerBlock((level, node) -> 1f)
.transferSpeed(TransferSpeed::instant)
.interactorCheck(((level, pos, direction) -> level.getBlockEntity(pos.relative(direction)) instanceof ManaBatteryBlockEntity))
.build());
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Military Sign
Military Sign to decorate your military base
Simple SkyBlock Addon
SkyBlock Addon
Gregicality TJ Fork
Complete rewrite of the old Gregic additions and more for GTCE
Just Basic Metals
A quick and easy mod for basic metal ores and compatibility.
Holo Damage Indicator
Add client-sided, customizable and animated damage indicators when entities take damage/heal.
Origins: Felfolk Origin
The mod adds one new cat type origin