2017-01-26 17:34:15 +01:00
|
|
|
|
|
|
|
Hopper API
|
|
|
|
----------
|
|
|
|
|
|
|
|
This API is kept simple by adding a single command which allows mods to add
|
|
|
|
containers like chests and furnaces to the hopper check list.
|
|
|
|
|
|
|
|
|
|
|
|
Command Usage
|
|
|
|
-------------
|
|
|
|
|
|
|
|
Make sure any mods using this function has 'hopper' in the depends.txt file.
|
|
|
|
|
|
|
|
hopper:add_container({ {"where_from", "node_name", "inventory_name"} })
|
|
|
|
|
|
|
|
'where_from' is a string telling the api that items are coming from either
|
2017-01-27 14:30:04 +01:00
|
|
|
the 'top' node into a hopper, going into the 'bottom' node from a
|
|
|
|
hopper or coming from a 'side' hopper into a container.
|
2017-01-26 17:34:15 +01:00
|
|
|
|
|
|
|
'node_name" is the name of the container itself (e.g. "default:chest")
|
|
|
|
|
|
|
|
'inventory_name' is the name of the container inventory that is affected.
|
|
|
|
|
|
|
|
e.g.
|
|
|
|
|
|
|
|
hopper:add_container({
|
2017-01-27 14:30:04 +01:00
|
|
|
{"top", "default:furnace", "dst"}, -- take cooked items from above into hopper
|
|
|
|
{"bottom", "default:furnace", "src"}, -- insert items below to be cooked from hopper
|
|
|
|
{"side", "default:furnace", "fuel"}, -- replenish furnace fuel from hopper at side
|
2017-01-26 17:34:15 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
We already have support for the wine barrel inside of the Wine mod and protected
|
|
|
|
chests inside of Protector Redo, as well as default chests, furnaces and hoppers
|
|
|
|
themselves.
|
2017-01-30 22:30:10 +01:00
|
|
|
|
|
|
|
Note: Hoppers can transfer into locked chests but not take from them (yet).
|