mirror of
https://github.com/minetest-mods/digilines.git
synced 2024-11-16 07:10:23 +01:00
crafts
This commit is contained in:
parent
cf0a7d9c45
commit
dd4038fa3e
|
@ -407,8 +407,14 @@ if minetest.global_exists("tubelib") then
|
|||
})
|
||||
end
|
||||
|
||||
local chest = "default:chest"
|
||||
|
||||
if minetest.get_modpath("mcl_chests") then
|
||||
chest = "mcl_chests:chest"
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
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,
|
||||
})
|
||||
|
||||
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({
|
||||
output = "digilines:lcd 2",
|
||||
recipe = {
|
||||
{"default:steel_ingot", "digilines:wire_std_00000000", "default:steel_ingot"},
|
||||
{"mesecons_lightstone:lightstone_green_off",
|
||||
"mesecons_lightstone:lightstone_green_off",
|
||||
"mesecons_lightstone:lightstone_green_off"},
|
||||
|
||||
{"default:glass","default:glass","default:glass"}
|
||||
{steel_ingot, "digilines:wire_std_00000000", steel_ingot},
|
||||
{lightstone, lightstone, lightstone},
|
||||
{glass, glass, glass}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -65,10 +65,18 @@ minetest.register_node("digilines:lightsensor", {
|
|||
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({
|
||||
output = "digilines:lightsensor",
|
||||
recipe = {
|
||||
{"default:glass","default:glass","default:glass"},
|
||||
{"default:steel_ingot", "digilines:wire_std_00000000", "default:steel_ingot"},
|
||||
{glass, glass, glass},
|
||||
{steel_ingot, "digilines:wire_std_00000000", steel_ingot},
|
||||
}
|
||||
})
|
||||
|
|
18
rtc.lua
18
rtc.lua
|
@ -61,11 +61,25 @@ minetest.register_node("digilines:rtc", {
|
|||
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({
|
||||
output = "digilines:rtc",
|
||||
recipe = {
|
||||
{"", "dye:black", ""},
|
||||
{"default:steel_ingot", "default:mese_crystal_fragment", "default:steel_ingot"},
|
||||
{"", dye_black, ""},
|
||||
{steel_ingot, mese_crystal, steel_ingot},
|
||||
{"", "digilines:wire_std_00000000", ""}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user