Mod

Open Computers Refined Storage Driver

Quick rating

Open Computers Refined Storage Driver

No reviews yet

OpenComputers + Refined Storage = <3

No Theme
Tech
Mod Addon
Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
ocrsdriver-1.0.2.jar
Authors

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.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description

ocrsdriver

OpenComputers + Refined Storage = ❤️

Allows OpenComputers to access Refined Storage grid nodes via Adapters. This is for Minecraft 1.10.2. Refined Storage for 1.11.2 has this functionality included by default.

Known Issues

  • This is currently unrestricted, i.e. you can export items and fluids using just a cable - and fast.

Available Commands

Method Description
isConnected() Returns whether the grid node is connected to a network
getEnergyUsage() Returns the energy usage of the whole network in RS/tick
getItems() Returns a list of all itemstacks stored in the network
getItem(itemstack, cmpMeta, cmpNbt, cmpOre) Returns a stack in the network matching the given itemstack
extractItem(itemstack, amount, side) Extracts the given amount of itemstack to the specified side and returns the number of transfered items.
getFluids() Returns a list of all fluid stacks stored in the network
getFluid(fluidstack) Returns a stack in the network matching the given fluidstack
extractFluid(fluidstack, amount, side) Extracts the given amount of fluid to the specified side and returns the amount of millibuckets transfered.
getTasks() Returns a list of crafting tasks the system has currently queued
getPatterns() Returns a list of all crafting patterns in the network
hasPattern(itemstack) Returns true if the system has a pattern for the given itemstack
getMissingItems(itemstack, amount) Returns a list of all items missing to craft the given itemstack in the given amount
craftItem(itemstack, amount) Requests crafting of the specified item in the specified quantity
cancelCrafting(itemstack) Cancels all crafting operations for the given itemstack and returns the number of cancelled tasks

Examples

Drop all items you got more than 8192 of

Place a Trash Can below an interface connected to an 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

Keep 64 torches and levers in your crafting system

Don't forget to teach a crafter the recipe for torches and levers

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

Screenshots

Gallery

This project has no gallery images yet.

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

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~660,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync