Open Computers Refined Storage Driver
This module perfectly combines two renowned Minecraft modifications - OpenComputers and Refined Storage. Create an interconnected technological ecosystem where personal computers gain direct access to centralized data and resource storage systems.
Compatibility and Features
The driver was specifically developed for Minecraft version 1.10.2. For interested users, we note that versions 1.11.2 and newer already include similar functionality built directly into Refined Storage.
Core Access Model Characteristics
- The connection is implemented through specialized adapters that enable OpenComputers systems to interact with Refined Storage network nodes.
-
::success Important Security Note: The current version provides unrestricted export capabilities. This enables the transfer of items and fluids even through ordinary cables at high speeds.
- ::warning
Available Commands
| Method | Purpose |
|---|---|
| isConnected() | Verifies node connection to the main network |
| getEnergyUsage() | Displays total network energy consumption in RF/tick |
| getItems() | Lists all items stored in the system |
| getItem(itemstack, cmpMeta, cmpNbt, cmpOre) | Finds items in the system matching specified search criteria |
| extractItem(itemstack, amount, side) | Extracts indicated amount of items to the specified side |
| getFluids() | Shows all fluid types currently in storage |
| getFluid(fluidstack) | Identifies presence of specific fluid in the system |
| extractFluid(fluidstack, amount, side) | Pumps fluid in specified volume to indicated direction |
| getTasks() | Displays list of active crafting tasks |
| getPatterns() | Enumerates all crafting patterns registered in the network |
| hasPattern(itemstack) | Checks for pattern availability to create specific items |
| getMissingItems(itemstack, amount) | Identifies missing components for item creation |
| craftItem(itemstack, amount) | Performs automatic calculation and activates crafting processes |
Practical Application Examples
Managing Excessive Resources
Establish an efficient controlled excess removal system by placing a trash container beneath the OpenComputers adapter.
local component = require("component")
local sides = require("sides")
local rs = component.block_refinedstorage_interface
local limit = 8192
local side = sides.down
for i,stack in ipairs(rs.getItems()) do
while(stack.size > limit) do
local dropped = rs.extractItem(stack, stack.size - limit, side)
stack.size = stack.size - dropped
if(dropped < 1) then
break
end
end
end
Automated Inventory Maintenance
Configure continuous replenishment of key resources - maintain 64 torches and levers in your active crafting system.
local component = require("component")
local sides = require("sides")
local rs = component.block_refinedstorage_interface
local targetAmount = 64
local items = {
{name = "minecraft:torch"},
{name = "minecraft:lever"}
}
while(true) do
for i,stack in ipairs(items) do
if(rs.hasPattern(stack)) then
local rsStack = rs.getItem(stack)
local toCraft = targetAmount;
if(rsStack ~= nil) then
toCraft = toCraft - rsStack.size
end
if(toCraft > 0) then
rs.craftItem(stack, toCraft)
end
else
print("Missing pattern for: " .. stack.name)
end
end
os.sleep(5)
end
This approach ensures uninterrupted access to necessary components for the continuous operation of complex systems.