[PATCH 1/1] Adding two recipes for fachwerk:framed_glass so it works with both default:obsidian_glass and moreblocks:clean_glass
Export this patch
---
depends.txt | 1 +
mod.conf | 1 +
nodes.lua | 20 ++++++++++++++++++++
3 files changed, 22 insertions(+)
diff --git a/depends.txt b/depends.txt
index 4ad96d5..41bb35a 100644
--- a/depends.txt
+++ b/depends.txt
@@ -1 +1,2 @@
default
+ moreblocks?
diff --git a/mod.conf b/mod.conf
index 707bc48..8394906 100644
--- a/mod.conf
+++ b/mod.conf
@@ -1,3 +1,4 @@
name = fachwerk
description = This mod adds timber-framed clay, bricks, cobble, stone and stone bricks to the game. There is a simple API for adding new timeber-framed nodes.
depends = default
+ optional_depends = moreblocks
diff --git a/nodes.lua b/nodes.lua
index c0e46b4..6682fa5 100644
--- a/nodes.lua
+++ b/nodes.lua
@@ -37,3 +37,23 @@ minetest.register_node("fachwerk:framed_glass", {
groups = {cracky = 3,oddly_breakable_by_hand = 3},
sounds = default.node_sound_glass_defaults(),
})
+
+ minetest.register_craft({
+ output = "fachwerk:framed_glass 8",
+ recipe = {
+ {"group:wood", "group:wood", "group:wood"},
+ {"group:wood", "default:obsidian_glass", "group:wood"},
+ {"group:wood", "group:wood", "group:wood"}
+ }
+ })
+
+ if minetest.get_modpath("moreblocks") then
+ minetest.register_craft({
+ output = "fachwerk:framed_glass 8",
+ recipe = {
+ {"group:wood", "group:wood", "group:wood"},
+ {"group:wood", "moreblocks:clean_glass", "group:wood"},
+ {"group:wood", "group:wood", "group:wood"}
+ }
+ })
+ end
\ No newline at end of file
--
2.34.1