mirror of
https://github.com/minetest-mods/hopper.git
synced 2024-11-19 22:03:47 +01:00
b8f4ee3f8b
Adding a sorter, and splitting up the overly-large init.lua in the process.
48 lines
1.0 KiB
Lua
48 lines
1.0 KiB
Lua
|
|
if minetest.get_modpath("default") then
|
|
minetest.register_craft({
|
|
output = "hopper:hopper",
|
|
recipe = {
|
|
{"default:steel_ingot","default:chest","default:steel_ingot"},
|
|
{"","default:steel_ingot",""},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "hopper:chute",
|
|
recipe = {
|
|
{"default:steel_ingot","default:chest","default:steel_ingot"},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "hopper:sorter",
|
|
recipe = {
|
|
{"","default:mese_crystal",""},
|
|
{"default:steel_ingot","default:chest","default:steel_ingot"},
|
|
{"","default:steel_ingot",""},
|
|
}
|
|
})
|
|
|
|
if not hopper.config.single_craftable_item then
|
|
minetest.register_craft({
|
|
output = "hopper:hopper_side",
|
|
recipe = {
|
|
{"default:steel_ingot","default:chest","default:steel_ingot"},
|
|
{"","","default:steel_ingot"},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "hopper:hopper_side",
|
|
type="shapeless",
|
|
recipe = {"hopper:hopper"},
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "hopper:hopper",
|
|
type="shapeless",
|
|
recipe = {"hopper:hopper_side"},
|
|
})
|
|
end
|
|
end |