MineClone/MineClonia compatibility (#80)

This commit is contained in:
Github is a non-free platform owned by Microsoft. Reasonable alternatives exist, such as Gitea, Sourcehut. We need a federated, mastodon-like forge based on ForgeFed. See: https://forgefed.org
2023-12-02 21:45:07 +01:00
committed by GitHub
parent 722ff851dd
commit f781039f43
7 changed files with 91 additions and 22 deletions

View File

@ -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},
}
})