ExchangeClone/exchangeclone/hopper_compat.lua

33 lines
1.1 KiB
Lua
Raw Normal View History

2023-11-13 02:30:16 +01:00
-- Runs only if the hopper mod is detected. This pretty much makes it so that anything that works with
-- MineClone hoppers will automatically work with other hoppers.
hopper:add_container({
{"top", "group:container=2", "main"},
{"bottom", "group:container=2", "main"},
{"side", "group:container=2", "main"},
})
2023-11-20 01:01:56 +01:00
hopper:add_container({
{"top", "group:container=3", "main"},
{"bottom", "group:container=3", "main"},
{"side", "group:container=3", "main"},
})
2023-11-13 02:30:16 +01:00
2023-11-20 01:01:56 +01:00
-- I assumed "top" meant when it's on top of a node, not when there's a node on top of it. Whoops.
2023-11-13 02:30:16 +01:00
hopper:add_container({
2023-11-20 01:01:56 +01:00
{"top", "group:container=4", "dst"},
2023-11-13 02:30:16 +01:00
{"side", "group:container=4", "fuel"},
2023-11-20 01:01:56 +01:00
{"bottom", "group:container=4", "src"},
2023-11-13 02:30:16 +01:00
})
2023-11-20 01:01:56 +01:00
-- Hoppers will only be able to insert into one side of a double chest, I think (unless you have 1 hopper per side)
2023-11-13 02:30:16 +01:00
hopper:add_container({
{"top", "group:container=5", "main"},
{"bottom", "group:container=5", "main"},
{"side", "group:container=5", "main"},
})
hopper:add_container({
{"top", "group:container=6", "main"},
{"bottom", "group:container=6", "main"},
{"side", "group:container=6", "main"},
})