D00Med update 20/11/17

>added coloured glass blocks
>fixed coloured glass panes
>added decorative nodes for towers
master
D00Med 2017-11-20 09:27:03 +10:00
parent 8e61299fd5
commit 2755801a14
10 changed files with 117 additions and 0 deletions

View File

@ -1246,6 +1246,29 @@ minetest.register_node("decoblocks:polar_bear_rug", {
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("decoblocks:plank_walkway", {
description = "Wood Plank Walkway",
tiles = {
"decoblocks_wood_planks.png",
"decoblocks_wood_planks.png",
"default_wood.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.5, 0.4375, -0.5, -0.3125, 0.5, 0.5}, -- NodeBox1
{-0.25, 0.4375, -0.4375, -0.0625, 0.5, 0.5}, -- NodeBox2
{0, 0.4375, -0.5, 0.1875, 0.5, 0.5}, -- NodeBox3
{0.25, 0.4375, -0.375, 0.4375, 0.5, 0.5}, -- NodeBox4
}
},
sounds = default.node_sound_wood_defaults(),
groups = {choppy=1,}
})
--stained glass
local colours = {
@ -1269,6 +1292,14 @@ local colours = {
for _, row in ipairs(colours) do
local colour = row[1]
local desc = row[2]
minetest.register_node("decoblocks:"..colour.."_glass", {
description = ""..desc.." Stained Glass",
drawtype = "glasslike",
tiles = {"decoblocks_"..colour.."_glass.png"},
use_texture_alpha = true,
sounds = default.node_sound_glass_defaults(),
groups = {cracky=1, oddly_breakable_by_hand=3, snappy=2}
})
xpanes.register_pane(""..colour.."_glass", {
description = ""..desc.." Stained Glass Pane",
textures = {"decoblocks_"..colour.."_glass.png","decoblocks_"..colour.."_glass.png","decoblocks_"..colour.."_glass.png"},

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -148,6 +148,52 @@ minetest.register_node("stm_nodes:hopper", {
end
})
minetest.register_node("stm_nodes:chimney_cap", {
description = "Tin Chimney Cap",
tiles = {
"stm_nodes_chimney_cap.png",
"stm_nodes_chimney_top.png",
"stm_nodes_chimney_cap_side.png",
},
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.3125, -0.125, -0.3125, 0.3125, 0, 0.3125}, -- NodeBox0
{-0.25, 0, -0.25, 0.25, 0.125, 0.25}, -- NodeBox1
{-0.0625, 0.1875, -0.0625, 0.0625, 0.5, 0.0625}, -- NodeBox2
{-0.1875, 0.125, -0.1875, 0.1875, 0.25, 0.1875}, -- NodeBox3
{-0.125, 0.25, -0.125, 0.125, 0.375, 0.125}, -- NodeBox4
}
},
sounds = default.node_sound_metal_defaults(),
groups = {cracky=1}
})
minetest.register_node("stm_nodes:chimney_cap2", {
description = "Copper Chimney Cap",
tiles = {
"stm_nodes_chimney_cap2.png",
"stm_nodes_chimney_top2.png",
"stm_nodes_chimney_cap_side2.png",
},
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.3125, -0.125, -0.3125, 0.3125, 0, 0.3125}, -- NodeBox0
{-0.25, 0, -0.25, 0.25, 0.125, 0.25}, -- NodeBox1
{-0.0625, 0.1875, -0.0625, 0.0625, 0.5, 0.0625}, -- NodeBox2
{-0.1875, 0.125, -0.1875, 0.1875, 0.25, 0.1875}, -- NodeBox3
{-0.125, 0.25, -0.125, 0.125, 0.375, 0.125}, -- NodeBox4
}
},
sounds = default.node_sound_metal_defaults(),
groups = {cracky=1}
})
minetest.register_node("stm_nodes:chimney", {
description = "Tin Chimney",
@ -225,6 +271,45 @@ minetest.register_abm({
end
})
minetest.register_node("stm_nodes:porthole", {
description = "Porthole",
tiles = {
"stm_nodes_block.png",
"stm_nodes_block.png",
"stm_nodes_block.png",
"stm_nodes_block.png",
"stm_nodes_porthole.png",
"stm_nodes_porthole.png"
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{0.1875, -0.3125, 0.3125, 0.3125, 0.3125, 0.5}, -- NodeBox1
{-0.3125, -0.3125, 0.3125, -0.1875, 0.3125, 0.5}, -- NodeBox2
{-0.3125, 0.1875, 0.3125, 0.3125, 0.3125, 0.5}, -- NodeBox3
{-0.3125, -0.3125, 0.3125, 0.3125, -0.1875, 0.5}, -- NodeBox4
{-0.25, 0.3125, 0.3125, 0.25, 0.375, 0.5}, -- NodeBox5
{0.3125, -0.25, 0.3125, 0.375, 0.25, 0.5}, -- NodeBox6
{-0.375, -0.25, 0.3125, -0.3125, 0.25, 0.5}, -- NodeBox7
{-0.25, -0.375, 0.3125, 0.25, -0.3125, 0.5}, -- NodeBox8
{-0.1875, 0.125, 0.3125, -0.125, 0.1875, 0.5}, -- NodeBox9
{0.125, 0.125, 0.3125, 0.1875, 0.1875, 0.5}, -- NodeBox10
{-0.1875, -0.1875, 0.3125, -0.125, -0.125, 0.5}, -- NodeBox11
{0.125, -0.1875, 0.3125, 0.1875, -0.125, 0.5}, -- NodeBox12
{-0.5, -0.5, 0.5, -0.1875, 0.5, 0.5}, -- NodeBox14
{-0.5, 0.25, 0.5, 0.5, 0.5, 0.5}, -- NodeBox15
{0.25, -0.5, 0.5, 0.5, 0.5, 0.5}, -- NodeBox16
{-0.5, -0.5, 0.5, 0.5, -0.25, 0.5}, -- NodeBox17
{-0.1875, -0.1875, 0.375, 0.1875, 0.1875, 0.375}, -- NodeBox18
}
},
sounds = default.node_sound_metal_defaults,
groups = {cracky=1, snappy=1}
})
minetest.register_node("stm_nodes:tank", {
description = "Small Tin Boiler",
tiles = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 B

View File

@ -126,6 +126,7 @@ function xpanes.register_pane(name, def)
sunlight_propagates = true,
description = def.description,
tiles = {def.textures[3], def.textures[3], def.textures[1]},
use_texture_alpha = true,
groups = groups,
drop = "xpanes:" .. name .. "_flat",
sounds = def.sounds,