diff --git a/crafts.lua b/crafts.lua index 9383cc3..c1b7aa9 100644 --- a/crafts.lua +++ b/crafts.lua @@ -1842,3 +1842,21 @@ minetest.register_craft({ {"scifi_nodes:octbl", "", "scifi_nodes:octbl"} } }) + +minetest.register_craft({ + output = "scifi_nodes:vent3 4", + recipe = { + {"scifi_nodes:vent2", "", "scifi_nodes:vent2"}, + {"", "scifi_nodes:glass", ""}, + {"scifi_nodes:vent2", "", "scifi_nodes:vent2"} + } +}) + +minetest.register_craft({ + output = "scifi_nodes:mesh3 4", + recipe = { + {"scifi_nodes:mesh2", "", "scifi_nodes:mesh2"}, + {"", "scifi_nodes:glass", ""}, + {"scifi_nodes:mesh2", "", "scifi_nodes:mesh2"} + } +}) diff --git a/nodes.json b/nodes.json index 47f5db7..71efed8 100644 --- a/nodes.json +++ b/nodes.json @@ -50,6 +50,12 @@ "vent2": { "description": "vent" }, + "vent3": { + "description": "transparent vent", + "texture_name": "vent2", + "texture_modifier": "^[makealpha:33,33,33", + "drawtype": "glasslike" + }, "stripes": { "description": "hazard stripes", "slat": true @@ -94,6 +100,12 @@ "mesh2": { "description": "metal floormesh" }, + "mesh3": { + "description": "transparent metal floormesh", + "texture_name": "mesh2", + "texture_modifier": "^[makealpha:19,19,19", + "drawtype": "glasslike" + }, "pipe": { "description": "wall pipe" }, diff --git a/nodes.lua b/nodes.lua index 128c3d3..8b5049a 100644 --- a/nodes.lua +++ b/nodes.lua @@ -598,9 +598,15 @@ for name, def in pairs(nodes) do tiles = {"scifi_nodes_" .. def.texture_name .. ".png"} end + -- optional texture modifier + if def.texture_modifier then + tiles[1] = tiles[1] .. def.texture_modifier + end + -- Node Definition local node_def = { description = def.description, + drawtype = def.drawtype or "normal", tiles = tiles, groups = {cracky=1, dig_generic = 3}, is_ground_content = false,