1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00

Noticed I technically had left/right textures swapped on a few blocks.

The textures were drawn to counteract this, without my realizing I was doing
just that. :-) Fixed.  Also replaced all "tile_images" references with "tiles",
since the former is deprecated in favor of the latter.
This commit is contained in:
Vanessa Ezekowitz 2012-07-28 03:28:14 -04:00
parent d022198acb
commit fcca159f48
15 changed files with 713 additions and 302 deletions

View File

@ -1,6 +1,11 @@
Changelog Changelog
--------- ---------
2012-07-28: Noticed I technically had left/right textures swapped on a few
blocks. The textures were drawn to counteract this, without my realizing I was
doing just that. :-) Fixed. Also replaced all "tile_images" references with
"tiles", since the former is deprecated in favor of the latter.
2012-07-26: Updated to use the Vessels mod to give back empty dye bottles. 2012-07-26: Updated to use the Vessels mod to give back empty dye bottles.
2012-07-24: Made all objects that use a dye require a more appropriate color, 2012-07-24: Made all objects that use a dye require a more appropriate color,

View File

@ -44,7 +44,7 @@ end
minetest.register_node('homedecor:exterior_door_fancy', { minetest.register_node('homedecor:exterior_door_fancy', {
description = "Fancy Wood/Glass Exterior Door (Left Opening)", description = "Fancy Wood/Glass Exterior Door (Left Opening)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_exterior_door_fancy.png' }, tiles = { 'homedecor_exterior_door_fancy.png' },
inventory_image = 'homedecor_exterior_door_fancy.png', inventory_image = 'homedecor_exterior_door_fancy.png',
wield_image = 'homedecor_exterior_door_fancy.png', wield_image = 'homedecor_exterior_door_fancy.png',
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
@ -154,7 +154,7 @@ minetest.register_on_dignode( on_exterior_door_fancy_digged )
minetest.register_node('homedecor:exterior_door_fancy_a_c', { minetest.register_node('homedecor:exterior_door_fancy_a_c', {
description = "Fancy Wood/Glass Exterior Door (top, closed)", description = "Fancy Wood/Glass Exterior Door (top, closed)",
tile_images = { 'homedecor_exterior_door_fancy_a.png' }, tiles = { 'homedecor_exterior_door_fancy_a.png' },
inventory_image = 'homedecor_exterior_door_fancy_a.png', inventory_image = 'homedecor_exterior_door_fancy_a.png',
drawtype = 'signlike', drawtype = 'signlike',
sunlight_propagates = false, sunlight_propagates = false,
@ -169,7 +169,7 @@ minetest.register_node('homedecor:exterior_door_fancy_a_c', {
minetest.register_node('homedecor:exterior_door_fancy_b_c', { minetest.register_node('homedecor:exterior_door_fancy_b_c', {
description = "Fancy Wood/Glass Exterior Door (bottom, closed)", description = "Fancy Wood/Glass Exterior Door (bottom, closed)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_exterior_door_fancy_b.png' }, tiles = { 'homedecor_exterior_door_fancy_b.png' },
inventory_image = 'homedecor_exterior_door_fancy_b.png', inventory_image = 'homedecor_exterior_door_fancy_b.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -183,7 +183,7 @@ minetest.register_node('homedecor:exterior_door_fancy_b_c', {
minetest.register_node('homedecor:exterior_door_fancy_a_o', { minetest.register_node('homedecor:exterior_door_fancy_a_o', {
description = "Fancy Wood/Glass Exterior Door (top, open)", description = "Fancy Wood/Glass Exterior Door (top, open)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_exterior_door_fancy_a_r.png' }, tiles = { 'homedecor_exterior_door_fancy_a_r.png' },
inventory_image = 'homedecor_exterior_door_fancy_a_r.png', inventory_image = 'homedecor_exterior_door_fancy_a_r.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -197,7 +197,7 @@ minetest.register_node('homedecor:exterior_door_fancy_a_o', {
minetest.register_node('homedecor:exterior_door_fancy_b_o', { minetest.register_node('homedecor:exterior_door_fancy_b_o', {
description = "Fancy Wood/Glass Exterior Door (bottom, open)", description = "Fancy Wood/Glass Exterior Door (bottom, open)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_exterior_door_fancy_b_r.png' }, tiles = { 'homedecor_exterior_door_fancy_b_r.png' },
inventory_image = 'homedecor_exterior_door_fancy_b_r.png', inventory_image = 'homedecor_exterior_door_fancy_b_r.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -218,7 +218,7 @@ minetest.register_node('homedecor:exterior_door_fancy_b_o', {
minetest.register_node('homedecor:exterior_door_fancy_right', { minetest.register_node('homedecor:exterior_door_fancy_right', {
description = "Fancy Wood/Glass Exterior Door (Right Opening)", description = "Fancy Wood/Glass Exterior Door (Right Opening)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_exterior_door_fancy_right.png' }, tiles = { 'homedecor_exterior_door_fancy_right.png' },
inventory_image = 'homedecor_exterior_door_fancy_right.png', inventory_image = 'homedecor_exterior_door_fancy_right.png',
wield_image = 'homedecor_exterior_door_fancy_right.png', wield_image = 'homedecor_exterior_door_fancy_right.png',
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
@ -330,7 +330,7 @@ minetest.register_on_dignode( on_exterior_door_fancy_digged_right )
minetest.register_node('homedecor:exterior_door_fancy_a_c_right', { minetest.register_node('homedecor:exterior_door_fancy_a_c_right', {
description = "Fancy Wood/Glass Exterior Door (top, closed, right)", description = "Fancy Wood/Glass Exterior Door (top, closed, right)",
tile_images = { 'homedecor_exterior_door_fancy_a_r.png' }, tiles = { 'homedecor_exterior_door_fancy_a_r.png' },
inventory_image = 'homedecor_exterior_door_fancy_a_r.png', inventory_image = 'homedecor_exterior_door_fancy_a_r.png',
drawtype = 'signlike', drawtype = 'signlike',
sunlight_propagates = false, sunlight_propagates = false,
@ -345,7 +345,7 @@ minetest.register_node('homedecor:exterior_door_fancy_a_c_right', {
minetest.register_node('homedecor:exterior_door_fancy_b_c_right', { minetest.register_node('homedecor:exterior_door_fancy_b_c_right', {
description = "Fancy Wood/Glass Exterior Door (bottom, closed, right)", description = "Fancy Wood/Glass Exterior Door (bottom, closed, right)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_exterior_door_fancy_b_r.png' }, tiles = { 'homedecor_exterior_door_fancy_b_r.png' },
inventory_image = 'homedecor_exterior_door_fancy_b_r.png', inventory_image = 'homedecor_exterior_door_fancy_b_r.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -359,7 +359,7 @@ minetest.register_node('homedecor:exterior_door_fancy_b_c_right', {
minetest.register_node('homedecor:exterior_door_fancy_a_o_right', { minetest.register_node('homedecor:exterior_door_fancy_a_o_right', {
description = "Fancy Wood/Glass Exterior Door (top, open, right)", description = "Fancy Wood/Glass Exterior Door (top, open, right)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_exterior_door_fancy_a.png' }, tiles = { 'homedecor_exterior_door_fancy_a.png' },
inventory_image = 'homedecor_exterior_door_fancy_a.png', inventory_image = 'homedecor_exterior_door_fancy_a.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -373,7 +373,7 @@ minetest.register_node('homedecor:exterior_door_fancy_a_o_right', {
minetest.register_node('homedecor:exterior_door_fancy_b_o_right', { minetest.register_node('homedecor:exterior_door_fancy_b_o_right', {
description = "Fancy Wood/Glass Exterior Door (bottom, open, right)", description = "Fancy Wood/Glass Exterior Door (bottom, open, right)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_exterior_door_fancy_b.png' }, tiles = { 'homedecor_exterior_door_fancy_b.png' },
inventory_image = 'homedecor_exterior_door_fancy_b.png', inventory_image = 'homedecor_exterior_door_fancy_b.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",

View File

@ -1,8 +1,12 @@
-- Mahogany "folding" doors - part of home decor mod by VanessaE -- Fancy Exterior doors - part of home decor mod by VanessaE
-- 2012-06-10 -- 2012-06-10
-- --
-- Copied and modified from Minetest's default doors mod. -- Copied and modified from Minetest's default doors mod.
-- --
-- Textures derived from...
-- http://commons.wikimedia.org/wiki/File:Front_door_of_Morey_Mansion.jpg
-- ...plus the standard Minetest logo.
--
-- License: GPL -- License: GPL
-- --
@ -20,7 +24,7 @@ local WALLPZr = 5
local dbg = function(s) local dbg = function(s)
if DEBUG == 1 then if DEBUG == 1 then
print('[FOLDINGDOORS] ' .. s) print('[ExteriorDoorFancy] ' .. s)
end end
end end
@ -37,21 +41,21 @@ end
-- Actual nodes that you place -- Actual nodes that you place
minetest.register_node('homedecor:folding_door_mahogany', { minetest.register_node('homedecor:exterior_door_fancy', {
description = "Mahogany Folding Door (Left Opening)", description = "Fancy Wood/Glass Exterior Door (Left Opening)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany.png' }, tile_images = { 'homedecor_exterior_door_fancy.png' },
inventory_image = 'homedecor_folding_door_mahogany.png', inventory_image = 'homedecor_exterior_door_fancy.png',
wield_image = 'homedecor_folding_door_mahogany.png', wield_image = 'homedecor_exterior_door_fancy.png',
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
selection_box = { type = "wallmounted" }, selection_box = { type = "wallmounted" },
groups = { choppy = 2, dig_immediate=2 }, groups = { choppy = 2, dig_immediate=2 },
}) })
-- Mahogany door functions -- Fancy Exterior door functions
local on_mahogany_folding_door_placed = function( pos, node, placer ) local on_exterior_door_fancy_placed = function( pos, node, placer )
if node.name ~= 'homedecor:folding_door_mahogany' then return end if node.name ~= 'homedecor:exterior_door_fancy' then return end
upos = { x = pos.x, y = pos.y - 1, z = pos.z } upos = { x = pos.x, y = pos.y - 1, z = pos.z }
apos = { x = pos.x, y = pos.y + 1, z = pos.z } apos = { x = pos.x, y = pos.y + 1, z = pos.z }
@ -71,20 +75,20 @@ local on_mahogany_folding_door_placed = function( pos, node, placer )
end end
if und.name == 'air' then if und.name == 'air' then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_a_c', param2 = newparam } ) minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_a_c', param2 = newparam } )
minetest.env:add_node( upos, { name = 'homedecor:folding_door_mahogany_b_c', param2 = newparam } ) minetest.env:add_node( upos, { name = 'homedecor:exterior_door_fancy_b_c', param2 = newparam } )
elseif abv.name == 'air' then elseif abv.name == 'air' then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_b_c', param2 = newparam } ) minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_b_c', param2 = newparam } )
minetest.env:add_node( apos, { name = 'homedecor:folding_door_mahogany_a_c', param2 = newparam } ) minetest.env:add_node( apos, { name = 'homedecor:exterior_door_fancy_a_c', param2 = newparam } )
else else
minetest.env:remove_node( pos ) minetest.env:remove_node( pos )
placer:get_inventory():add_item( "main", 'homedecor:folding_door_mahogany' ) placer:get_inventory():add_item( "main", 'homedecor:exterior_door_fancy' )
minetest.chat_send_player( placer:get_player_name(), 'not enough space' ) minetest.chat_send_player( placer:get_player_name(), 'not enough space' )
end end
end end
local on_mahogany_folding_door_punched = function( pos, node, puncher ) local on_exterior_door_fancy_punched = function( pos, node, puncher )
if string.find( node.name, 'homedecor:folding_door_mahogany' ) == nil then return end if string.find( node.name, 'homedecor:exterior_door_fancy' ) == nil then return end
upos = { x = pos.x, y = pos.y - 1, z = pos.z } upos = { x = pos.x, y = pos.y - 1, z = pos.z }
apos = { x = pos.x, y = pos.y + 1, z = pos.z } apos = { x = pos.x, y = pos.y + 1, z = pos.z }
@ -111,47 +115,47 @@ local on_mahogany_folding_door_punched = function( pos, node, puncher )
end end
end end
if ( node.name == 'homedecor:folding_door_mahogany_a_c' ) then if ( node.name == 'homedecor:exterior_door_fancy_a_c' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_a_o', param2 = newparam } ) minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_a_o', param2 = newparam } )
minetest.env:add_node( upos, { name = 'homedecor:folding_door_mahogany_b_o', param2 = newparam } ) minetest.env:add_node( upos, { name = 'homedecor:exterior_door_fancy_b_o', param2 = newparam } )
elseif ( node.name == 'homedecor:folding_door_mahogany_b_c' ) then elseif ( node.name == 'homedecor:exterior_door_fancy_b_c' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_b_o', param2 = newparam } ) minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_b_o', param2 = newparam } )
minetest.env:add_node( apos, { name = 'homedecor:folding_door_mahogany_a_o', param2 = newparam } ) minetest.env:add_node( apos, { name = 'homedecor:exterior_door_fancy_a_o', param2 = newparam } )
elseif ( node.name == 'homedecor:folding_door_mahogany_a_o' ) then elseif ( node.name == 'homedecor:exterior_door_fancy_a_o' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_a_c', param2 = newparam } ) minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_a_c', param2 = newparam } )
minetest.env:add_node( upos, { name = 'homedecor:folding_door_mahogany_b_c', param2 = newparam } ) minetest.env:add_node( upos, { name = 'homedecor:exterior_door_fancy_b_c', param2 = newparam } )
elseif ( node.name == 'homedecor:folding_door_mahogany_b_o' ) then elseif ( node.name == 'homedecor:exterior_door_fancy_b_o' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_b_c', param2 = newparam } ) minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_b_c', param2 = newparam } )
minetest.env:add_node( apos, { name = 'homedecor:folding_door_mahogany_a_c', param2 = newparam } ) minetest.env:add_node( apos, { name = 'homedecor:exterior_door_fancy_a_c', param2 = newparam } )
end end
end end
local on_mahogany_folding_door_digged = function( pos, node, digger ) local on_exterior_door_fancy_digged = function( pos, node, digger )
upos = { x = pos.x, y = pos.y - 1, z = pos.z } upos = { x = pos.x, y = pos.y - 1, z = pos.z }
apos = { x = pos.x, y = pos.y + 1, z = pos.z } apos = { x = pos.x, y = pos.y + 1, z = pos.z }
if ( node.name == 'homedecor:folding_door_mahogany_a_c' ) or ( node.name == 'homedecor:folding_door_mahogany_a_o' ) then if ( node.name == 'homedecor:exterior_door_fancy_a_c' ) or ( node.name == 'homedecor:exterior_door_fancy_a_o' ) then
minetest.env:remove_node( upos ) minetest.env:remove_node( upos )
elseif ( node.name == 'homedecor:folding_door_mahogany_b_c' ) or ( node.name == 'homedecor:folding_door_mahogany_b_o' ) then elseif ( node.name == 'homedecor:exterior_door_fancy_b_c' ) or ( node.name == 'homedecor:exterior_door_fancy_b_o' ) then
minetest.env:remove_node( apos ) minetest.env:remove_node( apos )
end end
end end
minetest.register_on_placenode( on_mahogany_folding_door_placed ) minetest.register_on_placenode( on_exterior_door_fancy_placed )
minetest.register_on_punchnode( on_mahogany_folding_door_punched ) minetest.register_on_punchnode( on_exterior_door_fancy_punched )
minetest.register_on_dignode( on_mahogany_folding_door_digged ) minetest.register_on_dignode( on_exterior_door_fancy_digged )
-- Nodes used to build up mahogany doors -- Nodes used to build up Fancy Exterior doors
minetest.register_node('homedecor:folding_door_mahogany_a_c', { minetest.register_node('homedecor:exterior_door_fancy_a_c', {
description = "Mahogany Folding Door (top, closed)", description = "Fancy Wood/Glass Exterior Door (top, closed)",
tile_images = { 'homedecor_folding_door_mahogany_a.png' }, tile_images = { 'homedecor_exterior_door_fancy_a.png' },
inventory_image = 'homedecor_folding_door_mahogany_a.png', inventory_image = 'homedecor_exterior_door_fancy_a.png',
drawtype = 'signlike', drawtype = 'signlike',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -159,49 +163,49 @@ minetest.register_node('homedecor:folding_door_mahogany_a_c', {
walkable = true, walkable = true,
groups = { choppy = 2, dig_immediate=2 }, groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted" }, selection_box = { type = "wallmounted" },
drop = 'homedecor:folding_door_mahogany', drop = 'homedecor:exterior_door_fancy',
}) })
minetest.register_node('homedecor:folding_door_mahogany_b_c', { minetest.register_node('homedecor:exterior_door_fancy_b_c', {
description = "Mahogany Folding Door (bottom, closed)", description = "Fancy Wood/Glass Exterior Door (bottom, closed)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany_b.png' }, tile_images = { 'homedecor_exterior_door_fancy_b.png' },
inventory_image = 'homedecor_folding_door_mahogany_b.png', inventory_image = 'homedecor_exterior_door_fancy_b.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
walkable = true, walkable = true,
groups = { choppy = 2, dig_immediate=2 }, groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted" }, selection_box = { type = "wallmounted" },
drop = 'homedecor:folding_door_mahogany', drop = 'homedecor:exterior_door_fancy',
}) })
minetest.register_node('homedecor:folding_door_mahogany_a_o', { minetest.register_node('homedecor:exterior_door_fancy_a_o', {
description = "Mahogany Folding Door (top, open)", description = "Fancy Wood/Glass Exterior Door (top, open)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany_a_r.png' }, tile_images = { 'homedecor_exterior_door_fancy_a_r.png' },
inventory_image = 'homedecor_folding_door_mahogany_a_r.png', inventory_image = 'homedecor_exterior_door_fancy_a_r.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
walkable = false, walkable = false,
groups = { choppy = 2, dig_immediate=2 }, groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted", }, selection_box = { type = "wallmounted", },
drop = 'homedecor:folding_door_mahogany', drop = 'homedecor:exterior_door_fancy',
}) })
minetest.register_node('homedecor:folding_door_mahogany_b_o', { minetest.register_node('homedecor:exterior_door_fancy_b_o', {
description = "Mahogany Folding Door (bottom, open)", description = "Fancy Wood/Glass Exterior Door (bottom, open)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany_b_r.png' }, tile_images = { 'homedecor_exterior_door_fancy_b_r.png' },
inventory_image = 'homedecor_folding_door_mahogany_b_r.png', inventory_image = 'homedecor_exterior_door_fancy_b_r.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
paramtype2 = 'wallmounted', paramtype2 = 'wallmounted',
walkable = false, walkable = false,
groups = { choppy = 2, dig_immediate=2 }, groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted", }, selection_box = { type = "wallmounted", },
drop = 'homedecor:folding_door_mahogany', drop = 'homedecor:exterior_door_fancy',
}) })
@ -211,22 +215,22 @@ minetest.register_node('homedecor:folding_door_mahogany_b_o', {
-- Actual nodes that you place -- Actual nodes that you place
minetest.register_node('homedecor:folding_door_mahogany_right', { minetest.register_node('homedecor:exterior_door_fancy_right', {
description = "Mahogany Folding Door (Right Opening)", description = "Fancy Wood/Glass Exterior Door (Right Opening)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany_right.png' }, tile_images = { 'homedecor_exterior_door_fancy_right.png' },
inventory_image = 'homedecor_folding_door_mahogany_right.png', inventory_image = 'homedecor_exterior_door_fancy_right.png',
wield_image = 'homedecor_folding_door_mahogany_right.png', wield_image = 'homedecor_exterior_door_fancy_right.png',
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
selection_box = { type = "wallmounted" }, selection_box = { type = "wallmounted" },
groups = { choppy = 2, dig_immediate=2 }, groups = { choppy = 2, dig_immediate=2 },
}) })
-- Mahogany door functions -- Fancy Exterior door functions
local on_mahogany_folding_door_placed_right = function( pos, node, placer ) local on_exterior_door_fancy_placed_right = function( pos, node, placer )
if node.name ~= 'homedecor:folding_door_mahogany_right' then return end if node.name ~= 'homedecor:exterior_door_fancy_right' then return end
upos = { x = pos.x, y = pos.y - 1, z = pos.z } upos = { x = pos.x, y = pos.y - 1, z = pos.z }
apos = { x = pos.x, y = pos.y + 1, z = pos.z } apos = { x = pos.x, y = pos.y + 1, z = pos.z }
@ -246,21 +250,21 @@ local on_mahogany_folding_door_placed_right = function( pos, node, placer )
end end
if und.name == 'air' then if und.name == 'air' then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_a_c_right', param2 = newparam } ) minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_a_c_right', param2 = newparam } )
minetest.env:add_node( upos, { name = 'homedecor:folding_door_mahogany_b_c_right', param2 = newparam } ) minetest.env:add_node( upos, { name = 'homedecor:exterior_door_fancy_b_c_right', param2 = newparam } )
elseif abv.name == 'air' then elseif abv.name == 'air' then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_b_c_right', param2 = newparam } ) minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_b_c_right', param2 = newparam } )
minetest.env:add_node( apos, { name = 'homedecor:folding_door_mahogany_a_c_right', param2 = newparam } ) minetest.env:add_node( apos, { name = 'homedecor:exterior_door_fancy_a_c_right', param2 = newparam } )
else else
minetest.env:remove_node( pos ) minetest.env:remove_node( pos )
placer:get_inventory():add_item( "main", 'homedecor:folding_door_mahogany_right' ) placer:get_inventory():add_item( "main", 'homedecor:exterior_door_fancy_right' )
minetest.chat_send_player( placer:get_player_name(), 'not enough space' ) minetest.chat_send_player( placer:get_player_name(), 'not enough space' )
end end
end end
local on_mahogany_folding_door_punched_right = function( pos, node, puncher ) local on_exterior_door_fancy_punched_right = function( pos, node, puncher )
if string.find( node.name, 'homedecor:folding_door_mahogany' ) == nil then return end if string.find( node.name, 'homedecor:exterior_door_fancy' ) == nil then return end
upos = { x = pos.x, y = pos.y - 1, z = pos.z } upos = { x = pos.x, y = pos.y - 1, z = pos.z }
apos = { x = pos.x, y = pos.y + 1, z = pos.z } apos = { x = pos.x, y = pos.y + 1, z = pos.z }
@ -287,47 +291,47 @@ local on_mahogany_folding_door_punched_right = function( pos, node, puncher )
end end
end end
if ( node.name == 'homedecor:folding_door_mahogany_a_c_right' ) then if ( node.name == 'homedecor:exterior_door_fancy_a_c_right' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_a_o_right', param2 = newparam } ) minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_a_o_right', param2 = newparam } )
minetest.env:add_node( upos, { name = 'homedecor:folding_door_mahogany_b_o_right', param2 = newparam } ) minetest.env:add_node( upos, { name = 'homedecor:exterior_door_fancy_b_o_right', param2 = newparam } )
elseif ( node.name == 'homedecor:folding_door_mahogany_b_c_right' ) then elseif ( node.name == 'homedecor:exterior_door_fancy_b_c_right' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_b_o_right', param2 = newparam } ) minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_b_o_right', param2 = newparam } )
minetest.env:add_node( apos, { name = 'homedecor:folding_door_mahogany_a_o_right', param2 = newparam } ) minetest.env:add_node( apos, { name = 'homedecor:exterior_door_fancy_a_o_right', param2 = newparam } )
elseif ( node.name == 'homedecor:folding_door_mahogany_a_o_right' ) then elseif ( node.name == 'homedecor:exterior_door_fancy_a_o_right' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_a_c_right', param2 = newparam } ) minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_a_c_right', param2 = newparam } )
minetest.env:add_node( upos, { name = 'homedecor:folding_door_mahogany_b_c_right', param2 = newparam } ) minetest.env:add_node( upos, { name = 'homedecor:exterior_door_fancy_b_c_right', param2 = newparam } )
elseif ( node.name == 'homedecor:folding_door_mahogany_b_o_right' ) then elseif ( node.name == 'homedecor:exterior_door_fancy_b_o_right' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_b_c_right', param2 = newparam } ) minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_b_c_right', param2 = newparam } )
minetest.env:add_node( apos, { name = 'homedecor:folding_door_mahogany_a_c_right', param2 = newparam } ) minetest.env:add_node( apos, { name = 'homedecor:exterior_door_fancy_a_c_right', param2 = newparam } )
end end
end end
local on_mahogany_folding_door_digged_right = function( pos, node, digger ) local on_exterior_door_fancy_digged_right = function( pos, node, digger )
upos = { x = pos.x, y = pos.y - 1, z = pos.z } upos = { x = pos.x, y = pos.y - 1, z = pos.z }
apos = { x = pos.x, y = pos.y + 1, z = pos.z } apos = { x = pos.x, y = pos.y + 1, z = pos.z }
if ( node.name == 'homedecor:folding_door_mahogany_a_c_right' ) or ( node.name == 'homedecor:folding_door_mahogany_a_o_right' ) then if ( node.name == 'homedecor:exterior_door_fancy_a_c_right' ) or ( node.name == 'homedecor:exterior_door_fancy_a_o_right' ) then
minetest.env:remove_node( upos ) minetest.env:remove_node( upos )
elseif ( node.name == 'homedecor:folding_door_mahogany_b_c_right' ) or ( node.name == 'homedecor:folding_door_mahogany_b_o_right' ) then elseif ( node.name == 'homedecor:exterior_door_fancy_b_c_right' ) or ( node.name == 'homedecor:exterior_door_fancy_b_o_right' ) then
minetest.env:remove_node( apos ) minetest.env:remove_node( apos )
end end
end end
minetest.register_on_placenode( on_mahogany_folding_door_placed_right ) minetest.register_on_placenode( on_exterior_door_fancy_placed_right )
minetest.register_on_punchnode( on_mahogany_folding_door_punched_right ) minetest.register_on_punchnode( on_exterior_door_fancy_punched_right )
minetest.register_on_dignode( on_mahogany_folding_door_digged_right ) minetest.register_on_dignode( on_exterior_door_fancy_digged_right )
-- Nodes used to build up mahogany doors -- Nodes used to build up Fancy Exterior doors
minetest.register_node('homedecor:folding_door_mahogany_a_c_right', { minetest.register_node('homedecor:exterior_door_fancy_a_c_right', {
description = "Mahogany Folding Door (top, closed, right)", description = "Fancy Wood/Glass Exterior Door (top, closed, right)",
tile_images = { 'homedecor_folding_door_mahogany_a_r.png' }, tile_images = { 'homedecor_exterior_door_fancy_a_r.png' },
inventory_image = 'homedecor_folding_door_mahogany_a_r.png', inventory_image = 'homedecor_exterior_door_fancy_a_r.png',
drawtype = 'signlike', drawtype = 'signlike',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -335,108 +339,89 @@ minetest.register_node('homedecor:folding_door_mahogany_a_c_right', {
walkable = true, walkable = true,
groups = { choppy = 2, dig_immediate=2 }, groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted" }, selection_box = { type = "wallmounted" },
drop = 'homedecor:folding_door_mahogany_right', drop = 'homedecor:exterior_door_fancy_right',
}) })
minetest.register_node('homedecor:folding_door_mahogany_b_c_right', { minetest.register_node('homedecor:exterior_door_fancy_b_c_right', {
description = "Mahogany Folding Door (bottom, closed, right)", description = "Fancy Wood/Glass Exterior Door (bottom, closed, right)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany_b_r.png' }, tile_images = { 'homedecor_exterior_door_fancy_b_r.png' },
inventory_image = 'homedecor_folding_door_mahogany_b_r.png', inventory_image = 'homedecor_exterior_door_fancy_b_r.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
walkable = true, walkable = true,
groups = { choppy = 2, dig_immediate=2 }, groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted" }, selection_box = { type = "wallmounted" },
drop = 'homedecor:folding_door_mahogany_right', drop = 'homedecor:exterior_door_fancy_right',
}) })
minetest.register_node('homedecor:folding_door_mahogany_a_o_right', { minetest.register_node('homedecor:exterior_door_fancy_a_o_right', {
description = "Mahogany Folding Door (top, open, right)", description = "Fancy Wood/Glass Exterior Door (top, open, right)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany_a.png' }, tile_images = { 'homedecor_exterior_door_fancy_a.png' },
inventory_image = 'homedecor_folding_door_mahogany_a.png', inventory_image = 'homedecor_exterior_door_fancy_a.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
walkable = false, walkable = false,
groups = { choppy = 2, dig_immediate=2 }, groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted", }, selection_box = { type = "wallmounted", },
drop = 'homedecor:folding_door_mahogany_right', drop = 'homedecor:exterior_door_fancy_right',
}) })
minetest.register_node('homedecor:folding_door_mahogany_b_o_right', { minetest.register_node('homedecor:exterior_door_fancy_b_o_right', {
description = "Mahogany Folding Door (bottom, open, right)", description = "Fancy Wood/Glass Exterior Door (bottom, open, right)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany_b.png' }, tile_images = { 'homedecor_exterior_door_fancy_b.png' },
inventory_image = 'homedecor_folding_door_mahogany_b.png', inventory_image = 'homedecor_exterior_door_fancy_b.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
paramtype2 = 'wallmounted', paramtype2 = 'wallmounted',
walkable = false, walkable = false,
groups = { choppy = 2, dig_immediate=2 }, groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted", }, selection_box = { type = "wallmounted", },
drop = 'homedecor:folding_door_mahogany_right', drop = 'homedecor:exterior_door_fancy_right',
}) })
-- ======================================= -- ================
-- Crafting recipes for all types of doors -- crafting recipes
-- =======================================
minetest.register_craft( {
output = 'homedecor:exterior_door_fancy',
recipe = {
{ 'default:wood', 'default:glass' },
{ 'default:wood', 'default:wood' },
{ 'default:wood', 'default:wood' },
},
})
minetest.register_craft( { minetest.register_craft( {
type = 'shapeless', type = 'shapeless',
output = 'homedecor:folding_door_mahogany_right', output = 'homedecor:exterior_door_fancy_right',
recipe = { recipe = {
'homedecor:folding_door_mahogany', 'homedecor:exterior_door_fancy',
}, },
}) })
minetest.register_craft({ minetest.register_craft({
type = 'shapeless', type = 'shapeless',
output = 'homedecor:folding_door_mahogany', output = 'homedecor:exterior_door_fancy',
recipe = { recipe = {
'homedecor:folding_door_mahogany_right', 'homedecor:exterior_door_fancy_right',
}, },
}) })
minetest.register_craft({ minetest.register_craft({
type = 'fuel', type = 'fuel',
recipe = 'homedecor:folding_door_mahogany', recipe = 'homedecor:exterior_door_fancy',
burntime = 30, burntime = 30,
}) })
minetest.register_craft({ minetest.register_craft({
type = 'fuel', type = 'fuel',
recipe = 'homedecor:folding_door_mahogany_right', recipe = 'homedecor:exterior_door_fancy_right',
burntime = 30, burntime = 30,
}) })
-- You only need flowers to get the red dye necessary to actually
-- craft a mahogany door (either one), but not to /give or use one.
if ( minetest.get_modpath("flowers") ) ~= nil then
minetest.register_craft( {
type = 'shapeless',
output = 'homedecor:folding_door_mahogany',
recipe = {
'homedecor:folding_door_oak',
'unifieddyes:black',
'unifieddyes:red',
},
})
minetest.register_craft( {
type = 'shapeless',
output = 'homedecor:folding_door_mahogany_right',
recipe = {
'homedecor:folding_door_oak_right',
'unifieddyes:black',
'unifieddyes:red',
},
})
end

View File

@ -40,7 +40,7 @@ end
minetest.register_node('homedecor:folding_door_mahogany', { minetest.register_node('homedecor:folding_door_mahogany', {
description = "Mahogany Folding Door (Left Opening)", description = "Mahogany Folding Door (Left Opening)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany.png' }, tiles = { 'homedecor_folding_door_mahogany.png' },
inventory_image = 'homedecor_folding_door_mahogany.png', inventory_image = 'homedecor_folding_door_mahogany.png',
wield_image = 'homedecor_folding_door_mahogany.png', wield_image = 'homedecor_folding_door_mahogany.png',
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
@ -150,7 +150,7 @@ minetest.register_on_dignode( on_mahogany_folding_door_digged )
minetest.register_node('homedecor:folding_door_mahogany_a_c', { minetest.register_node('homedecor:folding_door_mahogany_a_c', {
description = "Mahogany Folding Door (top, closed)", description = "Mahogany Folding Door (top, closed)",
tile_images = { 'homedecor_folding_door_mahogany_a.png' }, tiles = { 'homedecor_folding_door_mahogany_a.png' },
inventory_image = 'homedecor_folding_door_mahogany_a.png', inventory_image = 'homedecor_folding_door_mahogany_a.png',
drawtype = 'signlike', drawtype = 'signlike',
sunlight_propagates = false, sunlight_propagates = false,
@ -165,7 +165,7 @@ minetest.register_node('homedecor:folding_door_mahogany_a_c', {
minetest.register_node('homedecor:folding_door_mahogany_b_c', { minetest.register_node('homedecor:folding_door_mahogany_b_c', {
description = "Mahogany Folding Door (bottom, closed)", description = "Mahogany Folding Door (bottom, closed)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany_b.png' }, tiles = { 'homedecor_folding_door_mahogany_b.png' },
inventory_image = 'homedecor_folding_door_mahogany_b.png', inventory_image = 'homedecor_folding_door_mahogany_b.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -179,7 +179,7 @@ minetest.register_node('homedecor:folding_door_mahogany_b_c', {
minetest.register_node('homedecor:folding_door_mahogany_a_o', { minetest.register_node('homedecor:folding_door_mahogany_a_o', {
description = "Mahogany Folding Door (top, open)", description = "Mahogany Folding Door (top, open)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany_a_r.png' }, tiles = { 'homedecor_folding_door_mahogany_a_r.png' },
inventory_image = 'homedecor_folding_door_mahogany_a_r.png', inventory_image = 'homedecor_folding_door_mahogany_a_r.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -193,7 +193,7 @@ minetest.register_node('homedecor:folding_door_mahogany_a_o', {
minetest.register_node('homedecor:folding_door_mahogany_b_o', { minetest.register_node('homedecor:folding_door_mahogany_b_o', {
description = "Mahogany Folding Door (bottom, open)", description = "Mahogany Folding Door (bottom, open)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany_b_r.png' }, tiles = { 'homedecor_folding_door_mahogany_b_r.png' },
inventory_image = 'homedecor_folding_door_mahogany_b_r.png', inventory_image = 'homedecor_folding_door_mahogany_b_r.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -214,7 +214,7 @@ minetest.register_node('homedecor:folding_door_mahogany_b_o', {
minetest.register_node('homedecor:folding_door_mahogany_right', { minetest.register_node('homedecor:folding_door_mahogany_right', {
description = "Mahogany Folding Door (Right Opening)", description = "Mahogany Folding Door (Right Opening)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany_right.png' }, tiles = { 'homedecor_folding_door_mahogany_right.png' },
inventory_image = 'homedecor_folding_door_mahogany_right.png', inventory_image = 'homedecor_folding_door_mahogany_right.png',
wield_image = 'homedecor_folding_door_mahogany_right.png', wield_image = 'homedecor_folding_door_mahogany_right.png',
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
@ -326,7 +326,7 @@ minetest.register_on_dignode( on_mahogany_folding_door_digged_right )
minetest.register_node('homedecor:folding_door_mahogany_a_c_right', { minetest.register_node('homedecor:folding_door_mahogany_a_c_right', {
description = "Mahogany Folding Door (top, closed, right)", description = "Mahogany Folding Door (top, closed, right)",
tile_images = { 'homedecor_folding_door_mahogany_a_r.png' }, tiles = { 'homedecor_folding_door_mahogany_a_r.png' },
inventory_image = 'homedecor_folding_door_mahogany_a_r.png', inventory_image = 'homedecor_folding_door_mahogany_a_r.png',
drawtype = 'signlike', drawtype = 'signlike',
sunlight_propagates = false, sunlight_propagates = false,
@ -341,7 +341,7 @@ minetest.register_node('homedecor:folding_door_mahogany_a_c_right', {
minetest.register_node('homedecor:folding_door_mahogany_b_c_right', { minetest.register_node('homedecor:folding_door_mahogany_b_c_right', {
description = "Mahogany Folding Door (bottom, closed, right)", description = "Mahogany Folding Door (bottom, closed, right)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany_b_r.png' }, tiles = { 'homedecor_folding_door_mahogany_b_r.png' },
inventory_image = 'homedecor_folding_door_mahogany_b_r.png', inventory_image = 'homedecor_folding_door_mahogany_b_r.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -355,7 +355,7 @@ minetest.register_node('homedecor:folding_door_mahogany_b_c_right', {
minetest.register_node('homedecor:folding_door_mahogany_a_o_right', { minetest.register_node('homedecor:folding_door_mahogany_a_o_right', {
description = "Mahogany Folding Door (top, open, right)", description = "Mahogany Folding Door (top, open, right)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany_a.png' }, tiles = { 'homedecor_folding_door_mahogany_a.png' },
inventory_image = 'homedecor_folding_door_mahogany_a.png', inventory_image = 'homedecor_folding_door_mahogany_a.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -369,7 +369,7 @@ minetest.register_node('homedecor:folding_door_mahogany_a_o_right', {
minetest.register_node('homedecor:folding_door_mahogany_b_o_right', { minetest.register_node('homedecor:folding_door_mahogany_b_o_right', {
description = "Mahogany Folding Door (bottom, open, right)", description = "Mahogany Folding Door (bottom, open, right)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_mahogany_b.png' }, tiles = { 'homedecor_folding_door_mahogany_b.png' },
inventory_image = 'homedecor_folding_door_mahogany_b.png', inventory_image = 'homedecor_folding_door_mahogany_b.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",

View File

@ -414,7 +414,7 @@ minetest.register_craft({
}) })
-- You only need flowers to get the red dye necessary to actually -- You only need flowers and coal to get the dark orange necessary to actually
-- craft a mahogany door (either one), but not to /give or use one. -- craft a mahogany door (either one), but not to /give or use one.
if ( minetest.get_modpath("flowers") ) ~= nil then if ( minetest.get_modpath("flowers") ) ~= nil then
@ -424,9 +424,9 @@ if ( minetest.get_modpath("flowers") ) ~= nil then
output = 'homedecor:folding_door_mahogany', output = 'homedecor:folding_door_mahogany',
recipe = { recipe = {
'homedecor:folding_door_oak', 'homedecor:folding_door_oak',
'homedecor:dye_black', 'unifieddyes:dark_orange',
'homedecor:dye_red',
}, },
replacements = { {'unifieddyes:dark_orange', 'unifieddyes:empty_bottle'}, },
}) })
minetest.register_craft( { minetest.register_craft( {
@ -434,9 +434,9 @@ if ( minetest.get_modpath("flowers") ) ~= nil then
output = 'homedecor:folding_door_mahogany_right', output = 'homedecor:folding_door_mahogany_right',
recipe = { recipe = {
'homedecor:folding_door_oak_right', 'homedecor:folding_door_oak_right',
'homedecor:dye_black', 'unifieddyes:dark_orange',
'homedecor:dye_red',
}, },
replacements = { {'unifieddyes:dark_orange', 'unifieddyes:empty_bottle'}, },
}) })
end end

View File

@ -38,7 +38,7 @@ end
minetest.register_node('homedecor:folding_door_oak', { minetest.register_node('homedecor:folding_door_oak', {
description = "Oak Folding Door (Left Opening)", description = "Oak Folding Door (Left Opening)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak.png' }, tiles = { 'homedecor_folding_door_oak.png' },
inventory_image = 'homedecor_folding_door_oak.png', inventory_image = 'homedecor_folding_door_oak.png',
wield_image = 'homedecor_folding_door_oak.png', wield_image = 'homedecor_folding_door_oak.png',
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
@ -148,7 +148,7 @@ minetest.register_on_dignode( on_oak_folding_door_digged )
minetest.register_node('homedecor:folding_door_oak_a_c', { minetest.register_node('homedecor:folding_door_oak_a_c', {
description = "Oak Folding Door (top, closed)", description = "Oak Folding Door (top, closed)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_a.png' }, tiles = { 'homedecor_folding_door_oak_a.png' },
inventory_image = 'homedecor_folding_door_oak_a.png', inventory_image = 'homedecor_folding_door_oak_a.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -162,7 +162,7 @@ minetest.register_node('homedecor:folding_door_oak_a_c', {
minetest.register_node('homedecor:folding_door_oak_b_c', { minetest.register_node('homedecor:folding_door_oak_b_c', {
description = "Oak Folding Door (bottom, closed)", description = "Oak Folding Door (bottom, closed)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_b.png' }, tiles = { 'homedecor_folding_door_oak_b.png' },
inventory_image = 'homedecor_folding_door_oak_b.png', inventory_image = 'homedecor_folding_door_oak_b.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -176,7 +176,7 @@ minetest.register_node('homedecor:folding_door_oak_b_c', {
minetest.register_node('homedecor:folding_door_oak_a_o', { minetest.register_node('homedecor:folding_door_oak_a_o', {
description = "Oak Folding Door (top, open)", description = "Oak Folding Door (top, open)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_a_r.png' }, tiles = { 'homedecor_folding_door_oak_a_r.png' },
inventory_image = 'homedecor_folding_door_oak_a_r.png', inventory_image = 'homedecor_folding_door_oak_a_r.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -190,7 +190,7 @@ minetest.register_node('homedecor:folding_door_oak_a_o', {
minetest.register_node('homedecor:folding_door_oak_b_o', { minetest.register_node('homedecor:folding_door_oak_b_o', {
description = "Oak Folding Door (bottom, open)", description = "Oak Folding Door (bottom, open)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_b_r.png' }, tiles = { 'homedecor_folding_door_oak_b_r.png' },
inventory_image = 'homedecor_folding_door_oak_b_r.png', inventory_image = 'homedecor_folding_door_oak_b_r.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -211,7 +211,7 @@ minetest.register_node('homedecor:folding_door_oak_b_o', {
minetest.register_node('homedecor:folding_door_oak_right', { minetest.register_node('homedecor:folding_door_oak_right', {
description = "Oak Folding Door (Right Opening)", description = "Oak Folding Door (Right Opening)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_right.png' }, tiles = { 'homedecor_folding_door_oak_right.png' },
inventory_image = 'homedecor_folding_door_oak_right.png', inventory_image = 'homedecor_folding_door_oak_right.png',
wield_image = 'homedecor_folding_door_oak_right.png', wield_image = 'homedecor_folding_door_oak_right.png',
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
@ -322,7 +322,7 @@ minetest.register_on_dignode( on_oak_folding_door_digged_right )
minetest.register_node('homedecor:folding_door_oak_a_c_right', { minetest.register_node('homedecor:folding_door_oak_a_c_right', {
description = "Oak Folding Door (top, closed, right)", description = "Oak Folding Door (top, closed, right)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_a_r.png' }, tiles = { 'homedecor_folding_door_oak_a_r.png' },
inventory_image = 'homedecor_folding_door_oak_a_r.png', inventory_image = 'homedecor_folding_door_oak_a_r.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -336,7 +336,7 @@ minetest.register_node('homedecor:folding_door_oak_a_c_right', {
minetest.register_node('homedecor:folding_door_oak_b_c_right', { minetest.register_node('homedecor:folding_door_oak_b_c_right', {
description = "Oak Folding Door (bottom, closed, right)", description = "Oak Folding Door (bottom, closed, right)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_b_r.png' }, tiles = { 'homedecor_folding_door_oak_b_r.png' },
inventory_image = 'homedecor_folding_door_oak_b_r.png', inventory_image = 'homedecor_folding_door_oak_b_r.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -350,7 +350,7 @@ minetest.register_node('homedecor:folding_door_oak_b_c_right', {
minetest.register_node('homedecor:folding_door_oak_a_o_right', { minetest.register_node('homedecor:folding_door_oak_a_o_right', {
description = "Oak Folding Door (top, open, right)", description = "Oak Folding Door (top, open, right)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_a.png' }, tiles = { 'homedecor_folding_door_oak_a.png' },
inventory_image = 'homedecor_folding_door_oak_a.png', inventory_image = 'homedecor_folding_door_oak_a.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",
@ -364,7 +364,7 @@ minetest.register_node('homedecor:folding_door_oak_a_o_right', {
minetest.register_node('homedecor:folding_door_oak_b_o_right', { minetest.register_node('homedecor:folding_door_oak_b_o_right', {
description = "Oak Folding Door (bottom, open, right)", description = "Oak Folding Door (bottom, open, right)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_b.png' }, tiles = { 'homedecor_folding_door_oak_b.png' },
inventory_image = 'homedecor_folding_door_oak_b.png', inventory_image = 'homedecor_folding_door_oak_b.png',
sunlight_propagates = false, sunlight_propagates = false,
paramtype = "light", paramtype = "light",

420
foldingdoors_oak.lua~ Normal file
View File

@ -0,0 +1,420 @@
-- Oak "folding" doors - part of home decor mod by VanessaE
-- 2012-06-10
--
-- Copied and modified from Minetest's default doors mod.
--
-- License: GPL
--
local DEBUG = 1
local WALLMX = 3
local WALLMZ = 5
local WALLPX = 2
local WALLPZ = 4
local WALLMXr = 2
local WALLMZr = 4
local WALLPXr = 3
local WALLPZr = 5
local dbg = function(s)
if DEBUG == 1 then
print('[FOLDINGDOORS] ' .. s)
end
end
local round = function( n )
if n >= 0 then
return math.floor( n + 0.5 )
else
return math.ceil( n - 0.5 )
end
end
-- ==========================
-- Regular left-opening doors
minetest.register_node('homedecor:folding_door_oak', {
description = "Oak Folding Door (Left Opening)",
drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak.png' },
inventory_image = 'homedecor_folding_door_oak.png',
wield_image = 'homedecor_folding_door_oak.png',
paramtype2 = "wallmounted",
selection_box = { type = "wallmounted" },
groups = { choppy = 2, dig_immediate=2 },
})
local on_oak_folding_door_placed = function( pos, node, placer )
if node.name ~= 'homedecor:folding_door_oak' then return end
upos = { x = pos.x, y = pos.y - 1, z = pos.z }
apos = { x = pos.x, y = pos.y + 1, z = pos.z }
und = minetest.env:get_node( upos )
abv = minetest.env:get_node( apos )
dir = placer:get_look_dir()
if round( dir.x ) == 1 then
newparam = WALLMX
elseif round( dir.x ) == -1 then
newparam = WALLPX
elseif round( dir.z ) == 1 then
newparam = WALLMZ
elseif round( dir.z ) == -1 then
newparam = WALLPZ
end
if und.name == 'air' then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_oak_a_c', param2 = newparam } )
minetest.env:add_node( upos, { name = 'homedecor:folding_door_oak_b_c', param2 = newparam } )
elseif abv.name == 'air' then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_oak_b_c', param2 = newparam } )
minetest.env:add_node( apos, { name = 'homedecor:folding_door_oak_a_c', param2 = newparam } )
else
minetest.env:remove_node( pos )
placer:get_inventory():add_item( "main", 'homedecor:folding_door_oak' )
minetest.chat_send_player( placer:get_player_name(), 'not enough space' )
end
end
local on_oak_folding_door_punched = function( pos, node, puncher )
if string.find( node.name, 'homedecor:folding_door_oak' ) == nil then return end
upos = { x = pos.x, y = pos.y - 1, z = pos.z }
apos = { x = pos.x, y = pos.y + 1, z = pos.z }
if string.find( node.name, '_c', -2 ) ~= nil then
if node.param2 == WALLPX then
newparam = WALLMZ
elseif node.param2 == WALLMZ then
newparam = WALLMX
elseif node.param2 == WALLMX then
newparam = WALLPZ
elseif node.param2 == WALLPZ then
newparam = WALLPX
end
elseif string.find( node.name, '_o', -2 ) ~= nil then
if node.param2 == WALLMZ then
newparam = WALLPX
elseif node.param2 == WALLMX then
newparam = WALLMZ
elseif node.param2 == WALLPZ then
newparam = WALLMX
elseif node.param2 == WALLPX then
newparam = WALLPZ
end
end
if ( node.name == 'homedecor:folding_door_oak_a_c' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_oak_a_o', param2 = newparam } )
minetest.env:add_node( upos, { name = 'homedecor:folding_door_oak_b_o', param2 = newparam } )
elseif ( node.name == 'homedecor:folding_door_oak_b_c' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_oak_b_o', param2 = newparam } )
minetest.env:add_node( apos, { name = 'homedecor:folding_door_oak_a_o', param2 = newparam } )
elseif ( node.name == 'homedecor:folding_door_oak_a_o' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_oak_a_c', param2 = newparam } )
minetest.env:add_node( upos, { name = 'homedecor:folding_door_oak_b_c', param2 = newparam } )
elseif ( node.name == 'homedecor:folding_door_oak_b_o' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_oak_b_c', param2 = newparam } )
minetest.env:add_node( apos, { name = 'homedecor:folding_door_oak_a_c', param2 = newparam } )
end
end
local on_oak_folding_door_digged = function( pos, node, digger )
upos = { x = pos.x, y = pos.y - 1, z = pos.z }
apos = { x = pos.x, y = pos.y + 1, z = pos.z }
if ( node.name == 'homedecor:folding_door_oak_a_c' ) or ( node.name == 'homedecor:folding_door_oak_a_o' ) then
minetest.env:remove_node( upos )
elseif ( node.name == 'homedecor:folding_door_oak_b_c' ) or ( node.name == 'homedecor:folding_door_oak_b_o' ) then
minetest.env:remove_node( apos )
end
end
minetest.register_on_placenode( on_oak_folding_door_placed )
minetest.register_on_punchnode( on_oak_folding_door_punched )
minetest.register_on_dignode( on_oak_folding_door_digged )
-- Nodes to build up oak folding doors
minetest.register_node('homedecor:folding_door_oak_a_c', {
description = "Oak Folding Door (top, closed)",
drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_a.png' },
inventory_image = 'homedecor_folding_door_oak_a.png',
sunlight_propagates = false,
paramtype = "light",
paramtype2 = "wallmounted",
walkable = true,
groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted" },
drop = 'homedecor:folding_door_oak',
})
minetest.register_node('homedecor:folding_door_oak_b_c', {
description = "Oak Folding Door (bottom, closed)",
drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_b.png' },
inventory_image = 'homedecor_folding_door_oak_b.png',
sunlight_propagates = false,
paramtype = "light",
paramtype2 = "wallmounted",
walkable = true,
groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted" },
drop = 'homedecor:folding_door_oak',
})
minetest.register_node('homedecor:folding_door_oak_a_o', {
description = "Oak Folding Door (top, open)",
drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_a_r.png' },
inventory_image = 'homedecor_folding_door_oak_a_r.png',
sunlight_propagates = false,
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted", },
drop = 'homedecor:folding_door_oak',
})
minetest.register_node('homedecor:folding_door_oak_b_o', {
description = "Oak Folding Door (bottom, open)",
drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_b_r.png' },
inventory_image = 'homedecor_folding_door_oak_b_r.png',
sunlight_propagates = false,
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted", },
drop = 'homedecor:folding_door_oak',
})
-- ========================================
-- Mirrored version for right-opening doors
-- ========================================
-- Actual nodes that you place
minetest.register_node('homedecor:folding_door_oak_right', {
description = "Oak Folding Door (Right Opening)",
drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_right.png' },
inventory_image = 'homedecor_folding_door_oak_right.png',
wield_image = 'homedecor_folding_door_oak_right.png',
paramtype2 = "wallmounted",
selection_box = { type = "wallmounted" },
groups = { choppy = 2, dig_immediate=2 },
})
local on_oak_folding_door_placed_right = function( pos, node, placer )
if node.name ~= 'homedecor:folding_door_oak_right' then return end
upos = { x = pos.x, y = pos.y - 1, z = pos.z }
apos = { x = pos.x, y = pos.y + 1, z = pos.z }
und = minetest.env:get_node( upos )
abv = minetest.env:get_node( apos )
dir = placer:get_look_dir()
if round( dir.x ) == 1 then
newparam = WALLMX
elseif round( dir.x ) == -1 then
newparam = WALLPX
elseif round( dir.z ) == 1 then
newparam = WALLMZ
elseif round( dir.z ) == -1 then
newparam = WALLPZ
end
if und.name == 'air' then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_oak_a_c_right', param2 = newparam } )
minetest.env:add_node( upos, { name = 'homedecor:folding_door_oak_b_c_right', param2 = newparam } )
elseif abv.name == 'air' then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_oak_b_c_right', param2 = newparam } )
minetest.env:add_node( apos, { name = 'homedecor:folding_door_oak_a_c_right', param2 = newparam } )
else
minetest.env:remove_node( pos )
placer:get_inventory():add_item( "main", 'homedecor:folding_door_oak_right' )
minetest.chat_send_player( placer:get_player_name(), 'not enough space' )
end
end
local on_oak_folding_door_punched_right = function( pos, node, puncher )
if string.find( node.name, 'homedecor:folding_door_oak' ) == nil then return end
upos = { x = pos.x, y = pos.y - 1, z = pos.z }
apos = { x = pos.x, y = pos.y + 1, z = pos.z }
if string.find( node.name, '_c_right', -8 ) ~= nil then
if node.param2 == WALLPX then
newparam = WALLMZr
elseif node.param2 == WALLMZ then
newparam = WALLMXr
elseif node.param2 == WALLMX then
newparam = WALLPZr
elseif node.param2 == WALLPZ then
newparam = WALLPXr
end
elseif string.find( node.name, '_o_right', -8 ) ~= nil then
if node.param2 == WALLMZ then
newparam = WALLPXr
elseif node.param2 == WALLMX then
newparam = WALLMZr
elseif node.param2 == WALLPZ then
newparam = WALLMXr
elseif node.param2 == WALLPX then
newparam = WALLPZr
end
end
if ( node.name == 'homedecor:folding_door_oak_a_c_right' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_oak_a_o_right', param2 = newparam } )
minetest.env:add_node( upos, { name = 'homedecor:folding_door_oak_b_o_right', param2 = newparam } )
elseif ( node.name == 'homedecor:folding_door_oak_b_c_right' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_oak_b_o_right', param2 = newparam } )
minetest.env:add_node( apos, { name = 'homedecor:folding_door_oak_a_o_right', param2 = newparam } )
elseif ( node.name == 'homedecor:folding_door_oak_a_o_right' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_oak_a_c_right', param2 = newparam } )
minetest.env:add_node( upos, { name = 'homedecor:folding_door_oak_b_c_right', param2 = newparam } )
elseif ( node.name == 'homedecor:folding_door_oak_b_o_right' ) then
minetest.env:add_node( pos, { name = 'homedecor:folding_door_oak_b_c_right', param2 = newparam } )
minetest.env:add_node( apos, { name = 'homedecor:folding_door_oak_a_c_right', param2 = newparam } )
end
end
local on_oak_folding_door_digged_right = function( pos, node, digger )
upos = { x = pos.x, y = pos.y - 1, z = pos.z }
apos = { x = pos.x, y = pos.y + 1, z = pos.z }
if ( node.name == 'homedecor:folding_door_oak_a_c_right' ) or ( node.name == 'homedecor:folding_door_oak_a_o_right' ) then
minetest.env:remove_node( upos )
elseif ( node.name == 'homedecor:folding_door_oak_b_c_right' ) or ( node.name == 'homedecor:folding_door_oak_b_o_right' ) then
minetest.env:remove_node( apos )
end
end
minetest.register_on_placenode( on_oak_folding_door_placed_right )
minetest.register_on_punchnode( on_oak_folding_door_punched_right )
minetest.register_on_dignode( on_oak_folding_door_digged_right )
-- Nodes to build up oak folding doors
minetest.register_node('homedecor:folding_door_oak_a_c_right', {
description = "Oak Folding Door (top, closed, right)",
drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_a_r.png' },
inventory_image = 'homedecor_folding_door_oak_a_r.png',
sunlight_propagates = false,
paramtype = "light",
paramtype2 = "wallmounted",
walkable = true,
groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted" },
drop = 'homedecor:folding_door_oak_right',
})
minetest.register_node('homedecor:folding_door_oak_b_c_right', {
description = "Oak Folding Door (bottom, closed, right)",
drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_b_r.png' },
inventory_image = 'homedecor_folding_door_oak_b_r.png',
sunlight_propagates = false,
paramtype = "light",
paramtype2 = "wallmounted",
walkable = true,
groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted" },
drop = 'homedecor:folding_door_oak_right',
})
minetest.register_node('homedecor:folding_door_oak_a_o_right', {
description = "Oak Folding Door (top, open, right)",
drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_a.png' },
inventory_image = 'homedecor_folding_door_oak_a.png',
sunlight_propagates = false,
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted", },
drop = 'homedecor:folding_door_oak_right',
})
minetest.register_node('homedecor:folding_door_oak_b_o_right', {
description = "Oak Folding Door (bottom, open, right)",
drawtype = 'signlike',
tile_images = { 'homedecor_folding_door_oak_b.png' },
inventory_image = 'homedecor_folding_door_oak_b.png',
sunlight_propagates = false,
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
groups = { choppy = 2, dig_immediate=2 },
selection_box = { type = "wallmounted", },
drop = 'homedecor:folding_door_oak_right',
})
-- =======================================
-- Crafting recipes for all types of doors
-- =======================================
minetest.register_craft( {
output = 'homedecor:folding_door_oak',
recipe = {
{ 'default:stick', 'default:stick', '' },
{ 'default:stick', 'default:stick', 'default:steel_ingot' },
{ 'default:stick', 'default:stick', '' },
},
})
minetest.register_craft( {
type = 'shapeless',
output = 'homedecor:folding_door_oak_right',
recipe = {
'homedecor:folding_door_oak',
},
})
minetest.register_craft( {
type = 'shapeless',
output = 'homedecor:folding_door_oak',
recipe = {
'homedecor:folding_door_oak_right',
},
})
minetest.register_craft({
type = 'fuel',
recipe = 'homedecor:folding_door_oak',
burntime = 30,
})
minetest.register_craft({
type = 'fuel',
recipe = 'homedecor:folding_door_oak_right',
burntime = 30,
})

112
init.lua
View File

@ -33,7 +33,7 @@ end
minetest.register_node('homedecor:shingles_wood', { minetest.register_node('homedecor:shingles_wood', {
description = "Wood Shingles", description = "Wood Shingles",
drawtype = 'raillike', drawtype = 'raillike',
tile_images = { 'homedecor_shingles_wood.png' }, tiles = { 'homedecor_shingles_wood.png' },
wield_image = 'homedecor_shingles_wood.png', wield_image = 'homedecor_shingles_wood.png',
inventory_image = 'homedecor_shingles_wood.png', inventory_image = 'homedecor_shingles_wood.png',
paramtype = 'light', paramtype = 'light',
@ -46,7 +46,7 @@ minetest.register_node('homedecor:shingles_wood', {
minetest.register_node('homedecor:skylight', { minetest.register_node('homedecor:skylight', {
description = "Glass Skylight", description = "Glass Skylight",
drawtype = 'raillike', drawtype = 'raillike',
tile_images = { 'default_glass.png' }, tiles = { 'default_glass.png' },
wield_image = 'default_glass.png', wield_image = 'default_glass.png',
inventory_image = 'default_glass.png', inventory_image = 'default_glass.png',
paramtype = 'light', paramtype = 'light',
@ -59,7 +59,7 @@ minetest.register_node('homedecor:skylight', {
minetest.register_node('homedecor:shingles_asphalt', { minetest.register_node('homedecor:shingles_asphalt', {
description = "Asphalt Shingles", description = "Asphalt Shingles",
drawtype = 'raillike', drawtype = 'raillike',
tile_images = { '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.png',
paramtype = 'light', paramtype = 'light',
@ -72,7 +72,7 @@ minetest.register_node('homedecor:shingles_asphalt', {
minetest.register_node('homedecor:shingles_terracotta', { minetest.register_node('homedecor:shingles_terracotta', {
description = "Terracotta Roofing", description = "Terracotta Roofing",
drawtype = 'raillike', drawtype = 'raillike',
tile_images = { '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.png',
paramtype = 'light', paramtype = 'light',
@ -87,7 +87,7 @@ minetest.register_node('homedecor:shingles_terracotta', {
minetest.register_node('homedecor:projection_screen', { minetest.register_node('homedecor:projection_screen', {
description = "Projection Screen Material", description = "Projection Screen Material",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_projection_screen.png' }, tiles = { 'homedecor_projection_screen.png' },
wield_image = 'homedecor_projection_screen_inv.png', wield_image = 'homedecor_projection_screen_inv.png',
inventory_image = 'homedecor_projection_screen_inv.png', inventory_image = 'homedecor_projection_screen_inv.png',
sunlight_propagates = false, sunlight_propagates = false,
@ -105,7 +105,7 @@ minetest.register_node('homedecor:projection_screen', {
minetest.register_node('homedecor:ceiling_paint', { minetest.register_node('homedecor:ceiling_paint', {
description = "Textured Ceiling Paint", description = "Textured Ceiling Paint",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_ceiling_paint.png' }, tiles = { 'homedecor_ceiling_paint.png' },
inventory_image = 'homedecor_ceiling_paint_roller.png', inventory_image = 'homedecor_ceiling_paint_roller.png',
wield_image = 'homedecor_ceiling_paint_roller.png', wield_image = 'homedecor_ceiling_paint_roller.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -124,7 +124,7 @@ minetest.register_node('homedecor:ceiling_paint', {
minetest.register_node('homedecor:ceiling_tile', { minetest.register_node('homedecor:ceiling_tile', {
description = "Drop-Ceiling Tile", description = "Drop-Ceiling Tile",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_ceiling_tile.png' }, tiles = { 'homedecor_ceiling_tile.png' },
wield_image = 'homedecor_ceiling_tile.png', wield_image = 'homedecor_ceiling_tile.png',
inventory_image = 'homedecor_ceiling_tile.png', inventory_image = 'homedecor_ceiling_tile.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -143,7 +143,7 @@ minetest.register_node('homedecor:ceiling_tile', {
minetest.register_node('homedecor:rug_small', { minetest.register_node('homedecor:rug_small', {
description = "Small Throw Rug", description = "Small Throw Rug",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_rug_small.png' }, tiles = { 'homedecor_rug_small.png' },
wield_image = 'homedecor_rug_small.png', wield_image = 'homedecor_rug_small.png',
inventory_image = 'homedecor_rug_small.png', inventory_image = 'homedecor_rug_small.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -164,7 +164,7 @@ minetest.register_node('homedecor:rug_small', {
minetest.register_node('homedecor:rug_large', { minetest.register_node('homedecor:rug_large', {
description = "Large Area Rug", description = "Large Area Rug",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_rug_large.png' }, tiles = { 'homedecor_rug_large.png' },
wield_image = 'homedecor_rug_large.png', wield_image = 'homedecor_rug_large.png',
inventory_image = 'homedecor_rug_large.png', inventory_image = 'homedecor_rug_large.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -185,7 +185,7 @@ minetest.register_node('homedecor:rug_large', {
minetest.register_node('homedecor:glass_table_large', { minetest.register_node('homedecor:glass_table_large', {
description = "Large Glass Table Piece", description = "Large Glass Table Piece",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_glass_table_large.png' }, tiles = { 'homedecor_glass_table_large.png' },
wield_image = 'homedecor_glass_table_large.png', wield_image = 'homedecor_glass_table_large.png',
inventory_image = 'homedecor_glass_table_large.png', inventory_image = 'homedecor_glass_table_large.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -206,7 +206,7 @@ minetest.register_node('homedecor:glass_table_large', {
minetest.register_node('homedecor:glass_table_small_round', { minetest.register_node('homedecor:glass_table_small_round', {
description = "Glass Table (Small, Round)", description = "Glass Table (Small, Round)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_glass_table_small_round.png' }, tiles = { 'homedecor_glass_table_small_round.png' },
wield_image = 'homedecor_glass_table_small_round.png', wield_image = 'homedecor_glass_table_small_round.png',
inventory_image = 'homedecor_glass_table_small_round.png', inventory_image = 'homedecor_glass_table_small_round.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -227,7 +227,7 @@ minetest.register_node('homedecor:glass_table_small_round', {
minetest.register_node('homedecor:glass_table_small_square', { minetest.register_node('homedecor:glass_table_small_square', {
description = "Glass Table (Small, Square)", description = "Glass Table (Small, Square)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_glass_table_small_square.png' }, tiles = { 'homedecor_glass_table_small_square.png' },
wield_image = 'homedecor_glass_table_small_square.png', wield_image = 'homedecor_glass_table_small_square.png',
inventory_image = 'homedecor_glass_table_small_square.png', inventory_image = 'homedecor_glass_table_small_square.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -248,7 +248,7 @@ minetest.register_node('homedecor:glass_table_small_square', {
minetest.register_node("homedecor:table_legs_brass", { minetest.register_node("homedecor:table_legs_brass", {
description = "Brass Table Legs", description = "Brass Table Legs",
drawtype = "plantlike", drawtype = "plantlike",
tile_images = {"homedecor_table_legs_brass.png"}, tiles = {"homedecor_table_legs_brass.png"},
inventory_image = "homedecor_table_legs_brass.png", inventory_image = "homedecor_table_legs_brass.png",
wield_image = "homedecor_table_legs_brass.png", wield_image = "homedecor_table_legs_brass.png",
visual_scale = 1.04, visual_scale = 1.04,
@ -262,7 +262,7 @@ minetest.register_node("homedecor:table_legs_brass", {
minetest.register_node("homedecor:table_legs_wrought_iron", { minetest.register_node("homedecor:table_legs_wrought_iron", {
description = "Brass Table Legs", description = "Brass Table Legs",
drawtype = "plantlike", drawtype = "plantlike",
tile_images = {"homedecor_table_legs_wrought_iron.png"}, tiles = {"homedecor_table_legs_wrought_iron.png"},
inventory_image = "homedecor_table_legs_wrought_iron.png", inventory_image = "homedecor_table_legs_wrought_iron.png",
wield_image = "homedecor_table_legs_wrought_iron.png", wield_image = "homedecor_table_legs_wrought_iron.png",
visual_scale = 1.04, visual_scale = 1.04,
@ -275,10 +275,10 @@ minetest.register_node("homedecor:table_legs_wrought_iron", {
minetest.register_node('homedecor:television', { minetest.register_node('homedecor:television', {
description = "Small CRT Television", description = "Small CRT Television",
tile_images = { 'homedecor_television_top.png', tiles = { 'homedecor_television_top.png',
'homedecor_television_bottom.png', 'homedecor_television_bottom.png',
'homedecor_television_left.png',
'homedecor_television_right.png', 'homedecor_television_right.png',
'homedecor_television_left.png',
'homedecor_television_back.png', 'homedecor_television_back.png',
'homedecor_television_front.png'}, 'homedecor_television_front.png'},
sunlight_propagates = false, sunlight_propagates = false,
@ -293,10 +293,10 @@ minetest.register_node('homedecor:television', {
minetest.register_node('homedecor:stereo', { minetest.register_node('homedecor:stereo', {
description = "Stereo Receiver", description = "Stereo Receiver",
tile_images = { 'homedecor_stereo_top.png', tiles = { 'homedecor_stereo_top.png',
'homedecor_stereo_bottom.png', 'homedecor_stereo_bottom.png',
'homedecor_stereo_left.png',
'homedecor_stereo_right.png', 'homedecor_stereo_right.png',
'homedecor_stereo_left.png',
'homedecor_stereo_back.png', 'homedecor_stereo_back.png',
'homedecor_stereo_front.png'}, 'homedecor_stereo_front.png'},
sunlight_propagates = false, sunlight_propagates = false,
@ -309,7 +309,7 @@ minetest.register_node('homedecor:stereo', {
minetest.register_node('homedecor:nightstand_oak_one_drawer', { minetest.register_node('homedecor:nightstand_oak_one_drawer', {
description = "Oak Nightstand with One Drawer", description = "Oak Nightstand with One Drawer",
tile_images = { 'homedecor_nightstand_oak_sides.png', tiles = { 'homedecor_nightstand_oak_sides.png',
'homedecor_nightstand_oak_sides.png', 'homedecor_nightstand_oak_sides.png',
'homedecor_nightstand_oak_sides.png', 'homedecor_nightstand_oak_sides.png',
'homedecor_nightstand_oak_sides.png', 'homedecor_nightstand_oak_sides.png',
@ -325,7 +325,7 @@ minetest.register_node('homedecor:nightstand_oak_one_drawer', {
minetest.register_node('homedecor:nightstand_oak_two_drawers', { minetest.register_node('homedecor:nightstand_oak_two_drawers', {
description = "Oak Nightstand with One Drawer", description = "Oak Nightstand with One Drawer",
tile_images = { 'homedecor_nightstand_oak_sides.png', tiles = { 'homedecor_nightstand_oak_sides.png',
'homedecor_nightstand_oak_sides.png', 'homedecor_nightstand_oak_sides.png',
'homedecor_nightstand_oak_sides.png', 'homedecor_nightstand_oak_sides.png',
'homedecor_nightstand_oak_sides.png', 'homedecor_nightstand_oak_sides.png',
@ -340,7 +340,7 @@ minetest.register_node('homedecor:nightstand_oak_two_drawers', {
}) })
minetest.register_node('homedecor:nightstand_mahogany_one_drawer', { minetest.register_node('homedecor:nightstand_mahogany_one_drawer', {
description = "Oak Nightstand with One Drawer", description = "Oak Nightstand with One Drawer",
tile_images = { 'homedecor_nightstand_mahogany_sides.png', tiles = { 'homedecor_nightstand_mahogany_sides.png',
'homedecor_nightstand_mahogany_sides.png', 'homedecor_nightstand_mahogany_sides.png',
'homedecor_nightstand_mahogany_sides.png', 'homedecor_nightstand_mahogany_sides.png',
'homedecor_nightstand_mahogany_sides.png', 'homedecor_nightstand_mahogany_sides.png',
@ -356,7 +356,7 @@ minetest.register_node('homedecor:nightstand_mahogany_one_drawer', {
minetest.register_node('homedecor:nightstand_mahogany_two_drawers', { minetest.register_node('homedecor:nightstand_mahogany_two_drawers', {
description = "Oak Nightstand with One Drawer", description = "Oak Nightstand with One Drawer",
tile_images = { 'homedecor_nightstand_mahogany_sides.png', tiles = { 'homedecor_nightstand_mahogany_sides.png',
'homedecor_nightstand_mahogany_sides.png', 'homedecor_nightstand_mahogany_sides.png',
'homedecor_nightstand_mahogany_sides.png', 'homedecor_nightstand_mahogany_sides.png',
'homedecor_nightstand_mahogany_sides.png', 'homedecor_nightstand_mahogany_sides.png',
@ -372,7 +372,7 @@ minetest.register_node('homedecor:nightstand_mahogany_two_drawers', {
minetest.register_node('homedecor:utility_table_top', { minetest.register_node('homedecor:utility_table_top', {
description = "Utility Table", description = "Utility Table",
tile_images = { 'homedecor_utility_table_top.png' }, tiles = { 'homedecor_utility_table_top.png' },
inventory_image = 'homedecor_utility_table_top.png', inventory_image = 'homedecor_utility_table_top.png',
wield_image = 'homedecor_utility_table_top.png', wield_image = 'homedecor_utility_table_top.png',
drawtype = "signlike", drawtype = "signlike",
@ -395,7 +395,7 @@ minetest.register_node('homedecor:utility_table_top', {
minetest.register_node('homedecor:utility_table_legs', { minetest.register_node('homedecor:utility_table_legs', {
description = "Legs for Utility Table", description = "Legs for Utility Table",
tile_images = { 'homedecor_utility_table_legs.png' }, tiles = { 'homedecor_utility_table_legs.png' },
inventory_image = 'homedecor_utility_table_legs_inv.png', inventory_image = 'homedecor_utility_table_legs_inv.png',
wield_image = 'homedecor_utility_table_legs.png', wield_image = 'homedecor_utility_table_legs.png',
visual_scale = 1.04, visual_scale = 1.04,
@ -410,7 +410,7 @@ minetest.register_node('homedecor:utility_table_legs', {
minetest.register_node('homedecor:flower_pot_terracotta', { minetest.register_node('homedecor:flower_pot_terracotta', {
description = "Terracotta Flower Pot", description = "Terracotta Flower Pot",
tile_images = { 'homedecor_flower_pot_terracotta_top.png', tiles = { 'homedecor_flower_pot_terracotta_top.png',
'homedecor_flower_pot_terracotta_bottom.png', 'homedecor_flower_pot_terracotta_bottom.png',
'homedecor_flower_pot_terracotta_sides.png', 'homedecor_flower_pot_terracotta_sides.png',
'homedecor_flower_pot_terracotta_sides.png', 'homedecor_flower_pot_terracotta_sides.png',
@ -426,7 +426,7 @@ minetest.register_node('homedecor:flower_pot_terracotta', {
minetest.register_node('homedecor:flower_pot_black', { minetest.register_node('homedecor:flower_pot_black', {
description = "Black Plastic Flower Pot", description = "Black Plastic Flower Pot",
tile_images = { 'homedecor_flower_pot_black_top.png', tiles = { 'homedecor_flower_pot_black_top.png',
'homedecor_flower_pot_black_bottom.png', 'homedecor_flower_pot_black_bottom.png',
'homedecor_flower_pot_black_sides.png', 'homedecor_flower_pot_black_sides.png',
'homedecor_flower_pot_black_sides.png', 'homedecor_flower_pot_black_sides.png',
@ -442,7 +442,7 @@ minetest.register_node('homedecor:flower_pot_black', {
minetest.register_node('homedecor:flower_pot_green', { minetest.register_node('homedecor:flower_pot_green', {
description = "Green Plastic Flower Pot", description = "Green Plastic Flower Pot",
tile_images = { 'homedecor_flower_pot_green_top.png', tiles = { 'homedecor_flower_pot_green_top.png',
'homedecor_flower_pot_green_bottom.png', 'homedecor_flower_pot_green_bottom.png',
'homedecor_flower_pot_green_sides.png', 'homedecor_flower_pot_green_sides.png',
'homedecor_flower_pot_green_sides.png', 'homedecor_flower_pot_green_sides.png',
@ -458,7 +458,7 @@ minetest.register_node('homedecor:flower_pot_green', {
minetest.register_node('homedecor:wood_table_large', { minetest.register_node('homedecor:wood_table_large', {
description = "Wooden Tabletop piece", description = "Wooden Tabletop piece",
tile_images = { 'homedecor_wood_table_large.png' }, tiles = { 'homedecor_wood_table_large.png' },
inventory_image = 'homedecor_wood_table_large.png', inventory_image = 'homedecor_wood_table_large.png',
wield_image = 'homedecor_wood_table_large.png', wield_image = 'homedecor_wood_table_large.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -479,7 +479,7 @@ minetest.register_node('homedecor:wood_table_large', {
minetest.register_node('homedecor:wood_table_small_round', { minetest.register_node('homedecor:wood_table_small_round', {
description = "Wooden Tabletop (Small, Round)", description = "Wooden Tabletop (Small, Round)",
tile_images = { 'homedecor_wood_table_small_round.png' }, tiles = { 'homedecor_wood_table_small_round.png' },
inventory_image = 'homedecor_wood_table_small_round.png', inventory_image = 'homedecor_wood_table_small_round.png',
wield_image = 'homedecor_wood_table_small_round.png', wield_image = 'homedecor_wood_table_small_round.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -500,7 +500,7 @@ minetest.register_node('homedecor:wood_table_small_round', {
minetest.register_node('homedecor:wood_table_small_square', { minetest.register_node('homedecor:wood_table_small_square', {
description = "Wooden Tabletop (Small, Square)", description = "Wooden Tabletop (Small, Square)",
tile_images = { 'homedecor_wood_table_small_square.png' }, tiles = { 'homedecor_wood_table_small_square.png' },
inventory_image = 'homedecor_wood_table_small_square.png', inventory_image = 'homedecor_wood_table_small_square.png',
wield_image = 'homedecor_wood_table_small_square.png', wield_image = 'homedecor_wood_table_small_square.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -521,7 +521,7 @@ minetest.register_node('homedecor:wood_table_small_square', {
minetest.register_node('homedecor:folding_door_mahogany', { minetest.register_node('homedecor:folding_door_mahogany', {
description = "Mahogany Folding Door", description = "Mahogany Folding Door",
tile_images = { 'homedecor_folding_door_mahogany.png' }, tiles = { 'homedecor_folding_door_mahogany.png' },
inventory_image = 'homedecor_folding_door_mahogany.png', inventory_image = 'homedecor_folding_door_mahogany.png',
wield_image = 'homedecor_folding_door_mahogany.png', wield_image = 'homedecor_folding_door_mahogany.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -540,7 +540,7 @@ minetest.register_node('homedecor:folding_door_mahogany', {
minetest.register_node('homedecor:folding_door_oak', { minetest.register_node('homedecor:folding_door_oak', {
description = "Oak Folding Door", description = "Oak Folding Door",
tile_images = { 'homedecor_folding_door_oak.png' }, tiles = { 'homedecor_folding_door_oak.png' },
inventory_image = 'homedecor_folding_door_oak.png', inventory_image = 'homedecor_folding_door_oak.png',
wield_image = 'homedecor_folding_door_oak.png', wield_image = 'homedecor_folding_door_oak.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -559,7 +559,7 @@ minetest.register_node('homedecor:folding_door_oak', {
minetest.register_node('homedecor:dresser_mahogany_left_side', { minetest.register_node('homedecor:dresser_mahogany_left_side', {
description = "Mahogany Dresser (Left Half)", description = "Mahogany Dresser (Left Half)",
tile_images = { 'homedecor_dresser_mahogany_sides.png', tiles = { 'homedecor_dresser_mahogany_sides.png',
'homedecor_dresser_mahogany_sides.png', 'homedecor_dresser_mahogany_sides.png',
'homedecor_dresser_mahogany_sides.png', 'homedecor_dresser_mahogany_sides.png',
'homedecor_dresser_mahogany_sides.png', 'homedecor_dresser_mahogany_sides.png',
@ -575,7 +575,7 @@ minetest.register_node('homedecor:dresser_mahogany_left_side', {
minetest.register_node('homedecor:dresser_mahogany_right_side', { minetest.register_node('homedecor:dresser_mahogany_right_side', {
description = "Mahogany Dresser (Right Half)", description = "Mahogany Dresser (Right Half)",
tile_images = { 'homedecor_dresser_mahogany_sides.png', tiles = { 'homedecor_dresser_mahogany_sides.png',
'homedecor_dresser_mahogany_sides.png', 'homedecor_dresser_mahogany_sides.png',
'homedecor_dresser_mahogany_sides.png', 'homedecor_dresser_mahogany_sides.png',
'homedecor_dresser_mahogany_sides.png', 'homedecor_dresser_mahogany_sides.png',
@ -591,7 +591,7 @@ minetest.register_node('homedecor:dresser_mahogany_right_side', {
minetest.register_node('homedecor:dresser_oak_left_side', { minetest.register_node('homedecor:dresser_oak_left_side', {
description = "Oak Dresser (Left Half)", description = "Oak Dresser (Left Half)",
tile_images = { 'homedecor_dresser_oak_sides.png', tiles = { 'homedecor_dresser_oak_sides.png',
'homedecor_dresser_oak_sides.png', 'homedecor_dresser_oak_sides.png',
'homedecor_dresser_oak_sides.png', 'homedecor_dresser_oak_sides.png',
'homedecor_dresser_oak_sides.png', 'homedecor_dresser_oak_sides.png',
@ -607,7 +607,7 @@ minetest.register_node('homedecor:dresser_oak_left_side', {
minetest.register_node('homedecor:dresser_oak_right_side', { minetest.register_node('homedecor:dresser_oak_right_side', {
description = "Oak Dresser (Right Half)", description = "Oak Dresser (Right Half)",
tile_images = { 'homedecor_dresser_oak_sides.png', tiles = { 'homedecor_dresser_oak_sides.png',
'homedecor_dresser_oak_sides.png', 'homedecor_dresser_oak_sides.png',
'homedecor_dresser_oak_sides.png', 'homedecor_dresser_oak_sides.png',
'homedecor_dresser_oak_sides.png', 'homedecor_dresser_oak_sides.png',
@ -623,7 +623,7 @@ minetest.register_node('homedecor:dresser_oak_right_side', {
minetest.register_node('homedecor:shutter_black', { minetest.register_node('homedecor:shutter_black', {
description = "Wooden Shutter (Black)", description = "Wooden Shutter (Black)",
tile_images = { 'homedecor_window_shutter_black.png' }, tiles = { 'homedecor_window_shutter_black.png' },
inventory_image = 'homedecor_window_shutter_black.png', inventory_image = 'homedecor_window_shutter_black.png',
wield_image = 'homedecor_window_shutter_black.png', wield_image = 'homedecor_window_shutter_black.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -642,7 +642,7 @@ minetest.register_node('homedecor:shutter_black', {
minetest.register_node('homedecor:shutter_mahogany', { minetest.register_node('homedecor:shutter_mahogany', {
description = "Wooden Shutter (Unpainted Mahogany)", description = "Wooden Shutter (Unpainted Mahogany)",
tile_images = { 'homedecor_window_shutter_mahogany.png' }, tiles = { 'homedecor_window_shutter_mahogany.png' },
inventory_image = 'homedecor_window_shutter_mahogany.png', inventory_image = 'homedecor_window_shutter_mahogany.png',
wield_image = 'homedecor_window_shutter_mahogany.png', wield_image = 'homedecor_window_shutter_mahogany.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -661,7 +661,7 @@ minetest.register_node('homedecor:shutter_mahogany', {
minetest.register_node('homedecor:shutter_oak', { minetest.register_node('homedecor:shutter_oak', {
description = "Wooden Shutter (Unpainted Oak)", description = "Wooden Shutter (Unpainted Oak)",
tile_images = { 'homedecor_window_shutter_oak.png' }, tiles = { 'homedecor_window_shutter_oak.png' },
inventory_image = 'homedecor_window_shutter_oak.png', inventory_image = 'homedecor_window_shutter_oak.png',
wield_image = 'homedecor_window_shutter_oak.png', wield_image = 'homedecor_window_shutter_oak.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -680,7 +680,7 @@ minetest.register_node('homedecor:shutter_oak', {
minetest.register_node('homedecor:shutter_dark_grey', { minetest.register_node('homedecor:shutter_dark_grey', {
description = "Wooden Shutter (Dark Grey)", description = "Wooden Shutter (Dark Grey)",
tile_images = { 'homedecor_window_shutter_dark_grey.png' }, tiles = { 'homedecor_window_shutter_dark_grey.png' },
inventory_image = 'homedecor_window_shutter_dark_grey.png', inventory_image = 'homedecor_window_shutter_dark_grey.png',
wield_image = 'homedecor_window_shutter_dark_grey.png', wield_image = 'homedecor_window_shutter_dark_grey.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -699,7 +699,7 @@ minetest.register_node('homedecor:shutter_dark_grey', {
minetest.register_node('homedecor:shutter_forest_green', { minetest.register_node('homedecor:shutter_forest_green', {
description = "Wooden Shutter (Forest Green)", description = "Wooden Shutter (Forest Green)",
tile_images = { 'homedecor_window_shutter_forest_green.png' }, tiles = { 'homedecor_window_shutter_forest_green.png' },
inventory_image = 'homedecor_window_shutter_forest_green.png', inventory_image = 'homedecor_window_shutter_forest_green.png',
wield_image = 'homedecor_window_shutter_forest_green.png', wield_image = 'homedecor_window_shutter_forest_green.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -718,7 +718,7 @@ minetest.register_node('homedecor:shutter_forest_green', {
minetest.register_node('homedecor:shutter_grey', { minetest.register_node('homedecor:shutter_grey', {
description = "Wooden Shutter (Grey)", description = "Wooden Shutter (Grey)",
tile_images = { 'homedecor_window_shutter_grey.png' }, tiles = { 'homedecor_window_shutter_grey.png' },
inventory_image = 'homedecor_window_shutter_grey.png', inventory_image = 'homedecor_window_shutter_grey.png',
wield_image = 'homedecor_window_shutter_grey.png', wield_image = 'homedecor_window_shutter_grey.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -737,7 +737,7 @@ minetest.register_node('homedecor:shutter_grey', {
minetest.register_node('homedecor:shutter_light_blue', { minetest.register_node('homedecor:shutter_light_blue', {
description = "Wooden Shutter (Light Blue)", description = "Wooden Shutter (Light Blue)",
tile_images = { 'homedecor_window_shutter_light_blue.png' }, tiles = { 'homedecor_window_shutter_light_blue.png' },
inventory_image = 'homedecor_window_shutter_light_blue.png', inventory_image = 'homedecor_window_shutter_light_blue.png',
wield_image = 'homedecor_window_shutter_light_blue.png', wield_image = 'homedecor_window_shutter_light_blue.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -756,7 +756,7 @@ minetest.register_node('homedecor:shutter_light_blue', {
minetest.register_node('homedecor:shutter_purple', { minetest.register_node('homedecor:shutter_purple', {
description = "Wooden Shutter (Purple)", description = "Wooden Shutter (Purple)",
tile_images = { 'homedecor_window_shutter_purple.png' }, tiles = { 'homedecor_window_shutter_purple.png' },
inventory_image = 'homedecor_window_shutter_purple.png', inventory_image = 'homedecor_window_shutter_purple.png',
wield_image = 'homedecor_window_shutter_purple.png', wield_image = 'homedecor_window_shutter_purple.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -775,7 +775,7 @@ minetest.register_node('homedecor:shutter_purple', {
minetest.register_node('homedecor:shutter_red', { minetest.register_node('homedecor:shutter_red', {
description = "Wooden Shutter (Red)", description = "Wooden Shutter (Red)",
tile_images = { 'homedecor_window_shutter_red.png' }, tiles = { 'homedecor_window_shutter_red.png' },
inventory_image = 'homedecor_window_shutter_red.png', inventory_image = 'homedecor_window_shutter_red.png',
wield_image = 'homedecor_window_shutter_red.png', wield_image = 'homedecor_window_shutter_red.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -794,7 +794,7 @@ minetest.register_node('homedecor:shutter_red', {
minetest.register_node('homedecor:shutter_white', { minetest.register_node('homedecor:shutter_white', {
description = "Wooden Shutter (White)", description = "Wooden Shutter (White)",
tile_images = { 'homedecor_window_shutter_white.png' }, tiles = { 'homedecor_window_shutter_white.png' },
inventory_image = 'homedecor_window_shutter_white.png', inventory_image = 'homedecor_window_shutter_white.png',
wield_image = 'homedecor_window_shutter_white.png', wield_image = 'homedecor_window_shutter_white.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -813,7 +813,7 @@ minetest.register_node('homedecor:shutter_white', {
minetest.register_node('homedecor:shutter_yellow', { minetest.register_node('homedecor:shutter_yellow', {
description = "Wooden Shutter (Yellow)", description = "Wooden Shutter (Yellow)",
tile_images = { 'homedecor_window_shutter_yellow.png' }, tiles = { 'homedecor_window_shutter_yellow.png' },
inventory_image = 'homedecor_window_shutter_yellow.png', inventory_image = 'homedecor_window_shutter_yellow.png',
wield_image = 'homedecor_window_shutter_yellow.png', wield_image = 'homedecor_window_shutter_yellow.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -833,7 +833,7 @@ minetest.register_node('homedecor:shutter_yellow', {
minetest.register_node('homedecor:utilitytable2', { minetest.register_node('homedecor:utilitytable2', {
description = "Utility table mk2", description = "Utility table mk2",
tile_images = { 'homedecor_utility_table_top.png', tiles = { 'homedecor_utility_table_top.png',
'homedecor_blanktile.png', 'homedecor_blanktile.png',
'homedecor_utility_table_legs.png', 'homedecor_utility_table_legs.png',
'homedecor_utility_table_legs.png', 'homedecor_utility_table_legs.png',
@ -866,7 +866,7 @@ end
minetest.register_node("homedecor:pole_brass", { minetest.register_node("homedecor:pole_brass", {
description = "Brass Pole", description = "Brass Pole",
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"homedecor_tile_brass2.png"}, tiles = {"homedecor_tile_brass2.png"},
inventory_image = "homedecor_pole_brass2.png", inventory_image = "homedecor_pole_brass2.png",
wield_image = "homedecor_pole_brass2.png", wield_image = "homedecor_pole_brass2.png",
paramtype = "light", paramtype = "light",
@ -887,7 +887,7 @@ minetest.register_node("homedecor:pole_brass", {
minetest.register_node("homedecor:pole_wrought_iron", { minetest.register_node("homedecor:pole_wrought_iron", {
description = "Wrought Iron Pole", description = "Wrought Iron Pole",
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"homedecor_tile_wrought_iron2.png"}, tiles = {"homedecor_tile_wrought_iron2.png"},
inventory_image = "homedecor_pole_wrought_iron.png", inventory_image = "homedecor_pole_wrought_iron.png",
wield_image = "homedecor_pole_wrought_iron.png", wield_image = "homedecor_pole_wrought_iron.png",
paramtype = "light", paramtype = "light",
@ -908,7 +908,7 @@ minetest.register_node("homedecor:pole_wrought_iron", {
minetest.register_node("homedecor:fence_brass", { minetest.register_node("homedecor:fence_brass", {
description = "Brass Fence/railing", description = "Brass Fence/railing",
drawtype = "fencelike", drawtype = "fencelike",
tile_images = {"homedecor_tile_brass.png"}, tiles = {"homedecor_tile_brass.png"},
inventory_image = "homedecor_fence_brass.png", inventory_image = "homedecor_fence_brass.png",
wield_image = "homedecor_pole_brass.png", wield_image = "homedecor_pole_brass.png",
paramtype = "light", paramtype = "light",
@ -925,7 +925,7 @@ minetest.register_node("homedecor:fence_brass", {
minetest.register_node("homedecor:fence_wrought_iron", { minetest.register_node("homedecor:fence_wrought_iron", {
description = "Wrought Iron Fence/railing", description = "Wrought Iron Fence/railing",
drawtype = "fencelike", drawtype = "fencelike",
tile_images = {"homedecor_tile_wrought_iron.png"}, tiles = {"homedecor_tile_wrought_iron.png"},
inventory_image = "homedecor_fence_wrought_iron.png", inventory_image = "homedecor_fence_wrought_iron.png",
wield_image = "homedecor_pole_wrought_iron.png", wield_image = "homedecor_pole_wrought_iron.png",
paramtype = "light", paramtype = "light",
@ -942,10 +942,10 @@ minetest.register_node("homedecor:fence_wrought_iron", {
minetest.register_node('homedecor:speaker', { minetest.register_node('homedecor:speaker', {
description = "Large Stereo Speaker", description = "Large Stereo Speaker",
tile_images = { 'homedecor_speaker_top.png', tiles = { 'homedecor_speaker_top.png',
'homedecor_speaker_bottom.png', 'homedecor_speaker_bottom.png',
'homedecor_speaker_left.png',
'homedecor_speaker_right.png', 'homedecor_speaker_right.png',
'homedecor_speaker_left.png',
'homedecor_speaker_back.png', 'homedecor_speaker_back.png',
'homedecor_speaker_front.png'}, 'homedecor_speaker_front.png'},
sunlight_propagates = false, sunlight_propagates = false,
@ -959,10 +959,10 @@ minetest.register_node('homedecor:speaker', {
minetest.register_node('homedecor:speaker_small', { minetest.register_node('homedecor:speaker_small', {
description = "Small Surround Speaker", description = "Small Surround Speaker",
drawtype = "nodebox", drawtype = "nodebox",
tile_images = { 'homedecor_speaker_top.png', tiles = { 'homedecor_speaker_top.png',
'homedecor_speaker_bottom.png', 'homedecor_speaker_bottom.png',
'homedecor_speaker_left.png',
'homedecor_speaker_right.png', 'homedecor_speaker_right.png',
'homedecor_speaker_left.png',
'homedecor_speaker_back.png', 'homedecor_speaker_back.png',
'homedecor_speaker_front.png'}, 'homedecor_speaker_front.png'},
selection_box = { selection_box = {

127
init.lua~
View File

@ -15,6 +15,7 @@
dofile(minetest.get_modpath("homedecor").."/foldingdoors_oak.lua") dofile(minetest.get_modpath("homedecor").."/foldingdoors_oak.lua")
dofile(minetest.get_modpath("homedecor").."/foldingdoors_mahogany.lua") dofile(minetest.get_modpath("homedecor").."/foldingdoors_mahogany.lua")
dofile(minetest.get_modpath("homedecor").."/exterior_door_fancy.lua")
dofile(minetest.get_modpath("homedecor").."/crafts.lua") dofile(minetest.get_modpath("homedecor").."/crafts.lua")
local DEBUG = 1 local DEBUG = 1
@ -32,7 +33,7 @@ end
minetest.register_node('homedecor:shingles_wood', { minetest.register_node('homedecor:shingles_wood', {
description = "Wood Shingles", description = "Wood Shingles",
drawtype = 'raillike', drawtype = 'raillike',
tile_images = { 'homedecor_shingles_wood.png' }, tiles = { 'homedecor_shingles_wood.png' },
wield_image = 'homedecor_shingles_wood.png', wield_image = 'homedecor_shingles_wood.png',
inventory_image = 'homedecor_shingles_wood.png', inventory_image = 'homedecor_shingles_wood.png',
paramtype = 'light', paramtype = 'light',
@ -45,7 +46,7 @@ minetest.register_node('homedecor:shingles_wood', {
minetest.register_node('homedecor:skylight', { minetest.register_node('homedecor:skylight', {
description = "Glass Skylight", description = "Glass Skylight",
drawtype = 'raillike', drawtype = 'raillike',
tile_images = { 'default_glass.png' }, tiles = { 'default_glass.png' },
wield_image = 'default_glass.png', wield_image = 'default_glass.png',
inventory_image = 'default_glass.png', inventory_image = 'default_glass.png',
paramtype = 'light', paramtype = 'light',
@ -58,7 +59,7 @@ minetest.register_node('homedecor:skylight', {
minetest.register_node('homedecor:shingles_asphalt', { minetest.register_node('homedecor:shingles_asphalt', {
description = "Asphalt Shingles", description = "Asphalt Shingles",
drawtype = 'raillike', drawtype = 'raillike',
tile_images = { '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.png',
paramtype = 'light', paramtype = 'light',
@ -71,7 +72,7 @@ minetest.register_node('homedecor:shingles_asphalt', {
minetest.register_node('homedecor:shingles_terracotta', { minetest.register_node('homedecor:shingles_terracotta', {
description = "Terracotta Roofing", description = "Terracotta Roofing",
drawtype = 'raillike', drawtype = 'raillike',
tile_images = { '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.png',
paramtype = 'light', paramtype = 'light',
@ -86,7 +87,7 @@ minetest.register_node('homedecor:shingles_terracotta', {
minetest.register_node('homedecor:projection_screen', { minetest.register_node('homedecor:projection_screen', {
description = "Projection Screen Material", description = "Projection Screen Material",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_projection_screen.png' }, tiles = { 'homedecor_projection_screen.png' },
wield_image = 'homedecor_projection_screen_inv.png', wield_image = 'homedecor_projection_screen_inv.png',
inventory_image = 'homedecor_projection_screen_inv.png', inventory_image = 'homedecor_projection_screen_inv.png',
sunlight_propagates = false, sunlight_propagates = false,
@ -104,7 +105,7 @@ minetest.register_node('homedecor:projection_screen', {
minetest.register_node('homedecor:ceiling_paint', { minetest.register_node('homedecor:ceiling_paint', {
description = "Textured Ceiling Paint", description = "Textured Ceiling Paint",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_ceiling_paint.png' }, tiles = { 'homedecor_ceiling_paint.png' },
inventory_image = 'homedecor_ceiling_paint_roller.png', inventory_image = 'homedecor_ceiling_paint_roller.png',
wield_image = 'homedecor_ceiling_paint_roller.png', wield_image = 'homedecor_ceiling_paint_roller.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -123,7 +124,7 @@ minetest.register_node('homedecor:ceiling_paint', {
minetest.register_node('homedecor:ceiling_tile', { minetest.register_node('homedecor:ceiling_tile', {
description = "Drop-Ceiling Tile", description = "Drop-Ceiling Tile",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_ceiling_tile.png' }, tiles = { 'homedecor_ceiling_tile.png' },
wield_image = 'homedecor_ceiling_tile.png', wield_image = 'homedecor_ceiling_tile.png',
inventory_image = 'homedecor_ceiling_tile.png', inventory_image = 'homedecor_ceiling_tile.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -142,7 +143,7 @@ minetest.register_node('homedecor:ceiling_tile', {
minetest.register_node('homedecor:rug_small', { minetest.register_node('homedecor:rug_small', {
description = "Small Throw Rug", description = "Small Throw Rug",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_rug_small.png' }, tiles = { 'homedecor_rug_small.png' },
wield_image = 'homedecor_rug_small.png', wield_image = 'homedecor_rug_small.png',
inventory_image = 'homedecor_rug_small.png', inventory_image = 'homedecor_rug_small.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -163,7 +164,7 @@ minetest.register_node('homedecor:rug_small', {
minetest.register_node('homedecor:rug_large', { minetest.register_node('homedecor:rug_large', {
description = "Large Area Rug", description = "Large Area Rug",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_rug_large.png' }, tiles = { 'homedecor_rug_large.png' },
wield_image = 'homedecor_rug_large.png', wield_image = 'homedecor_rug_large.png',
inventory_image = 'homedecor_rug_large.png', inventory_image = 'homedecor_rug_large.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -184,7 +185,7 @@ minetest.register_node('homedecor:rug_large', {
minetest.register_node('homedecor:glass_table_large', { minetest.register_node('homedecor:glass_table_large', {
description = "Large Glass Table Piece", description = "Large Glass Table Piece",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_glass_table_large.png' }, tiles = { 'homedecor_glass_table_large.png' },
wield_image = 'homedecor_glass_table_large.png', wield_image = 'homedecor_glass_table_large.png',
inventory_image = 'homedecor_glass_table_large.png', inventory_image = 'homedecor_glass_table_large.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -205,7 +206,7 @@ minetest.register_node('homedecor:glass_table_large', {
minetest.register_node('homedecor:glass_table_small_round', { minetest.register_node('homedecor:glass_table_small_round', {
description = "Glass Table (Small, Round)", description = "Glass Table (Small, Round)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_glass_table_small_round.png' }, tiles = { 'homedecor_glass_table_small_round.png' },
wield_image = 'homedecor_glass_table_small_round.png', wield_image = 'homedecor_glass_table_small_round.png',
inventory_image = 'homedecor_glass_table_small_round.png', inventory_image = 'homedecor_glass_table_small_round.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -226,7 +227,7 @@ minetest.register_node('homedecor:glass_table_small_round', {
minetest.register_node('homedecor:glass_table_small_square', { minetest.register_node('homedecor:glass_table_small_square', {
description = "Glass Table (Small, Square)", description = "Glass Table (Small, Square)",
drawtype = 'signlike', drawtype = 'signlike',
tile_images = { 'homedecor_glass_table_small_square.png' }, tiles = { 'homedecor_glass_table_small_square.png' },
wield_image = 'homedecor_glass_table_small_square.png', wield_image = 'homedecor_glass_table_small_square.png',
inventory_image = 'homedecor_glass_table_small_square.png', inventory_image = 'homedecor_glass_table_small_square.png',
sunlight_propagates = true, sunlight_propagates = true,
@ -247,7 +248,7 @@ minetest.register_node('homedecor:glass_table_small_square', {
minetest.register_node("homedecor:table_legs_brass", { minetest.register_node("homedecor:table_legs_brass", {
description = "Brass Table Legs", description = "Brass Table Legs",
drawtype = "plantlike", drawtype = "plantlike",
tile_images = {"homedecor_table_legs_brass.png"}, tiles = {"homedecor_table_legs_brass.png"},
inventory_image = "homedecor_table_legs_brass.png", inventory_image = "homedecor_table_legs_brass.png",
wield_image = "homedecor_table_legs_brass.png", wield_image = "homedecor_table_legs_brass.png",
visual_scale = 1.04, visual_scale = 1.04,
@ -261,7 +262,7 @@ minetest.register_node("homedecor:table_legs_brass", {
minetest.register_node("homedecor:table_legs_wrought_iron", { minetest.register_node("homedecor:table_legs_wrought_iron", {
description = "Brass Table Legs", description = "Brass Table Legs",
drawtype = "plantlike", drawtype = "plantlike",
tile_images = {"homedecor_table_legs_wrought_iron.png"}, tiles = {"homedecor_table_legs_wrought_iron.png"},
inventory_image = "homedecor_table_legs_wrought_iron.png", inventory_image = "homedecor_table_legs_wrought_iron.png",
wield_image = "homedecor_table_legs_wrought_iron.png", wield_image = "homedecor_table_legs_wrought_iron.png",
visual_scale = 1.04, visual_scale = 1.04,
@ -274,7 +275,7 @@ minetest.register_node("homedecor:table_legs_wrought_iron", {
minetest.register_node('homedecor:television', { minetest.register_node('homedecor:television', {
description = "Small CRT Television", description = "Small CRT Television",
tile_images = { 'homedecor_television_top.png', tiles = { 'homedecor_television_top.png',
'homedecor_television_bottom.png', 'homedecor_television_bottom.png',
'homedecor_television_left.png', 'homedecor_television_left.png',
'homedecor_television_right.png', 'homedecor_television_right.png',
@ -292,7 +293,7 @@ minetest.register_node('homedecor:television', {
minetest.register_node('homedecor:stereo', { minetest.register_node('homedecor:stereo', {
description = "Stereo Receiver", description = "Stereo Receiver",
tile_images = { 'homedecor_stereo_top.png', tiles = { 'homedecor_stereo_top.png',
'homedecor_stereo_bottom.png', 'homedecor_stereo_bottom.png',
'homedecor_stereo_left.png', 'homedecor_stereo_left.png',
'homedecor_stereo_right.png', 'homedecor_stereo_right.png',
@ -308,7 +309,7 @@ minetest.register_node('homedecor:stereo', {
minetest.register_node('homedecor:nightstand_oak_one_drawer', { minetest.register_node('homedecor:nightstand_oak_one_drawer', {
description = "Oak Nightstand with One Drawer", description = "Oak Nightstand with One Drawer",
tile_images = { 'homedecor_nightstand_oak_sides.png', tiles = { 'homedecor_nightstand_oak_sides.png',
'homedecor_nightstand_oak_sides.png', 'homedecor_nightstand_oak_sides.png',
'homedecor_nightstand_oak_sides.png', 'homedecor_nightstand_oak_sides.png',
'homedecor_nightstand_oak_sides.png', 'homedecor_nightstand_oak_sides.png',
@ -324,7 +325,7 @@ minetest.register_node('homedecor:nightstand_oak_one_drawer', {
minetest.register_node('homedecor:nightstand_oak_two_drawers', { minetest.register_node('homedecor:nightstand_oak_two_drawers', {
description = "Oak Nightstand with One Drawer", description = "Oak Nightstand with One Drawer",
tile_images = { 'homedecor_nightstand_oak_sides.png', tiles = { 'homedecor_nightstand_oak_sides.png',
'homedecor_nightstand_oak_sides.png', 'homedecor_nightstand_oak_sides.png',
'homedecor_nightstand_oak_sides.png', 'homedecor_nightstand_oak_sides.png',
'homedecor_nightstand_oak_sides.png', 'homedecor_nightstand_oak_sides.png',
@ -339,7 +340,7 @@ minetest.register_node('homedecor:nightstand_oak_two_drawers', {
}) })
minetest.register_node('homedecor:nightstand_mahogany_one_drawer', { minetest.register_node('homedecor:nightstand_mahogany_one_drawer', {
description = "Oak Nightstand with One Drawer", description = "Oak Nightstand with One Drawer",
tile_images = { 'homedecor_nightstand_mahogany_sides.png', tiles = { 'homedecor_nightstand_mahogany_sides.png',
'homedecor_nightstand_mahogany_sides.png', 'homedecor_nightstand_mahogany_sides.png',
'homedecor_nightstand_mahogany_sides.png', 'homedecor_nightstand_mahogany_sides.png',
'homedecor_nightstand_mahogany_sides.png', 'homedecor_nightstand_mahogany_sides.png',
@ -355,7 +356,7 @@ minetest.register_node('homedecor:nightstand_mahogany_one_drawer', {
minetest.register_node('homedecor:nightstand_mahogany_two_drawers', { minetest.register_node('homedecor:nightstand_mahogany_two_drawers', {
description = "Oak Nightstand with One Drawer", description = "Oak Nightstand with One Drawer",
tile_images = { 'homedecor_nightstand_mahogany_sides.png', tiles = { 'homedecor_nightstand_mahogany_sides.png',
'homedecor_nightstand_mahogany_sides.png', 'homedecor_nightstand_mahogany_sides.png',
'homedecor_nightstand_mahogany_sides.png', 'homedecor_nightstand_mahogany_sides.png',
'homedecor_nightstand_mahogany_sides.png', 'homedecor_nightstand_mahogany_sides.png',
@ -371,7 +372,7 @@ minetest.register_node('homedecor:nightstand_mahogany_two_drawers', {
minetest.register_node('homedecor:utility_table_top', { minetest.register_node('homedecor:utility_table_top', {
description = "Utility Table", description = "Utility Table",
tile_images = { 'homedecor_utility_table_top.png' }, tiles = { 'homedecor_utility_table_top.png' },
inventory_image = 'homedecor_utility_table_top.png', inventory_image = 'homedecor_utility_table_top.png',
wield_image = 'homedecor_utility_table_top.png', wield_image = 'homedecor_utility_table_top.png',
drawtype = "signlike", drawtype = "signlike",
@ -394,7 +395,7 @@ minetest.register_node('homedecor:utility_table_top', {
minetest.register_node('homedecor:utility_table_legs', { minetest.register_node('homedecor:utility_table_legs', {
description = "Legs for Utility Table", description = "Legs for Utility Table",
tile_images = { 'homedecor_utility_table_legs.png' }, tiles = { 'homedecor_utility_table_legs.png' },
inventory_image = 'homedecor_utility_table_legs_inv.png', inventory_image = 'homedecor_utility_table_legs_inv.png',
wield_image = 'homedecor_utility_table_legs.png', wield_image = 'homedecor_utility_table_legs.png',
visual_scale = 1.04, visual_scale = 1.04,
@ -409,7 +410,7 @@ minetest.register_node('homedecor:utility_table_legs', {
minetest.register_node('homedecor:flower_pot_terracotta', { minetest.register_node('homedecor:flower_pot_terracotta', {
description = "Terracotta Flower Pot", description = "Terracotta Flower Pot",
tile_images = { 'homedecor_flower_pot_terracotta_top.png', tiles = { 'homedecor_flower_pot_terracotta_top.png',
'homedecor_flower_pot_terracotta_bottom.png', 'homedecor_flower_pot_terracotta_bottom.png',
'homedecor_flower_pot_terracotta_sides.png', 'homedecor_flower_pot_terracotta_sides.png',
'homedecor_flower_pot_terracotta_sides.png', 'homedecor_flower_pot_terracotta_sides.png',
@ -425,7 +426,7 @@ minetest.register_node('homedecor:flower_pot_terracotta', {
minetest.register_node('homedecor:flower_pot_black', { minetest.register_node('homedecor:flower_pot_black', {
description = "Black Plastic Flower Pot", description = "Black Plastic Flower Pot",
tile_images = { 'homedecor_flower_pot_black_top.png', tiles = { 'homedecor_flower_pot_black_top.png',
'homedecor_flower_pot_black_bottom.png', 'homedecor_flower_pot_black_bottom.png',
'homedecor_flower_pot_black_sides.png', 'homedecor_flower_pot_black_sides.png',
'homedecor_flower_pot_black_sides.png', 'homedecor_flower_pot_black_sides.png',
@ -441,7 +442,7 @@ minetest.register_node('homedecor:flower_pot_black', {
minetest.register_node('homedecor:flower_pot_green', { minetest.register_node('homedecor:flower_pot_green', {
description = "Green Plastic Flower Pot", description = "Green Plastic Flower Pot",
tile_images = { 'homedecor_flower_pot_green_top.png', tiles = { 'homedecor_flower_pot_green_top.png',
'homedecor_flower_pot_green_bottom.png', 'homedecor_flower_pot_green_bottom.png',
'homedecor_flower_pot_green_sides.png', 'homedecor_flower_pot_green_sides.png',
'homedecor_flower_pot_green_sides.png', 'homedecor_flower_pot_green_sides.png',
@ -457,7 +458,7 @@ minetest.register_node('homedecor:flower_pot_green', {
minetest.register_node('homedecor:wood_table_large', { minetest.register_node('homedecor:wood_table_large', {
description = "Wooden Tabletop piece", description = "Wooden Tabletop piece",
tile_images = { 'homedecor_wood_table_large.png' }, tiles = { 'homedecor_wood_table_large.png' },
inventory_image = 'homedecor_wood_table_large.png', inventory_image = 'homedecor_wood_table_large.png',
wield_image = 'homedecor_wood_table_large.png', wield_image = 'homedecor_wood_table_large.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -478,7 +479,7 @@ minetest.register_node('homedecor:wood_table_large', {
minetest.register_node('homedecor:wood_table_small_round', { minetest.register_node('homedecor:wood_table_small_round', {
description = "Wooden Tabletop (Small, Round)", description = "Wooden Tabletop (Small, Round)",
tile_images = { 'homedecor_wood_table_small_round.png' }, tiles = { 'homedecor_wood_table_small_round.png' },
inventory_image = 'homedecor_wood_table_small_round.png', inventory_image = 'homedecor_wood_table_small_round.png',
wield_image = 'homedecor_wood_table_small_round.png', wield_image = 'homedecor_wood_table_small_round.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -499,7 +500,7 @@ minetest.register_node('homedecor:wood_table_small_round', {
minetest.register_node('homedecor:wood_table_small_square', { minetest.register_node('homedecor:wood_table_small_square', {
description = "Wooden Tabletop (Small, Square)", description = "Wooden Tabletop (Small, Square)",
tile_images = { 'homedecor_wood_table_small_square.png' }, tiles = { 'homedecor_wood_table_small_square.png' },
inventory_image = 'homedecor_wood_table_small_square.png', inventory_image = 'homedecor_wood_table_small_square.png',
wield_image = 'homedecor_wood_table_small_square.png', wield_image = 'homedecor_wood_table_small_square.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -520,7 +521,7 @@ minetest.register_node('homedecor:wood_table_small_square', {
minetest.register_node('homedecor:folding_door_mahogany', { minetest.register_node('homedecor:folding_door_mahogany', {
description = "Mahogany Folding Door", description = "Mahogany Folding Door",
tile_images = { 'homedecor_folding_door_mahogany.png' }, tiles = { 'homedecor_folding_door_mahogany.png' },
inventory_image = 'homedecor_folding_door_mahogany.png', inventory_image = 'homedecor_folding_door_mahogany.png',
wield_image = 'homedecor_folding_door_mahogany.png', wield_image = 'homedecor_folding_door_mahogany.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -539,7 +540,7 @@ minetest.register_node('homedecor:folding_door_mahogany', {
minetest.register_node('homedecor:folding_door_oak', { minetest.register_node('homedecor:folding_door_oak', {
description = "Oak Folding Door", description = "Oak Folding Door",
tile_images = { 'homedecor_folding_door_oak.png' }, tiles = { 'homedecor_folding_door_oak.png' },
inventory_image = 'homedecor_folding_door_oak.png', inventory_image = 'homedecor_folding_door_oak.png',
wield_image = 'homedecor_folding_door_oak.png', wield_image = 'homedecor_folding_door_oak.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -558,7 +559,7 @@ minetest.register_node('homedecor:folding_door_oak', {
minetest.register_node('homedecor:dresser_mahogany_left_side', { minetest.register_node('homedecor:dresser_mahogany_left_side', {
description = "Mahogany Dresser (Left Half)", description = "Mahogany Dresser (Left Half)",
tile_images = { 'homedecor_dresser_mahogany_sides.png', tiles = { 'homedecor_dresser_mahogany_sides.png',
'homedecor_dresser_mahogany_sides.png', 'homedecor_dresser_mahogany_sides.png',
'homedecor_dresser_mahogany_sides.png', 'homedecor_dresser_mahogany_sides.png',
'homedecor_dresser_mahogany_sides.png', 'homedecor_dresser_mahogany_sides.png',
@ -574,7 +575,7 @@ minetest.register_node('homedecor:dresser_mahogany_left_side', {
minetest.register_node('homedecor:dresser_mahogany_right_side', { minetest.register_node('homedecor:dresser_mahogany_right_side', {
description = "Mahogany Dresser (Right Half)", description = "Mahogany Dresser (Right Half)",
tile_images = { 'homedecor_dresser_mahogany_sides.png', tiles = { 'homedecor_dresser_mahogany_sides.png',
'homedecor_dresser_mahogany_sides.png', 'homedecor_dresser_mahogany_sides.png',
'homedecor_dresser_mahogany_sides.png', 'homedecor_dresser_mahogany_sides.png',
'homedecor_dresser_mahogany_sides.png', 'homedecor_dresser_mahogany_sides.png',
@ -590,7 +591,7 @@ minetest.register_node('homedecor:dresser_mahogany_right_side', {
minetest.register_node('homedecor:dresser_oak_left_side', { minetest.register_node('homedecor:dresser_oak_left_side', {
description = "Oak Dresser (Left Half)", description = "Oak Dresser (Left Half)",
tile_images = { 'homedecor_dresser_oak_sides.png', tiles = { 'homedecor_dresser_oak_sides.png',
'homedecor_dresser_oak_sides.png', 'homedecor_dresser_oak_sides.png',
'homedecor_dresser_oak_sides.png', 'homedecor_dresser_oak_sides.png',
'homedecor_dresser_oak_sides.png', 'homedecor_dresser_oak_sides.png',
@ -606,7 +607,7 @@ minetest.register_node('homedecor:dresser_oak_left_side', {
minetest.register_node('homedecor:dresser_oak_right_side', { minetest.register_node('homedecor:dresser_oak_right_side', {
description = "Oak Dresser (Right Half)", description = "Oak Dresser (Right Half)",
tile_images = { 'homedecor_dresser_oak_sides.png', tiles = { 'homedecor_dresser_oak_sides.png',
'homedecor_dresser_oak_sides.png', 'homedecor_dresser_oak_sides.png',
'homedecor_dresser_oak_sides.png', 'homedecor_dresser_oak_sides.png',
'homedecor_dresser_oak_sides.png', 'homedecor_dresser_oak_sides.png',
@ -620,9 +621,9 @@ minetest.register_node('homedecor:dresser_oak_right_side', {
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
minetest.register_node('homedecor:window_shutter_black', { minetest.register_node('homedecor:shutter_black', {
description = "Wooden Shutter (Black)", description = "Wooden Shutter (Black)",
tile_images = { 'homedecor_window_shutter_black.png' }, tiles = { 'homedecor_window_shutter_black.png' },
inventory_image = 'homedecor_window_shutter_black.png', inventory_image = 'homedecor_window_shutter_black.png',
wield_image = 'homedecor_window_shutter_black.png', wield_image = 'homedecor_window_shutter_black.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -639,9 +640,9 @@ minetest.register_node('homedecor:window_shutter_black', {
}, },
}) })
minetest.register_node('homedecor:window_shutter_mahogany', { minetest.register_node('homedecor:shutter_mahogany', {
description = "Wooden Shutter (Unpainted Mahogany)", description = "Wooden Shutter (Unpainted Mahogany)",
tile_images = { 'homedecor_window_shutter_mahogany.png' }, tiles = { 'homedecor_window_shutter_mahogany.png' },
inventory_image = 'homedecor_window_shutter_mahogany.png', inventory_image = 'homedecor_window_shutter_mahogany.png',
wield_image = 'homedecor_window_shutter_mahogany.png', wield_image = 'homedecor_window_shutter_mahogany.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -658,9 +659,9 @@ minetest.register_node('homedecor:window_shutter_mahogany', {
}, },
}) })
minetest.register_node('homedecor:window_shutter_oak', { minetest.register_node('homedecor:shutter_oak', {
description = "Wooden Shutter (Unpainted Oak)", description = "Wooden Shutter (Unpainted Oak)",
tile_images = { 'homedecor_window_shutter_oak.png' }, tiles = { 'homedecor_window_shutter_oak.png' },
inventory_image = 'homedecor_window_shutter_oak.png', inventory_image = 'homedecor_window_shutter_oak.png',
wield_image = 'homedecor_window_shutter_oak.png', wield_image = 'homedecor_window_shutter_oak.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -677,9 +678,9 @@ minetest.register_node('homedecor:window_shutter_oak', {
}, },
}) })
minetest.register_node('homedecor:window_shutter_dark_grey', { minetest.register_node('homedecor:shutter_dark_grey', {
description = "Wooden Shutter (Dark Grey)", description = "Wooden Shutter (Dark Grey)",
tile_images = { 'homedecor_window_shutter_dark_grey.png' }, tiles = { 'homedecor_window_shutter_dark_grey.png' },
inventory_image = 'homedecor_window_shutter_dark_grey.png', inventory_image = 'homedecor_window_shutter_dark_grey.png',
wield_image = 'homedecor_window_shutter_dark_grey.png', wield_image = 'homedecor_window_shutter_dark_grey.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -696,9 +697,9 @@ minetest.register_node('homedecor:window_shutter_dark_grey', {
}, },
}) })
minetest.register_node('homedecor:window_shutter_forest_green', { minetest.register_node('homedecor:shutter_forest_green', {
description = "Wooden Shutter (Forest Green)", description = "Wooden Shutter (Forest Green)",
tile_images = { 'homedecor_window_shutter_forest_green.png' }, tiles = { 'homedecor_window_shutter_forest_green.png' },
inventory_image = 'homedecor_window_shutter_forest_green.png', inventory_image = 'homedecor_window_shutter_forest_green.png',
wield_image = 'homedecor_window_shutter_forest_green.png', wield_image = 'homedecor_window_shutter_forest_green.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -715,9 +716,9 @@ minetest.register_node('homedecor:window_shutter_forest_green', {
}, },
}) })
minetest.register_node('homedecor:window_shutter_grey', { minetest.register_node('homedecor:shutter_grey', {
description = "Wooden Shutter (Grey)", description = "Wooden Shutter (Grey)",
tile_images = { 'homedecor_window_shutter_grey.png' }, tiles = { 'homedecor_window_shutter_grey.png' },
inventory_image = 'homedecor_window_shutter_grey.png', inventory_image = 'homedecor_window_shutter_grey.png',
wield_image = 'homedecor_window_shutter_grey.png', wield_image = 'homedecor_window_shutter_grey.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -734,9 +735,9 @@ minetest.register_node('homedecor:window_shutter_grey', {
}, },
}) })
minetest.register_node('homedecor:window_shutter_light_blue', { minetest.register_node('homedecor:shutter_light_blue', {
description = "Wooden Shutter (Light Blue)", description = "Wooden Shutter (Light Blue)",
tile_images = { 'homedecor_window_shutter_light_blue.png' }, tiles = { 'homedecor_window_shutter_light_blue.png' },
inventory_image = 'homedecor_window_shutter_light_blue.png', inventory_image = 'homedecor_window_shutter_light_blue.png',
wield_image = 'homedecor_window_shutter_light_blue.png', wield_image = 'homedecor_window_shutter_light_blue.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -753,9 +754,9 @@ minetest.register_node('homedecor:window_shutter_light_blue', {
}, },
}) })
minetest.register_node('homedecor:window_shutter_purple', { minetest.register_node('homedecor:shutter_purple', {
description = "Wooden Shutter (Purple)", description = "Wooden Shutter (Purple)",
tile_images = { 'homedecor_window_shutter_purple.png' }, tiles = { 'homedecor_window_shutter_purple.png' },
inventory_image = 'homedecor_window_shutter_purple.png', inventory_image = 'homedecor_window_shutter_purple.png',
wield_image = 'homedecor_window_shutter_purple.png', wield_image = 'homedecor_window_shutter_purple.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -772,9 +773,9 @@ minetest.register_node('homedecor:window_shutter_purple', {
}, },
}) })
minetest.register_node('homedecor:window_shutter_red', { minetest.register_node('homedecor:shutter_red', {
description = "Wooden Shutter (Red)", description = "Wooden Shutter (Red)",
tile_images = { 'homedecor_window_shutter_red.png' }, tiles = { 'homedecor_window_shutter_red.png' },
inventory_image = 'homedecor_window_shutter_red.png', inventory_image = 'homedecor_window_shutter_red.png',
wield_image = 'homedecor_window_shutter_red.png', wield_image = 'homedecor_window_shutter_red.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -791,9 +792,9 @@ minetest.register_node('homedecor:window_shutter_red', {
}, },
}) })
minetest.register_node('homedecor:window_shutter_white', { minetest.register_node('homedecor:shutter_white', {
description = "Wooden Shutter (White)", description = "Wooden Shutter (White)",
tile_images = { 'homedecor_window_shutter_white.png' }, tiles = { 'homedecor_window_shutter_white.png' },
inventory_image = 'homedecor_window_shutter_white.png', inventory_image = 'homedecor_window_shutter_white.png',
wield_image = 'homedecor_window_shutter_white.png', wield_image = 'homedecor_window_shutter_white.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -810,9 +811,9 @@ minetest.register_node('homedecor:window_shutter_white', {
}, },
}) })
minetest.register_node('homedecor:window_shutter_yellow', { minetest.register_node('homedecor:shutter_yellow', {
description = "Wooden Shutter (Yellow)", description = "Wooden Shutter (Yellow)",
tile_images = { 'homedecor_window_shutter_yellow.png' }, tiles = { 'homedecor_window_shutter_yellow.png' },
inventory_image = 'homedecor_window_shutter_yellow.png', inventory_image = 'homedecor_window_shutter_yellow.png',
wield_image = 'homedecor_window_shutter_yellow.png', wield_image = 'homedecor_window_shutter_yellow.png',
drawtype = 'signlike', drawtype = 'signlike',
@ -832,7 +833,7 @@ minetest.register_node('homedecor:window_shutter_yellow', {
minetest.register_node('homedecor:utilitytable2', { minetest.register_node('homedecor:utilitytable2', {
description = "Utility table mk2", description = "Utility table mk2",
tile_images = { 'homedecor_utility_table_top.png', tiles = { 'homedecor_utility_table_top.png',
'homedecor_blanktile.png', 'homedecor_blanktile.png',
'homedecor_utility_table_legs.png', 'homedecor_utility_table_legs.png',
'homedecor_utility_table_legs.png', 'homedecor_utility_table_legs.png',
@ -865,7 +866,7 @@ end
minetest.register_node("homedecor:pole_brass", { minetest.register_node("homedecor:pole_brass", {
description = "Brass Pole", description = "Brass Pole",
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"homedecor_tile_brass2.png"}, tiles = {"homedecor_tile_brass2.png"},
inventory_image = "homedecor_pole_brass2.png", inventory_image = "homedecor_pole_brass2.png",
wield_image = "homedecor_pole_brass2.png", wield_image = "homedecor_pole_brass2.png",
paramtype = "light", paramtype = "light",
@ -886,7 +887,7 @@ minetest.register_node("homedecor:pole_brass", {
minetest.register_node("homedecor:pole_wrought_iron", { minetest.register_node("homedecor:pole_wrought_iron", {
description = "Wrought Iron Pole", description = "Wrought Iron Pole",
drawtype = "nodebox", drawtype = "nodebox",
tile_images = {"homedecor_tile_wrought_iron2.png"}, tiles = {"homedecor_tile_wrought_iron2.png"},
inventory_image = "homedecor_pole_wrought_iron.png", inventory_image = "homedecor_pole_wrought_iron.png",
wield_image = "homedecor_pole_wrought_iron.png", wield_image = "homedecor_pole_wrought_iron.png",
paramtype = "light", paramtype = "light",
@ -907,7 +908,7 @@ minetest.register_node("homedecor:pole_wrought_iron", {
minetest.register_node("homedecor:fence_brass", { minetest.register_node("homedecor:fence_brass", {
description = "Brass Fence/railing", description = "Brass Fence/railing",
drawtype = "fencelike", drawtype = "fencelike",
tile_images = {"homedecor_tile_brass.png"}, tiles = {"homedecor_tile_brass.png"},
inventory_image = "homedecor_fence_brass.png", inventory_image = "homedecor_fence_brass.png",
wield_image = "homedecor_pole_brass.png", wield_image = "homedecor_pole_brass.png",
paramtype = "light", paramtype = "light",
@ -924,7 +925,7 @@ minetest.register_node("homedecor:fence_brass", {
minetest.register_node("homedecor:fence_wrought_iron", { minetest.register_node("homedecor:fence_wrought_iron", {
description = "Wrought Iron Fence/railing", description = "Wrought Iron Fence/railing",
drawtype = "fencelike", drawtype = "fencelike",
tile_images = {"homedecor_tile_wrought_iron.png"}, tiles = {"homedecor_tile_wrought_iron.png"},
inventory_image = "homedecor_fence_wrought_iron.png", inventory_image = "homedecor_fence_wrought_iron.png",
wield_image = "homedecor_pole_wrought_iron.png", wield_image = "homedecor_pole_wrought_iron.png",
paramtype = "light", paramtype = "light",
@ -941,7 +942,7 @@ minetest.register_node("homedecor:fence_wrought_iron", {
minetest.register_node('homedecor:speaker', { minetest.register_node('homedecor:speaker', {
description = "Large Stereo Speaker", description = "Large Stereo Speaker",
tile_images = { 'homedecor_speaker_top.png', tiles = { 'homedecor_speaker_top.png',
'homedecor_speaker_bottom.png', 'homedecor_speaker_bottom.png',
'homedecor_speaker_left.png', 'homedecor_speaker_left.png',
'homedecor_speaker_right.png', 'homedecor_speaker_right.png',
@ -958,7 +959,7 @@ minetest.register_node('homedecor:speaker', {
minetest.register_node('homedecor:speaker_small', { minetest.register_node('homedecor:speaker_small', {
description = "Small Surround Speaker", description = "Small Surround Speaker",
drawtype = "nodebox", drawtype = "nodebox",
tile_images = { 'homedecor_speaker_top.png', tiles = { 'homedecor_speaker_top.png',
'homedecor_speaker_bottom.png', 'homedecor_speaker_bottom.png',
'homedecor_speaker_left.png', 'homedecor_speaker_left.png',
'homedecor_speaker_right.png', 'homedecor_speaker_right.png',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 B

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 B

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 B

After

Width:  |  Height:  |  Size: 173 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 172 B