crafts
This commit is contained in:
parent
cf0a7d9c45
commit
dd4038fa3e
|
@ -407,8 +407,14 @@ if minetest.global_exists("tubelib") then
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local chest = "default:chest"
|
||||||
|
|
||||||
|
if minetest.get_modpath("mcl_chests") then
|
||||||
|
chest = "mcl_chests:chest"
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "digilines:chest",
|
output = "digilines:chest",
|
||||||
recipe = {"default:chest", "digilines:wire_std_00000000"}
|
recipe = {chest, "digilines:wire_std_00000000"}
|
||||||
})
|
})
|
||||||
|
|
19
lcd.lua
19
lcd.lua
|
@ -341,14 +341,21 @@ minetest.register_entity(":digilines_lcd:text", {
|
||||||
on_activate = set_texture,
|
on_activate = set_texture,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local steel_ingot = "default:steel_ingot"
|
||||||
|
local glass = "default:glass"
|
||||||
|
local lightstone = "mesecons_lightstone:lightstone_green_off"
|
||||||
|
|
||||||
|
if minetest.get_modpath("mcl_core") then
|
||||||
|
steel_ingot = "mcl_core:iron_ingot"
|
||||||
|
glass = "mcl_core:glass"
|
||||||
|
lightstone = "mesecons_lightstone:lightstone_off"
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "digilines:lcd 2",
|
output = "digilines:lcd 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:steel_ingot", "digilines:wire_std_00000000", "default:steel_ingot"},
|
{steel_ingot, "digilines:wire_std_00000000", steel_ingot},
|
||||||
{"mesecons_lightstone:lightstone_green_off",
|
{lightstone, lightstone, lightstone},
|
||||||
"mesecons_lightstone:lightstone_green_off",
|
{glass, glass, glass}
|
||||||
"mesecons_lightstone:lightstone_green_off"},
|
|
||||||
|
|
||||||
{"default:glass","default:glass","default:glass"}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -65,10 +65,18 @@ minetest.register_node("digilines:lightsensor", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local steel_ingot = "default:steel_ingot"
|
||||||
|
local glass = "default:glass"
|
||||||
|
|
||||||
|
if minetest.get_modpath("mcl_core") then
|
||||||
|
steel_ingot = "mcl_core:iron_ingot"
|
||||||
|
glass = "mcl_core:glass"
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "digilines:lightsensor",
|
output = "digilines:lightsensor",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:glass","default:glass","default:glass"},
|
{glass, glass, glass},
|
||||||
{"default:steel_ingot", "digilines:wire_std_00000000", "default:steel_ingot"},
|
{steel_ingot, "digilines:wire_std_00000000", steel_ingot},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
18
rtc.lua
18
rtc.lua
|
@ -61,11 +61,25 @@ minetest.register_node("digilines:rtc", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local steel_ingot = "default:steel_ingot"
|
||||||
|
local mese_crystal = "default:mese_crystal_fragment"
|
||||||
|
local dye_black = "dye:black"
|
||||||
|
|
||||||
|
if minetest.get_modpath("mcl_core") then
|
||||||
|
steel_ingot = "mcl_core:iron_ingot"
|
||||||
|
glass = "mcl_core:glass"
|
||||||
|
mese_crystal = "mesecons:redstone"
|
||||||
|
end
|
||||||
|
|
||||||
|
if minetest.get_modpath("mcl_dye") then
|
||||||
|
dye_black = "mcl_dye:black"
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "digilines:rtc",
|
output = "digilines:rtc",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "dye:black", ""},
|
{"", dye_black, ""},
|
||||||
{"default:steel_ingot", "default:mese_crystal_fragment", "default:steel_ingot"},
|
{steel_ingot, mese_crystal, steel_ingot},
|
||||||
{"", "digilines:wire_std_00000000", ""}
|
{"", "digilines:wire_std_00000000", ""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue