promotional bannermobile promotional banner

Transport-Lib

A simple library allowing modders to create custom pipe networks

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());

The Transport-Lib Team

profile avatar
  • 19
    Followers
  • 13
    Projects
  • 9.9M
    Downloads

More from thepigcat76View all

  • Researchd project image

    Researchd

    • 481
    • Mods

    Factorio research in Minecraft

    • 481
    • May 23, 2026
    • Mods
  • Industrial Recrafted project image

    Industrial Recrafted

    • 150
    • Mods

    A modern remake of an old classic tech mod.

    • 150
    • May 21, 2026
    • Mods
    • +3
  • NauTec project image

    NauTec

    • 1.6M
    • Mods

    A magitech mod centered around the deep abyss of the oceans. Augment your player with various upgrades or transfer huge amounts of power using lasers

    • 1.6M
    • May 13, 2026
    • Mods
    • +3
  • Cable Facades project image

    Cable Facades

    • 6.7M
    • Mods

    Facade support for all cables and blocks in the game!

    • 6.7M
    • May 8, 2026
    • Mods
  • Researchd project image

    Researchd

    • 481
    • Mods

    Factorio research in Minecraft

    • 481
    • May 23, 2026
    • Mods
  • Industrial Recrafted project image

    Industrial Recrafted

    • 150
    • Mods

    A modern remake of an old classic tech mod.

    • 150
    • May 21, 2026
    • Mods
    • +3
  • NauTec project image

    NauTec

    • 1.6M
    • Mods

    A magitech mod centered around the deep abyss of the oceans. Augment your player with various upgrades or transfer huge amounts of power using lasers

    • 1.6M
    • May 13, 2026
    • Mods
    • +3
  • Cable Facades project image

    Cable Facades

    • 6.7M
    • Mods

    Facade support for all cables and blocks in the game!

    • 6.7M
    • May 8, 2026
    • Mods