summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2021-02-21 04:13:44 -0600
committercheapie <no-email-for-you@example.com>2021-02-21 04:13:44 -0600
commit896a256eb34a25b36a618ac8c164c9e1536ef93a (patch)
treefe3e2425a434e4c28b8cf7431e2580bf52767dcf
parentf0ce172302a02c854a52bae449e6dd4c4287f949 (diff)
downloaddigistuff-896a256eb34a25b36a618ac8c164c9e1536ef93a.tar
digistuff-896a256eb34a25b36a618ac8c164c9e1536ef93a.tar.gz
digistuff-896a256eb34a25b36a618ac8c164c9e1536ef93a.tar.bz2
digistuff-896a256eb34a25b36a618ac8c164c9e1536ef93a.tar.xz
digistuff-896a256eb34a25b36a618ac8c164c9e1536ef93a.zip
Add alternate piezo recipe
Now uses a mese crystal fragment if quartz isn't installed
-rw-r--r--piezo.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/piezo.lua b/piezo.lua
index 3f040c8..ed7debc 100644
--- a/piezo.lua
+++ b/piezo.lua
@@ -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"},
},
})