mirror of
https://cheapiesystems.com/git/digistuff
synced 2024-11-28 01:53:45 +01:00
Add alternate piezo recipe
Now uses a mese crystal fragment if quartz isn't installed
This commit is contained in:
parent
f0ce172302
commit
896a256eb3
@ -80,10 +80,16 @@ minetest.register_node("digistuff:piezo", {
|
||||
},
|
||||
})
|
||||
|
||||
local crystal = "quartz:quartz_crystal_piece"
|
||||
|
||||
if not minetest.get_modpath("quartz") then
|
||||
crystal = "default:mese_crystal_fragment"
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
output = "digistuff:piezo",
|
||||
recipe = {
|
||||
{"quartz:quartz_crystal_piece","basic_materials:steel_strip"},
|
||||
{crystal,"basic_materials:steel_strip"},
|
||||
{"digilines:wire_std_00000000","mesecons_luacontroller:luacontroller0000"},
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user