Community listing page, reviews here may not be monitored by the author.
Transport-Lib
No reviews yet
A simple library allowing modders to create custom pipe networks
Community voices
Reviews
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Must be installed on both the client and the server.
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
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());
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());
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers