@@ -124,24 +124,40 @@ hopper:add_container({
124124 {" side" , " hopper:sorter" , " main" },
125125})
126126
127- if minetest . get_modpath ( " default " ) then
127+ local function add_chest ( nodename )
128128 hopper :add_container ({
129- {" top" , " default:chest" , " main" },
130- {" bottom" , " default:chest" , " main" },
131- {" side" , " default:chest" , " main" },
129+ {" top" , nodename , " main" },
130+ {" bottom" , nodename , " main" },
131+ {" side" , nodename , " main" },
132+ })
133+ end
134+
135+ local function add_furnace (nodename )
136+ hopper :add_container ({
137+ {" top" , nodename , " main" },
138+ {" bottom" , nodename , " main" },
139+ {" side" , nodename , " main" },
140+ })
141+ end
132142
133- {" top" , " default:furnace" , " dst" },
134- {" bottom" , " default:furnace" , " src" },
135- {" side" , " default:furnace" , " fuel" },
143+ -- Minetest Game
144+ if core .get_modpath (" default" ) then
145+ add_chest (" default:chest" )
146+ add_chest (" default:chest_locked" )
147+ add_furnace (" default:furnace" )
148+ add_furnace (" default:furnace_active" )
149+ end
136150
137- {" top" , " default:furnace_active" , " dst" },
138- {" bottom" , " default:furnace_active" , " src" },
139- {" side" , " default:furnace_active" , " fuel" },
151+ -- VoxeLibre, Mineclonia
152+ if core .get_modpath (" mcl_init" ) then
153+ add_furnace (" mcl_furnaces:furnace" )
154+ add_furnace (" mcl_furnaces:furnace_active" )
155+ add_furnace (" mcl_blast_furnace:blast_furnace" )
156+ add_furnace (" mcl_blast_furnace:blast_furnace_active" )
140157
141- {" top" , " default:chest_locked" , " main" },
142- {" bottom" , " default:chest_locked" , " main" },
143- {" side" , " default:chest_locked" , " main" },
144- })
158+ add_furnace (" mcl_chests:chest_small" )
159+ add_furnace (" mcl_chests:chest_left" )
160+ add_furnace (" mcl_chests:chest_right" )
145161end
146162
147163-- protector redo mod support
0 commit comments