Better selection boxes and inventory textures for shingles and skylights.

Also added frosted glass skylight
This commit is contained in:
Vanessa Ezekowitz 2013-04-29 03:08:36 -04:00
parent ac25d1b851
commit 9dd2b5763c
8 changed files with 62 additions and 17 deletions

View File

@ -394,6 +394,18 @@ minetest.register_craft( {
}, },
}) })
minetest.register_craft( {
type = "shapeless",
output = 'homedecor:skylight',
recipe = { 'homedecor:skylight_frosted' },
})
minetest.register_craft( {
type = "shapeless",
output = 'homedecor:skylight_frosted',
recipe = { 'homedecor:skylight' },
})
-- Various colors of shutters -- Various colors of shutters
minetest.register_craft( { minetest.register_craft( {

View File

@ -9,30 +9,56 @@ else
S = function ( s ) return s end S = function ( s ) return s end
end end
minetest.register_node('homedecor:shingles_wood', {
description = S("Wood Shingles"),
drawtype = 'raillike',
tiles = { 'homedecor_shingles_wood.png' },
wield_image = 'homedecor_shingles_wood.png',
inventory_image = 'homedecor_shingles_wood.png',
paramtype = 'light',
sunlight_propagates = false,
walkable = false,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
})
minetest.register_node('homedecor:skylight', { minetest.register_node('homedecor:skylight', {
description = S("Glass Skylight"), description = S("Glass Skylight"),
drawtype = 'raillike', drawtype = 'raillike',
tiles = { 'default_glass.png' }, tiles = { 'default_glass.png' },
wield_image = 'default_glass.png', wield_image = 'default_glass.png',
inventory_image = 'default_glass.png', inventory_image = 'homedecor_skylight_inv.png',
paramtype = 'light', paramtype = 'light',
sunlight_propagates = true, sunlight_propagates = true,
walkable = true, walkable = true,
groups = { snappy = 3 }, groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
}
})
minetest.register_node('homedecor:skylight_frosted', {
description = S("Glass Skylight"),
drawtype = 'raillike',
tiles = { 'homedecor_skylight_frosted.png' },
wield_image = 'homedecor_skylight_frosted.png',
inventory_image = 'homedecor_skylight_frosted_inv.png',
paramtype = 'light',
sunlight_propagates = true,
use_texture_alpha = true,
walkable = true,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
}
})
minetest.register_node('homedecor:shingles_wood', {
description = S("Wood Shingles"),
drawtype = 'raillike',
tiles = { 'homedecor_shingles_wood.png' },
wield_image = 'homedecor_shingles_wood.png',
inventory_image = 'homedecor_shingles_wood_inv.png',
paramtype = 'light',
sunlight_propagates = false,
walkable = false,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
}
}) })
minetest.register_node('homedecor:shingles_asphalt', { minetest.register_node('homedecor:shingles_asphalt', {
@ -40,12 +66,16 @@ minetest.register_node('homedecor:shingles_asphalt', {
drawtype = 'raillike', drawtype = 'raillike',
tiles = { 'homedecor_shingles_asphalt.png' }, tiles = { 'homedecor_shingles_asphalt.png' },
wield_image = 'homedecor_shingles_asphalt.png', wield_image = 'homedecor_shingles_asphalt.png',
inventory_image = 'homedecor_shingles_asphalt.png', inventory_image = 'homedecor_shingles_asphalt_inv.png',
paramtype = 'light', paramtype = 'light',
sunlight_propagates = false, sunlight_propagates = false,
walkable = false, walkable = false,
groups = { snappy = 3 }, groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
}
}) })
minetest.register_node('homedecor:shingles_terracotta', { minetest.register_node('homedecor:shingles_terracotta', {
@ -53,13 +83,16 @@ minetest.register_node('homedecor:shingles_terracotta', {
drawtype = 'raillike', drawtype = 'raillike',
tiles = { 'homedecor_shingles_terracotta.png' }, tiles = { 'homedecor_shingles_terracotta.png' },
wield_image = 'homedecor_shingles_terracotta.png', wield_image = 'homedecor_shingles_terracotta.png',
inventory_image = 'homedecor_shingles_terracotta.png', inventory_image = 'homedecor_shingles_terracotta_inv.png',
paramtype = 'light', paramtype = 'light',
sunlight_propagates = false, sunlight_propagates = false,
walkable = false, walkable = false,
groups = { snappy = 3 }, groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
drop = 'homedecor:roof_tile_terracotta 4', drop = 'homedecor:roof_tile_terracotta 4',
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
}
}) })

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB