mirror of
https://github.com/minetest-mods/digilines.git
synced 2025-06-30 07:20:29 +02:00
MineClone/MineClonia compatibility (#80)
This commit is contained in:
committed by
GitHub
parent
722ff851dd
commit
f781039f43
@ -39,6 +39,8 @@ minetest.register_node("digilines:lightsensor", {
|
||||
|
||||
paramtype = "light",
|
||||
groups = {dig_immediate=2},
|
||||
_mcl_blast_resistance = 1,
|
||||
_mcl_hardness = 0.8,
|
||||
selection_box = lsensor_selbox,
|
||||
node_box = lsensor_nodebox,
|
||||
digilines =
|
||||
@ -63,10 +65,18 @@ minetest.register_node("digilines:lightsensor", {
|
||||
end,
|
||||
})
|
||||
|
||||
local steel_ingot = "default:steel_ingot"
|
||||
local glass = "default:glass"
|
||||
|
||||
if digilines.mcl 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},
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user