summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh-v-smacker <hans-von-smacker+github@gmail.com>2018-09-23 07:19:30 +0300
committerh-v-smacker <hans-von-smacker+github@gmail.com>2018-09-23 07:19:30 +0300
commiteac138f56ff9fbccf4a3da846f16762086cb3181 (patch)
tree483e0ce11e4642559deb7e003c82baf74b14cb00
parentca7369d944dde40e51cff490903d6f5601ec42c7 (diff)
multiple glass panes
-rw-r--r--README.md4
-rw-r--r--glass_panes.lua97
-rw-r--r--init.lua4
-rw-r--r--textures/minetest_errata_double_glass_item.pngbin0 -> 225 bytes
-rw-r--r--textures/minetest_errata_quadruple_glass_item.pngbin0 -> 239 bytes
-rw-r--r--textures/minetest_errata_triple_glass_item.pngbin0 -> 263 bytes
6 files changed, 103 insertions, 2 deletions
diff --git a/README.md b/README.md
index a520d1c..de34ad7 100644
--- a/README.md
+++ b/README.md
@@ -7,6 +7,7 @@ By its nature, the mod is rather intrusive. It will actively try to alter and ov
* connectivity of xpanes - adds new groups for materials (e.g. sandstone) and allows panes to connect to them
* the new groups are prefixed with "me_" to avoid potential conflicts
* erasing books back into clean books
+* incompatibility of window glass panes with non-square window frames
### Introduces items
* obsidian glass panes
@@ -15,10 +16,11 @@ By its nature, the mod is rather intrusive. It will actively try to alter and ov
* sandstone cobble varieties, with stairs/slabs/microblocks, walls, pkarcs
* doors from moreblocks glass types (clean, iron, coal)
* locked glass doors (regular, obsidian, iron glass)
+* double, triple and quadruple glass panes to use with non-square corners
## Borrowed items
-This mod can borrow some items from other mods (in cases where the whole mod seems to much, but some of its contents are definitely something that should have been in the game from the get go). So far the list of such mods is this:
+This mod can borrow some items from other mods (in cases where the whole mod seems too much, but some of its contents are definitely something that should have been in the game from the get go). So far the list of such mods is this:
* Mintest Game Plus by Wuzzy http://repo.or.cz/minetest_mtg_plus.git
* paper walls and wooden bars
diff --git a/glass_panes.lua b/glass_panes.lua
new file mode 100644
index 0000000..3597a62
--- /dev/null
+++ b/glass_panes.lua
@@ -0,0 +1,97 @@
+
+-- Double pane: top is decorative and can noclip through some slopes and such
+
+minetest.register_node("minetest_errata:pane_flat_double", {
+ description = "Double Glass Pane",
+ drawtype = "nodebox",
+ tiles = {"xpanes_white.png", "xpanes_white.png", "default_glass.png"},
+ inventory_image = "minetest_errata_double_glass_item.png",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+
+ node_box = {
+ type = "fixed",
+ fixed = {{-1/2, -1/2, -1/32, 1/2, 3/2, 1/32}},
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {{-1/2, -1/2, -1/32, 1/2, 1/2, 1/32}},
+ },
+
+ groups = {cracky=3},
+ use_texture_alpha = true,
+})
+
+minetest.register_craft({output = "minetest_errata:pane_flat_double",
+ recipe ={
+ {"xpanes:pane_flat",},
+ {"xpanes:pane_flat",},
+ },
+})
+
+
+-- Triple pane: top and right part are decorative
+
+minetest.register_node("minetest_errata:pane_flat_triple", {
+ description = "Triple Glass Pane",
+ drawtype = "nodebox",
+ tiles = {"xpanes_white.png", "xpanes_white.png", "default_glass.png"},
+ inventory_image = "minetest_errata_triple_glass_item.png",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+
+ node_box = {
+ type = "fixed",
+ fixed = {{-1/2, -1/2, -1/32, 1/2, 3/2, 1/32},
+ {-1/2, -1/2, -1/32, 3/2, 1/2, 1/32}},
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {{-1/2, -1/2, -1/32, 1/2, 1/2, 1/32}},
+ },
+
+ groups = {cracky=3},
+ use_texture_alpha = true,
+})
+
+minetest.register_craft({output = "minetest_errata:pane_flat_triple",
+ recipe ={
+ {"xpanes:pane_flat",""},
+ {"xpanes:pane_flat","xpanes:pane_flat",},
+ },
+})
+
+
+-- Quadruple pane: all parts save for bottom left are decorative
+
+minetest.register_node("minetest_errata:pane_flat_quadruple", {
+ description = "Quadruple Glass Pane",
+ drawtype = "nodebox",
+ tiles = {"xpanes_white.png", "xpanes_white.png", "default_glass.png"},
+ inventory_image = "minetest_errata_quadruple_glass_item.png",
+ paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+
+ node_box = {
+ type = "fixed",
+ fixed = {{-1/2, -1/2, -1/32, 3/2, 3/2, 1/32}},
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {{-1/2, -1/2, -1/32, 1/2, 1/2, 1/32}},
+ },
+
+ groups = {cracky=3},
+ use_texture_alpha = true,
+})
+
+minetest.register_craft({output = "minetest_errata:pane_flat_quadruple",
+ recipe ={
+ {"xpanes:pane_flat","xpanes:pane_flat",},
+ {"xpanes:pane_flat","xpanes:pane_flat",},
+ },
+})
+
diff --git a/init.lua b/init.lua
index d410788..4c822f8 100644
--- a/init.lua
+++ b/init.lua
@@ -11,4 +11,6 @@ dofile(modpath.."/sandstone_cobble.lua")
dofile(modpath.."/missing_groups.lua")
-dofile(modpath.."/xpanes.lua") \ No newline at end of file
+dofile(modpath.."/xpanes.lua")
+
+dofile(modpath.."/glass_panes.lua") \ No newline at end of file
diff --git a/textures/minetest_errata_double_glass_item.png b/textures/minetest_errata_double_glass_item.png
new file mode 100644
index 0000000..4535613
--- /dev/null
+++ b/textures/minetest_errata_double_glass_item.png
Binary files differ
diff --git a/textures/minetest_errata_quadruple_glass_item.png b/textures/minetest_errata_quadruple_glass_item.png
new file mode 100644
index 0000000..6fe76f1
--- /dev/null
+++ b/textures/minetest_errata_quadruple_glass_item.png
Binary files differ
diff --git a/textures/minetest_errata_triple_glass_item.png b/textures/minetest_errata_triple_glass_item.png
new file mode 100644
index 0000000..a1be9af
--- /dev/null
+++ b/textures/minetest_errata_triple_glass_item.png
Binary files differ