remove depends
This commit is contained in:
parent
93ce53458f
commit
9dcaffc813
72
crafts.lua
72
crafts.lua
@ -1,72 +0,0 @@
|
||||
|
||||
local function get_craftitem(items)
|
||||
for _,item in ipairs(items) do
|
||||
if minetest.registered_items[item] then
|
||||
return item
|
||||
end
|
||||
end
|
||||
return "???"
|
||||
end
|
||||
|
||||
local digiwire = "digilines:wire_std_00000000"
|
||||
|
||||
local silicon = get_craftitem({
|
||||
"basic_materials:silicon",
|
||||
"mesecons_materials:silicon",
|
||||
"default:flint"
|
||||
})
|
||||
|
||||
local wire = get_craftitem({
|
||||
"basic_materials:steel_wire",
|
||||
"default:steel_ingot"
|
||||
})
|
||||
|
||||
local ic = get_craftitem({
|
||||
"basic_materials:ic",
|
||||
"default:mese_crystal_fragment"
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "digicontrol:diode",
|
||||
recipe = {
|
||||
{"", "", ""},
|
||||
{digiwire, silicon, digiwire},
|
||||
{"", "", ""},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "digicontrol:splitter",
|
||||
recipe = {
|
||||
{"", "", digiwire},
|
||||
{digiwire, silicon, ""},
|
||||
{"", "", digiwire},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "digicontrol:trisplitter",
|
||||
recipe = {
|
||||
{"", "", digiwire},
|
||||
{digiwire, silicon, digiwire},
|
||||
{"", "", digiwire},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "digicontrol:limiter",
|
||||
recipe = {
|
||||
{"", "", ""},
|
||||
{digiwire, wire, digiwire},
|
||||
{"", "", ""},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "digicontrol:filter",
|
||||
recipe = {
|
||||
{"", "", ""},
|
||||
{digiwire, ic, digiwire},
|
||||
{"", "", ""},
|
||||
},
|
||||
})
|
2
init.lua
2
init.lua
@ -58,5 +58,3 @@ dofile(MP.."/trisplitter.lua")
|
||||
dofile(MP.."/filter.lua")
|
||||
dofile(MP.."/limiter.lua")
|
||||
|
||||
-- Crafting recipes
|
||||
dofile(MP.."/crafts.lua")
|
||||
|
2
mod.conf
2
mod.conf
@ -1,5 +1,5 @@
|
||||
name = digicontrol
|
||||
description = Adds nodes to control the flow of digiline messages
|
||||
depends = default, digilines
|
||||
depends = digilines
|
||||
optional_depends = basic_materials, mesecons_materials
|
||||
min_minetest_version = 5.0
|
||||
|
Loading…
Reference in New Issue
Block a user