forked from mtcontrib/scifi_nodes
Compare commits
3 Commits
master
...
truchet-ti
Author | SHA1 | Date | |
---|---|---|---|
3a7ca33b1d | |||
2eb5841472 | |||
689a17a80e |
5
init.lua
5
init.lua
@ -35,6 +35,7 @@ dofile(MP.."/octagon_panes.lua")
|
||||
dofile(MP.."/octagon_glass.lua")
|
||||
dofile(MP.."/forcefield.lua")
|
||||
dofile(MP.."/crafts.lua")
|
||||
dofile(MP.."/tiles.lua")
|
||||
|
||||
if minetest.get_modpath("letters") then
|
||||
-- register letter nodes
|
||||
@ -48,6 +49,4 @@ end
|
||||
|
||||
if minetest.get_modpath("mtt") and mtt.enabled then
|
||||
dofile(MP .. "/mtt.lua")
|
||||
end
|
||||
|
||||
minetest.log("action", "[scifi_nodes] loaded.")
|
||||
end
|
@ -14,12 +14,14 @@
|
||||
},
|
||||
"super_white": {
|
||||
"description": "Super Plastic",
|
||||
"colorable": true,
|
||||
"light": 11,
|
||||
"sounds": "stone",
|
||||
"texture_name": "white2"
|
||||
},
|
||||
"ultra_white": {
|
||||
"description": "Ultra Plastic",
|
||||
"colorable": true,
|
||||
"light": 14,
|
||||
"sounds": "stone",
|
||||
"texture_name": "white2"
|
||||
@ -122,7 +124,8 @@
|
||||
"description": "transparent metal floormesh",
|
||||
"texture_name": "mesh",
|
||||
"texture_modifier": "^[contrast:10:-50^[makealpha:0,0,0",
|
||||
"drawtype": "glasslike"
|
||||
"drawtype": "glasslike",
|
||||
"sunlight_propagates": true
|
||||
},
|
||||
"pipe": {
|
||||
"description": "wall pipe"
|
||||
@ -322,4 +325,4 @@
|
||||
"description": "Black plate",
|
||||
"paramtype2": "none"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -520,6 +520,7 @@ for name, def in pairs(nodes) do
|
||||
local node_def = {
|
||||
description = def.description,
|
||||
drawtype = def.drawtype or "normal",
|
||||
sunlight_propagates = def.sunlight_propagates,
|
||||
tiles = tiles,
|
||||
groups = {cracky=1, dig_generic = 3},
|
||||
is_ground_content = false,
|
||||
|
BIN
textures/scifi_nodes_truchet_tile.png
Normal file
BIN
textures/scifi_nodes_truchet_tile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
13
tiles.lua
Normal file
13
tiles.lua
Normal file
@ -0,0 +1,13 @@
|
||||
for _, color in ipairs({"purple", "greenmetal", "bluemetal", "grey"}) do
|
||||
minetest.register_node("scifi_nodes:" .. color .. "_tile", {
|
||||
description = color .. " tile",
|
||||
groups = {
|
||||
cracky = 1
|
||||
},
|
||||
is_ground_content = false,
|
||||
sounds = scifi_nodes.node_sound_metal_defaults(),
|
||||
paramtype2 = "facedir",
|
||||
use_texture_alpha = "blend",
|
||||
tiles = {"scifi_nodes_" .. color .. ".png^scifi_nodes_truchet_tile.png"}
|
||||
})
|
||||
end
|
Reference in New Issue
Block a user