ExchangeClone/exchangeclone/hopper_compat.lua

32 lines
976 B
Lua

-- 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"},
})
hopper:add_container({
{"top", "exchangeclone:upgrader", "dst"},
{"side", "exchangeclone:upgrader", "fuel"},
{"bottom", "exchangeclone:upgrader", "src"},
})
hopper:add_container({
{"top", "group:exchangeclone_furnace", "dst"},
{"side", "group:exchangeclone_furnace", "fuel"},
{"bottom", "group:exchangeclone_furnace", "src"},
})
hopper:add_container({
{"top", "group:energy_collector", "main"},
{"bottom", "group:energy_collector", "main"},
{"side", "group:energy_collector", "main"},
})
hopper:add_container({
{"top", "exchangeclone:emc_link", "dst"},
{"bottom", "exchangeclone:emc_link", "src"},
{"side", "exchangeclone:emc_link", "fuel"},
})