forked from mtcontrib/homedecor_modpack
Better selection boxes and inventory textures for shingles and skylights.
Also added frosted glass skylight
This commit is contained in:
parent
ac25d1b851
commit
9dd2b5763c
12
crafts.lua
12
crafts.lua
|
@ -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( {
|
||||||
|
|
67
shingles.lua
67
shingles.lua
|
@ -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 }
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
BIN
textures/homedecor_shingles_asphalt_inv.png
Normal file
BIN
textures/homedecor_shingles_asphalt_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
BIN
textures/homedecor_shingles_terracotta_inv.png
Normal file
BIN
textures/homedecor_shingles_terracotta_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
BIN
textures/homedecor_shingles_wood_inv.png
Normal file
BIN
textures/homedecor_shingles_wood_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
BIN
textures/homedecor_skylight_frosted.png
Normal file
BIN
textures/homedecor_skylight_frosted.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 335 B |
BIN
textures/homedecor_skylight_frosted_inv.png
Normal file
BIN
textures/homedecor_skylight_frosted_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
textures/homedecor_skylight_inv.png
Normal file
BIN
textures/homedecor_skylight_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Loading…
Reference in New Issue
Block a user