-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.lua
101 lines (77 loc) · 3.59 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
--Note: Connected Chests support was removed because hopper (FaceDeer's version) and Connected
-- Chests support it themselves now
-- TO DO: Add connected_chests support for tenplus1's version of hopper.
--Make the hoppers work with a chest when it is open
if minetest.settings:get_bool("open_chest_support") or true then
hopper:add_container({
{"top", "default:chest_open", "main"},
{"side", "default:chest_open", "main"},
{"bottom", "default:chest_open", "main"},
})
end
-- Add support for elepoer stuff.
if minetest.get_modpath("elepower_machines") then
hopper:add_container({
{"top", "elepower_machines:alloy_furnace", "dst"},
{"side", "elepower_machines:alloy_furnace", "dst"},
{"bottom", "elepower_machines:alloy_furnace", "src"},
{"top", "elepower_machines:bucketer", "dst"},
{"side", "elepower_machines:bucketer", "dst"},
{"bottom", "elepower_machines:bucketer", "src"},
{"top", "elepower_machines:canning_machine", "dst"},
{"side", "elepower_machines:canning_machine", "dst"},
{"bottom", "elepower_machines:canning_machine", "src"},
{"top", "elepower_machines:coal_alloy_furnace", "fuel"},
{"bottom", "elepower_machines:coal_alloy_furnace", "fuel"},
{"side", "elepower_machines:coal_alloy_furnace", "fuel"},
{"top", "elepower_machines:compressor", "dst"},
{"side", "elepower_machines:compressor", "dst"},
{"bottom", "elepower_machines:compressor", "src"},
{"top", "elepower_machines:furnace", "dst"},
{"side", "elepower_machines:furnace", "dst"},
{"bottom", "elepower_machines:furnace", "src"},
{"top", "elepower_machines:generator", "src"},
{"side", "elepower_machines:generator", "src"},
{"top", "elepower_machines:generator_active", "src"},
{"side", "elepower_machines:generator_active", "src"},
{"top", "elepower_machines:grindstone", "dst"},
{"side", "elepower_machines:grindstone", "dst"},
{"bottom", "elepower_machines:grindstone", "src"},
{"top", "elepower_machines:pcb_plant", "dst"},
{"side", "elepower_machines:pcb_plant", "dst"},
{"bottom", "elepower_machines:pcb_plant", "src"},
{"top", "elepower_machines:pulverizer", "dst"},
{"side", "elepower_machines:pulverizer", "dst"},
{"bottom", "elepower_machines:pulverizer", "src"},
{"top", "elepower_machines:pulverizer_active", "dst"},
{"bottom", "elepower_machines:pulverizer_active", "src"},
{"side", "elepower_machines:pulverizer_active", "src"},
{"bottom", "elepower_machines:lava_cooler", "main"},
{"top", "elepower_machines:sawmill", "dst"},
{"side", "elepower_machines:sawmill", "dst"},
{"bottom", "elepower_machines:sawmill", "src"},
{"top", "elepower_machines:solderer", "dst"},
{"side", "elepower_machines:solderer", "dst"},
{"bottom", "elepower_machines:solderer", "src"},
})
end
-- Add Support for techinc chests.
if minetest.get_modpath("technic_chests") then
hopper:add_container({
{"top", "technic:iron_chest", "main"},
{"bottom", "technic:iron_chest", "main"},
{"side", "technic:iron_chest", "main"},
{"top", "technic:copper_chest", "main"},
{"bottom", "technic:copper_chest", "main"},
{"side", "technic:copper_chest", "main"},
{"top", "technic:silver_chest", "main"},
{"bottom", "technic:silver_chest", "main"},
{"side", "technic:silver_chest", "main"},
{"top", "technic:gold_chest", "main"},
{"bottom", "technic:gold_chest", "main"},
{"side", "technic:gold_chest", "main"},
{"top", "technic:mithril_chest", "main"},
{"bottom", "technic:mithril_chest", "main"},
{"side", "technic:mithril_chest", "main"},
})
end