Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

umnikos/hopper.lua

Open more actions menu

Repository files navigation

hopper.lua

The ffmpeg of minecraft item transportation: move items and fluids from A to B without any hassle.

What is this?

A replacement for all of your pipes, belts, fluix cables, funnels, filters, and more. Hopper.lua does two things:

  • It unifies all of the various underlying CC inventory APIs into a single, consistent interface
  • Said interface is high-level, making it quick and easy to set up various pipelines, and is useful both for simple and for complicated jobs

For those familiar with Super Factory Manager, hopper.lua provides a very similar set of features to that mod.

As an example use, here's all of the code needed for a furnace array (aka. a super smelter):

startup.lua

shell.run([[hopper -sleep 5
  -alias input *chest*
  -alias fuel *chest*
  -alias bucket_return *barrel*
  -alias output *barrel*
  / input *furnace* -not *:lava_bucket -to-slot 1 -to-limit 5 -per-chest
  / fuel *furnace* *:lava_bucket -to-slot 2
  / *furnace* bucket_return *:bucket -from-slot 2 
  / *furnace* output -from-slot 3
]])

And as a simpler example, here's it cooking some tomato sauce using a Farmer's Delight cooking pot:

shell.run([[hopper
  / *chest* *pot* *:tomato -to-slot-range 1 2 -to-limit 2 -per-slot
  / *chest* *pot* *:bowl -to-slot 8
  / *pot* *chest* -from-slot 9
]])

Installation

Latest release

Run these two commands on your CC computer to fetch the code:

cd /
wget https://raw.githubusercontent.com/umnikos/hopper.lua/main/hopper.lua

Beta version

To get the newest bugs and features, fetch the code from the beta branch:

wget https://raw.githubusercontent.com/umnikos/hopper.lua/beta/hopper.lua

Usage

Consult the wiki for a tutorial on how to get started. It currently also doubles as documentation.

About

computercraft program: move items and fluids from A to B without any hassle

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.