OC XNet Driver
Bridges OpenComputers and XNet to programmatically control item, fluid, and energy routing across networks.
- Downloads
- 14,743,927
- Loaders
- -
- Latest version
- 1.12
- Updated
- 2018-11-02
- Author
- davenonymous
Overview
OC XNet Driver is a bridge mod for Minecraft 1.12, 1.12.1, and 1.12.2 that integrates OpenComputers with XNet networks. It allows your computer setups to directly control an XNet network to move items, fluids, and energy between connected blocks.
This addon is ideal for technical players and automation-focused modpacks that use both OpenComputers and XNet. In an automated base, it provides code-based control over resource routing, inventory inspection, and power distribution across a single connected network.
Key features
- Allows OpenComputers to move items, fluids, and energy across an XNet network to connected blocks.
- Retrieves a table of all blocks currently linked to the XNet network along with their positions, sides, and metadata.
- Lists the supported capabilities of any specific block on the network.
- Reads and lists the items inside a connected inventory or the fluids stored inside a connected tank.
- Checks the energy capacity and current stored power of any connected energy handler.
- Transfers specific amounts of items, fluids, or energy between source and target positions with optional side parameters.
- Saves an itemstack from a slot within the XNet network directly into an OpenComputers database upgrade.
- Operates without transfer rate restrictions, allowing huge amounts of resources to be moved instantly.
How to get started
- Connect your OpenComputers computer case, an XNet controller, and your desired inventories, tanks, or energy blocks to the same XNet network.
- In your Lua script, load the component library using require('component') and access the network via component.xnet.
- Call xnet.getConnectedBlocks() to scan the network and store the positions and sides of your connected blocks.
- Inspect the contents of found blocks by passing their position coordinates into getItems(), getFluids(), or getEnergy().
- Execute resource routing by calling transferItem(), transferFluid(), or transferEnergy() with the source position, amount, and target position.
FAQ
What does OC XNet Driver do?
It enables OpenComputers to use XNet networks to inspect and transfer items, fluids, and energy between connected blocks via Lua scripts.
Which Minecraft versions and mods are compatible with it?
It is built for Minecraft 1.12, 1.12.1, and 1.12.2, and is designed to work with OpenComputers and XNet (with example support shown for vanilla chests and Thermal Expansion tanks, cells, and dynamos).
Are there any speed limits on transferring resources?
No, transfers are currently unrestricted, meaning you can move huge amounts of items, fluids, or energy in no time.
Can it interact with OpenComputers database upgrades?
Yes, the store() method lets you save an itemstack from a slot in the XNet network directly into a database upgrade.
Versions and loaders
| Minecraft | Loaders |
|---|---|
| 1.12 | - |
