add transparent vent and mesh

This commit is contained in:
BuckarooBanzay 2024-05-03 11:02:46 +02:00
parent 4bbe29fcd3
commit d4ec06f888
3 changed files with 36 additions and 0 deletions

View File

@ -1842,3 +1842,21 @@ minetest.register_craft({
{"scifi_nodes:octbl", "", "scifi_nodes:octbl"} {"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"}
}
})

View File

@ -50,6 +50,12 @@
"vent2": { "vent2": {
"description": "vent" "description": "vent"
}, },
"vent3": {
"description": "transparent vent",
"texture_name": "vent2",
"texture_modifier": "^[makealpha:33,33,33",
"drawtype": "glasslike"
},
"stripes": { "stripes": {
"description": "hazard stripes", "description": "hazard stripes",
"slat": true "slat": true
@ -94,6 +100,12 @@
"mesh2": { "mesh2": {
"description": "metal floormesh" "description": "metal floormesh"
}, },
"mesh3": {
"description": "transparent metal floormesh",
"texture_name": "mesh2",
"texture_modifier": "^[makealpha:19,19,19",
"drawtype": "glasslike"
},
"pipe": { "pipe": {
"description": "wall pipe" "description": "wall pipe"
}, },

View File

@ -598,9 +598,15 @@ for name, def in pairs(nodes) do
tiles = {"scifi_nodes_" .. def.texture_name .. ".png"} tiles = {"scifi_nodes_" .. def.texture_name .. ".png"}
end end
-- optional texture modifier
if def.texture_modifier then
tiles[1] = tiles[1] .. def.texture_modifier
end
-- Node Definition -- Node Definition
local node_def = { local node_def = {
description = def.description, description = def.description,
drawtype = def.drawtype or "normal",
tiles = tiles, tiles = tiles,
groups = {cracky=1, dig_generic = 3}, groups = {cracky=1, dig_generic = 3},
is_ground_content = false, is_ground_content = false,