forked from mtcontrib/scifi_nodes
add transparent vent and mesh
This commit is contained in:
parent
4bbe29fcd3
commit
d4ec06f888
18
crafts.lua
18
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"}
|
||||
}
|
||||
})
|
||||
|
12
nodes.json
12
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"
|
||||
},
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user