mirror of
https://github.com/minetest-mods/digilines.git
synced 2025-06-30 15:30:22 +02:00
MineClone/MineClonia compatibility (#80)
This commit is contained in:
committed by
GitHub
parent
722ff851dd
commit
f781039f43
19
rtc.lua
19
rtc.lua
@ -35,6 +35,8 @@ minetest.register_node("digilines:rtc", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {dig_immediate=2},
|
||||
_mcl_blast_resistance = 1,
|
||||
_mcl_hardness = 0.8,
|
||||
selection_box = rtc_selbox,
|
||||
node_box = rtc_nodebox,
|
||||
digilines =
|
||||
@ -59,11 +61,24 @@ 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 digilines.mcl then
|
||||
steel_ingot = "mcl_core:iron_ingot"
|
||||
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", ""}
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user