From fcca159f48098b0357e0b1f983be160403d417a4 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 28 Jul 2012 03:28:14 -0400 Subject: [PATCH] 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. --- changelog.txt | 5 + exterior_door_fancy.lua | 20 +- exterior_door_fancy.lua~ | 281 ++++++++-------- foldingdoors_mahogany.lua | 20 +- foldingdoors_mahogany.lua~ | 10 +- foldingdoors_oak.lua | 20 +- foldingdoors_oak.lua~ | 420 ++++++++++++++++++++++++ init.lua | 112 +++---- init.lua~ | 127 +++---- textures/homedecor_speaker_left.png | Bin 3241 -> 3264 bytes textures/homedecor_speaker_right.png | Bin 3249 -> 3260 bytes textures/homedecor_stereo_left.png | Bin 169 -> 188 bytes textures/homedecor_stereo_right.png | Bin 170 -> 187 bytes textures/homedecor_television_left.png | Bin 154 -> 173 bytes textures/homedecor_television_right.png | Bin 155 -> 172 bytes 15 files changed, 713 insertions(+), 302 deletions(-) create mode 100644 foldingdoors_oak.lua~ diff --git a/changelog.txt b/changelog.txt index 6667e19..880b5c8 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,11 @@ 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-24: Made all objects that use a dye require a more appropriate color, diff --git a/exterior_door_fancy.lua b/exterior_door_fancy.lua index b3fa47a..05c9a61 100644 --- a/exterior_door_fancy.lua +++ b/exterior_door_fancy.lua @@ -44,7 +44,7 @@ end minetest.register_node('homedecor:exterior_door_fancy', { description = "Fancy Wood/Glass Exterior Door (Left Opening)", drawtype = 'signlike', - tile_images = { 'homedecor_exterior_door_fancy.png' }, + tiles = { 'homedecor_exterior_door_fancy.png' }, inventory_image = 'homedecor_exterior_door_fancy.png', wield_image = 'homedecor_exterior_door_fancy.png', paramtype2 = "wallmounted", @@ -154,7 +154,7 @@ minetest.register_on_dignode( on_exterior_door_fancy_digged ) minetest.register_node('homedecor:exterior_door_fancy_a_c', { 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', drawtype = 'signlike', 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', { description = "Fancy Wood/Glass Exterior Door (bottom, closed)", 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', sunlight_propagates = false, paramtype = "light", @@ -183,7 +183,7 @@ minetest.register_node('homedecor:exterior_door_fancy_b_c', { minetest.register_node('homedecor:exterior_door_fancy_a_o', { description = "Fancy Wood/Glass Exterior Door (top, open)", 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', sunlight_propagates = false, paramtype = "light", @@ -197,7 +197,7 @@ minetest.register_node('homedecor:exterior_door_fancy_a_o', { minetest.register_node('homedecor:exterior_door_fancy_b_o', { description = "Fancy Wood/Glass Exterior Door (bottom, open)", 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', sunlight_propagates = false, paramtype = "light", @@ -218,7 +218,7 @@ minetest.register_node('homedecor:exterior_door_fancy_b_o', { minetest.register_node('homedecor:exterior_door_fancy_right', { description = "Fancy Wood/Glass Exterior Door (Right Opening)", 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', wield_image = 'homedecor_exterior_door_fancy_right.png', 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', { 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', drawtype = 'signlike', 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', { description = "Fancy Wood/Glass Exterior Door (bottom, closed, right)", 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', sunlight_propagates = false, 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', { description = "Fancy Wood/Glass Exterior Door (top, open, right)", 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', sunlight_propagates = false, 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', { description = "Fancy Wood/Glass Exterior Door (bottom, open, right)", 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', sunlight_propagates = false, paramtype = "light", diff --git a/exterior_door_fancy.lua~ b/exterior_door_fancy.lua~ index 3da86c4..b3fa47a 100644 --- a/exterior_door_fancy.lua~ +++ b/exterior_door_fancy.lua~ @@ -1,7 +1,11 @@ --- Mahogany "folding" doors - part of home decor mod by VanessaE +-- Fancy Exterior doors - part of home decor mod by VanessaE -- 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 -- @@ -20,7 +24,7 @@ local WALLPZr = 5 local dbg = function(s) if DEBUG == 1 then - print('[FOLDINGDOORS] ' .. s) + print('[ExteriorDoorFancy] ' .. s) end end @@ -37,21 +41,21 @@ end -- Actual nodes that you place -minetest.register_node('homedecor:folding_door_mahogany', { - description = "Mahogany Folding Door (Left Opening)", +minetest.register_node('homedecor:exterior_door_fancy', { + description = "Fancy Wood/Glass Exterior Door (Left Opening)", drawtype = 'signlike', - tile_images = { 'homedecor_folding_door_mahogany.png' }, - inventory_image = 'homedecor_folding_door_mahogany.png', - wield_image = 'homedecor_folding_door_mahogany.png', + tile_images = { 'homedecor_exterior_door_fancy.png' }, + inventory_image = 'homedecor_exterior_door_fancy.png', + wield_image = 'homedecor_exterior_door_fancy.png', paramtype2 = "wallmounted", selection_box = { type = "wallmounted" }, groups = { choppy = 2, dig_immediate=2 }, }) --- Mahogany door functions +-- Fancy Exterior door functions -local on_mahogany_folding_door_placed = function( pos, node, placer ) - if node.name ~= 'homedecor:folding_door_mahogany' then return end +local on_exterior_door_fancy_placed = function( pos, node, placer ) + if node.name ~= 'homedecor:exterior_door_fancy' 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 } @@ -71,20 +75,20 @@ local on_mahogany_folding_door_placed = function( pos, node, placer ) end if und.name == 'air' then - minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_a_c', param2 = newparam } ) - minetest.env:add_node( upos, { name = 'homedecor:folding_door_mahogany_b_c', param2 = newparam } ) + minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_a_c', param2 = newparam } ) + minetest.env:add_node( upos, { name = 'homedecor:exterior_door_fancy_b_c', param2 = newparam } ) elseif abv.name == 'air' then - minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_b_c', param2 = newparam } ) - minetest.env:add_node( apos, { name = 'homedecor:folding_door_mahogany_a_c', param2 = newparam } ) + minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_b_c', param2 = newparam } ) + minetest.env:add_node( apos, { name = 'homedecor:exterior_door_fancy_a_c', param2 = newparam } ) else 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' ) end end -local on_mahogany_folding_door_punched = function( pos, node, puncher ) - if string.find( node.name, 'homedecor:folding_door_mahogany' ) == nil then return end +local on_exterior_door_fancy_punched = function( pos, node, puncher ) + if string.find( node.name, 'homedecor:exterior_door_fancy' ) == 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 } @@ -111,47 +115,47 @@ local on_mahogany_folding_door_punched = function( pos, node, puncher ) end end - if ( node.name == 'homedecor:folding_door_mahogany_a_c' ) then - minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_a_o', param2 = newparam } ) - minetest.env:add_node( upos, { name = 'homedecor:folding_door_mahogany_b_o', param2 = newparam } ) + if ( node.name == 'homedecor:exterior_door_fancy_a_c' ) then + minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_a_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 - minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_b_o', param2 = newparam } ) - minetest.env:add_node( apos, { name = 'homedecor:folding_door_mahogany_a_o', param2 = newparam } ) + elseif ( node.name == 'homedecor:exterior_door_fancy_b_c' ) then + minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_b_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 - minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_a_c', param2 = newparam } ) - minetest.env:add_node( upos, { name = 'homedecor:folding_door_mahogany_b_c', param2 = newparam } ) + elseif ( node.name == 'homedecor:exterior_door_fancy_a_o' ) then + minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_a_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 - minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_b_c', param2 = newparam } ) - minetest.env:add_node( apos, { name = 'homedecor:folding_door_mahogany_a_c', param2 = newparam } ) + elseif ( node.name == 'homedecor:exterior_door_fancy_b_o' ) then + minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_b_c', param2 = newparam } ) + minetest.env:add_node( apos, { name = 'homedecor:exterior_door_fancy_a_c', param2 = newparam } ) 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 } 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 ) - 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 ) end end -minetest.register_on_placenode( on_mahogany_folding_door_placed ) -minetest.register_on_punchnode( on_mahogany_folding_door_punched ) -minetest.register_on_dignode( on_mahogany_folding_door_digged ) +minetest.register_on_placenode( on_exterior_door_fancy_placed ) +minetest.register_on_punchnode( on_exterior_door_fancy_punched ) +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', { - description = "Mahogany Folding Door (top, closed)", - tile_images = { 'homedecor_folding_door_mahogany_a.png' }, - inventory_image = 'homedecor_folding_door_mahogany_a.png', +minetest.register_node('homedecor:exterior_door_fancy_a_c', { + description = "Fancy Wood/Glass Exterior Door (top, closed)", + tile_images = { 'homedecor_exterior_door_fancy_a.png' }, + inventory_image = 'homedecor_exterior_door_fancy_a.png', drawtype = 'signlike', sunlight_propagates = false, paramtype = "light", @@ -159,49 +163,49 @@ minetest.register_node('homedecor:folding_door_mahogany_a_c', { walkable = true, groups = { choppy = 2, dig_immediate=2 }, selection_box = { type = "wallmounted" }, - drop = 'homedecor:folding_door_mahogany', + drop = 'homedecor:exterior_door_fancy', }) -minetest.register_node('homedecor:folding_door_mahogany_b_c', { - description = "Mahogany Folding Door (bottom, closed)", +minetest.register_node('homedecor:exterior_door_fancy_b_c', { + description = "Fancy Wood/Glass Exterior Door (bottom, closed)", drawtype = 'signlike', - tile_images = { 'homedecor_folding_door_mahogany_b.png' }, - inventory_image = 'homedecor_folding_door_mahogany_b.png', + tile_images = { 'homedecor_exterior_door_fancy_b.png' }, + inventory_image = 'homedecor_exterior_door_fancy_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_mahogany', + drop = 'homedecor:exterior_door_fancy', }) -minetest.register_node('homedecor:folding_door_mahogany_a_o', { - description = "Mahogany Folding Door (top, open)", +minetest.register_node('homedecor:exterior_door_fancy_a_o', { + description = "Fancy Wood/Glass Exterior Door (top, open)", drawtype = 'signlike', - tile_images = { 'homedecor_folding_door_mahogany_a_r.png' }, - inventory_image = 'homedecor_folding_door_mahogany_a_r.png', + tile_images = { 'homedecor_exterior_door_fancy_a_r.png' }, + inventory_image = 'homedecor_exterior_door_fancy_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_mahogany', + drop = 'homedecor:exterior_door_fancy', }) -minetest.register_node('homedecor:folding_door_mahogany_b_o', { - description = "Mahogany Folding Door (bottom, open)", +minetest.register_node('homedecor:exterior_door_fancy_b_o', { + description = "Fancy Wood/Glass Exterior Door (bottom, open)", drawtype = 'signlike', - tile_images = { 'homedecor_folding_door_mahogany_b_r.png' }, - inventory_image = 'homedecor_folding_door_mahogany_b_r.png', + tile_images = { 'homedecor_exterior_door_fancy_b_r.png' }, + inventory_image = 'homedecor_exterior_door_fancy_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_mahogany', + drop = 'homedecor:exterior_door_fancy', }) @@ -211,22 +215,22 @@ minetest.register_node('homedecor:folding_door_mahogany_b_o', { -- Actual nodes that you place -minetest.register_node('homedecor:folding_door_mahogany_right', { - description = "Mahogany Folding Door (Right Opening)", +minetest.register_node('homedecor:exterior_door_fancy_right', { + description = "Fancy Wood/Glass Exterior Door (Right Opening)", drawtype = 'signlike', - tile_images = { 'homedecor_folding_door_mahogany_right.png' }, - inventory_image = 'homedecor_folding_door_mahogany_right.png', - wield_image = 'homedecor_folding_door_mahogany_right.png', + tile_images = { 'homedecor_exterior_door_fancy_right.png' }, + inventory_image = 'homedecor_exterior_door_fancy_right.png', + wield_image = 'homedecor_exterior_door_fancy_right.png', paramtype2 = "wallmounted", selection_box = { type = "wallmounted" }, groups = { choppy = 2, dig_immediate=2 }, }) --- Mahogany door functions +-- Fancy Exterior door functions -local on_mahogany_folding_door_placed_right = function( pos, node, placer ) - if node.name ~= 'homedecor:folding_door_mahogany_right' then return end +local on_exterior_door_fancy_placed_right = function( pos, node, placer ) + if node.name ~= 'homedecor:exterior_door_fancy_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 } @@ -246,21 +250,21 @@ local on_mahogany_folding_door_placed_right = function( pos, node, placer ) end if und.name == 'air' then - minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_a_c_right', param2 = newparam } ) - minetest.env:add_node( upos, { name = 'homedecor:folding_door_mahogany_b_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:exterior_door_fancy_b_c_right', param2 = newparam } ) elseif abv.name == 'air' then - minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_b_c_right', param2 = newparam } ) - minetest.env:add_node( apos, { name = 'homedecor:folding_door_mahogany_a_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:exterior_door_fancy_a_c_right', param2 = newparam } ) else 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' ) 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 } 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 - if ( node.name == 'homedecor:folding_door_mahogany_a_c_right' ) then - minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_a_o_right', param2 = newparam } ) - minetest.env:add_node( upos, { name = 'homedecor:folding_door_mahogany_b_o_right', param2 = newparam } ) + if ( node.name == 'homedecor:exterior_door_fancy_a_c_right' ) then + minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_a_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 - minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_b_o_right', param2 = newparam } ) - minetest.env:add_node( apos, { name = 'homedecor:folding_door_mahogany_a_o_right', param2 = newparam } ) + elseif ( node.name == 'homedecor:exterior_door_fancy_b_c_right' ) then + minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_b_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 - minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_a_c_right', param2 = newparam } ) - minetest.env:add_node( upos, { name = 'homedecor:folding_door_mahogany_b_c_right', param2 = newparam } ) + elseif ( node.name == 'homedecor:exterior_door_fancy_a_o_right' ) then + minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_a_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 - minetest.env:add_node( pos, { name = 'homedecor:folding_door_mahogany_b_c_right', param2 = newparam } ) - minetest.env:add_node( apos, { name = 'homedecor:folding_door_mahogany_a_c_right', param2 = newparam } ) + elseif ( node.name == 'homedecor:exterior_door_fancy_b_o_right' ) then + minetest.env:add_node( pos, { name = 'homedecor:exterior_door_fancy_b_c_right', param2 = newparam } ) + minetest.env:add_node( apos, { name = 'homedecor:exterior_door_fancy_a_c_right', param2 = newparam } ) 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 } 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 ) - 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 ) end end -minetest.register_on_placenode( on_mahogany_folding_door_placed_right ) -minetest.register_on_punchnode( on_mahogany_folding_door_punched_right ) -minetest.register_on_dignode( on_mahogany_folding_door_digged_right ) +minetest.register_on_placenode( on_exterior_door_fancy_placed_right ) +minetest.register_on_punchnode( on_exterior_door_fancy_punched_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', { - description = "Mahogany Folding Door (top, closed, right)", - tile_images = { 'homedecor_folding_door_mahogany_a_r.png' }, - inventory_image = 'homedecor_folding_door_mahogany_a_r.png', +minetest.register_node('homedecor:exterior_door_fancy_a_c_right', { + description = "Fancy Wood/Glass Exterior Door (top, closed, right)", + tile_images = { 'homedecor_exterior_door_fancy_a_r.png' }, + inventory_image = 'homedecor_exterior_door_fancy_a_r.png', drawtype = 'signlike', sunlight_propagates = false, paramtype = "light", @@ -335,108 +339,89 @@ minetest.register_node('homedecor:folding_door_mahogany_a_c_right', { walkable = true, groups = { choppy = 2, dig_immediate=2 }, 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', { - description = "Mahogany Folding Door (bottom, closed, right)", +minetest.register_node('homedecor:exterior_door_fancy_b_c_right', { + description = "Fancy Wood/Glass Exterior Door (bottom, closed, right)", drawtype = 'signlike', - tile_images = { 'homedecor_folding_door_mahogany_b_r.png' }, - inventory_image = 'homedecor_folding_door_mahogany_b_r.png', + tile_images = { 'homedecor_exterior_door_fancy_b_r.png' }, + inventory_image = 'homedecor_exterior_door_fancy_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_mahogany_right', + drop = 'homedecor:exterior_door_fancy_right', }) -minetest.register_node('homedecor:folding_door_mahogany_a_o_right', { - description = "Mahogany Folding Door (top, open, right)", +minetest.register_node('homedecor:exterior_door_fancy_a_o_right', { + description = "Fancy Wood/Glass Exterior Door (top, open, right)", drawtype = 'signlike', - tile_images = { 'homedecor_folding_door_mahogany_a.png' }, - inventory_image = 'homedecor_folding_door_mahogany_a.png', + tile_images = { 'homedecor_exterior_door_fancy_a.png' }, + inventory_image = 'homedecor_exterior_door_fancy_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_mahogany_right', + drop = 'homedecor:exterior_door_fancy_right', }) -minetest.register_node('homedecor:folding_door_mahogany_b_o_right', { - description = "Mahogany Folding Door (bottom, open, right)", +minetest.register_node('homedecor:exterior_door_fancy_b_o_right', { + description = "Fancy Wood/Glass Exterior Door (bottom, open, right)", drawtype = 'signlike', - tile_images = { 'homedecor_folding_door_mahogany_b.png' }, - inventory_image = 'homedecor_folding_door_mahogany_b.png', + tile_images = { 'homedecor_exterior_door_fancy_b.png' }, + inventory_image = 'homedecor_exterior_door_fancy_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_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( { type = 'shapeless', - output = 'homedecor:folding_door_mahogany_right', + output = 'homedecor:exterior_door_fancy_right', recipe = { - 'homedecor:folding_door_mahogany', + 'homedecor:exterior_door_fancy', }, }) minetest.register_craft({ type = 'shapeless', - output = 'homedecor:folding_door_mahogany', + output = 'homedecor:exterior_door_fancy', recipe = { - 'homedecor:folding_door_mahogany_right', + 'homedecor:exterior_door_fancy_right', }, }) minetest.register_craft({ type = 'fuel', - recipe = 'homedecor:folding_door_mahogany', + recipe = 'homedecor:exterior_door_fancy', burntime = 30, }) minetest.register_craft({ type = 'fuel', - recipe = 'homedecor:folding_door_mahogany_right', + recipe = 'homedecor:exterior_door_fancy_right', 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 diff --git a/foldingdoors_mahogany.lua b/foldingdoors_mahogany.lua index 9497598..df431f5 100644 --- a/foldingdoors_mahogany.lua +++ b/foldingdoors_mahogany.lua @@ -40,7 +40,7 @@ end minetest.register_node('homedecor:folding_door_mahogany', { description = "Mahogany Folding Door (Left Opening)", drawtype = 'signlike', - tile_images = { 'homedecor_folding_door_mahogany.png' }, + tiles = { 'homedecor_folding_door_mahogany.png' }, inventory_image = 'homedecor_folding_door_mahogany.png', wield_image = 'homedecor_folding_door_mahogany.png', paramtype2 = "wallmounted", @@ -150,7 +150,7 @@ minetest.register_on_dignode( on_mahogany_folding_door_digged ) minetest.register_node('homedecor:folding_door_mahogany_a_c', { 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', drawtype = 'signlike', 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', { description = "Mahogany Folding Door (bottom, closed)", 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', sunlight_propagates = false, paramtype = "light", @@ -179,7 +179,7 @@ minetest.register_node('homedecor:folding_door_mahogany_b_c', { minetest.register_node('homedecor:folding_door_mahogany_a_o', { description = "Mahogany Folding Door (top, open)", 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', sunlight_propagates = false, paramtype = "light", @@ -193,7 +193,7 @@ minetest.register_node('homedecor:folding_door_mahogany_a_o', { minetest.register_node('homedecor:folding_door_mahogany_b_o', { description = "Mahogany Folding Door (bottom, open)", 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', sunlight_propagates = false, paramtype = "light", @@ -214,7 +214,7 @@ minetest.register_node('homedecor:folding_door_mahogany_b_o', { minetest.register_node('homedecor:folding_door_mahogany_right', { description = "Mahogany Folding Door (Right Opening)", 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', wield_image = 'homedecor_folding_door_mahogany_right.png', 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', { 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', drawtype = 'signlike', 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', { description = "Mahogany Folding Door (bottom, closed, right)", 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', sunlight_propagates = false, 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', { description = "Mahogany Folding Door (top, open, right)", 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', sunlight_propagates = false, 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', { description = "Mahogany Folding Door (bottom, open, right)", 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', sunlight_propagates = false, paramtype = "light", diff --git a/foldingdoors_mahogany.lua~ b/foldingdoors_mahogany.lua~ index 0cc395f..9497598 100644 --- a/foldingdoors_mahogany.lua~ +++ b/foldingdoors_mahogany.lua~ @@ -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. if ( minetest.get_modpath("flowers") ) ~= nil then @@ -424,9 +424,9 @@ if ( minetest.get_modpath("flowers") ) ~= nil then output = 'homedecor:folding_door_mahogany', recipe = { 'homedecor:folding_door_oak', - 'homedecor:dye_black', - 'homedecor:dye_red', + 'unifieddyes:dark_orange', }, + replacements = { {'unifieddyes:dark_orange', 'unifieddyes:empty_bottle'}, }, }) minetest.register_craft( { @@ -434,9 +434,9 @@ if ( minetest.get_modpath("flowers") ) ~= nil then output = 'homedecor:folding_door_mahogany_right', recipe = { 'homedecor:folding_door_oak_right', - 'homedecor:dye_black', - 'homedecor:dye_red', + 'unifieddyes:dark_orange', }, + replacements = { {'unifieddyes:dark_orange', 'unifieddyes:empty_bottle'}, }, }) end diff --git a/foldingdoors_oak.lua b/foldingdoors_oak.lua index eaf524b..0c94828 100644 --- a/foldingdoors_oak.lua +++ b/foldingdoors_oak.lua @@ -38,7 +38,7 @@ end minetest.register_node('homedecor:folding_door_oak', { description = "Oak Folding Door (Left Opening)", drawtype = 'signlike', - tile_images = { 'homedecor_folding_door_oak.png' }, + tiles = { 'homedecor_folding_door_oak.png' }, inventory_image = 'homedecor_folding_door_oak.png', wield_image = 'homedecor_folding_door_oak.png', paramtype2 = "wallmounted", @@ -148,7 +148,7 @@ minetest.register_on_dignode( on_oak_folding_door_digged ) 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' }, + tiles = { 'homedecor_folding_door_oak_a.png' }, inventory_image = 'homedecor_folding_door_oak_a.png', sunlight_propagates = false, paramtype = "light", @@ -162,7 +162,7 @@ minetest.register_node('homedecor:folding_door_oak_a_c', { 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' }, + tiles = { 'homedecor_folding_door_oak_b.png' }, inventory_image = 'homedecor_folding_door_oak_b.png', sunlight_propagates = false, paramtype = "light", @@ -176,7 +176,7 @@ minetest.register_node('homedecor:folding_door_oak_b_c', { 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' }, + tiles = { 'homedecor_folding_door_oak_a_r.png' }, inventory_image = 'homedecor_folding_door_oak_a_r.png', sunlight_propagates = false, paramtype = "light", @@ -190,7 +190,7 @@ minetest.register_node('homedecor:folding_door_oak_a_o', { 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' }, + tiles = { 'homedecor_folding_door_oak_b_r.png' }, inventory_image = 'homedecor_folding_door_oak_b_r.png', sunlight_propagates = false, paramtype = "light", @@ -211,7 +211,7 @@ minetest.register_node('homedecor:folding_door_oak_b_o', { minetest.register_node('homedecor:folding_door_oak_right', { description = "Oak Folding Door (Right Opening)", 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', wield_image = 'homedecor_folding_door_oak_right.png', 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', { description = "Oak Folding Door (top, closed, right)", 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', sunlight_propagates = false, 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', { description = "Oak Folding Door (bottom, closed, right)", 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', sunlight_propagates = false, 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', { description = "Oak Folding Door (top, open, right)", 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', sunlight_propagates = false, 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', { description = "Oak Folding Door (bottom, open, right)", 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', sunlight_propagates = false, paramtype = "light", diff --git a/foldingdoors_oak.lua~ b/foldingdoors_oak.lua~ new file mode 100644 index 0000000..eaf524b --- /dev/null +++ b/foldingdoors_oak.lua~ @@ -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, +}) diff --git a/init.lua b/init.lua index 7b55d1b..edb0990 100644 --- a/init.lua +++ b/init.lua @@ -33,7 +33,7 @@ end minetest.register_node('homedecor:shingles_wood', { description = "Wood Shingles", drawtype = 'raillike', - tile_images = { 'homedecor_shingles_wood.png' }, + tiles = { 'homedecor_shingles_wood.png' }, wield_image = 'homedecor_shingles_wood.png', inventory_image = 'homedecor_shingles_wood.png', paramtype = 'light', @@ -46,7 +46,7 @@ minetest.register_node('homedecor:shingles_wood', { minetest.register_node('homedecor:skylight', { description = "Glass Skylight", drawtype = 'raillike', - tile_images = { 'default_glass.png' }, + tiles = { 'default_glass.png' }, wield_image = 'default_glass.png', inventory_image = 'default_glass.png', paramtype = 'light', @@ -59,7 +59,7 @@ minetest.register_node('homedecor:skylight', { minetest.register_node('homedecor:shingles_asphalt', { description = "Asphalt Shingles", drawtype = 'raillike', - tile_images = { 'homedecor_shingles_asphalt.png' }, + tiles = { 'homedecor_shingles_asphalt.png' }, wield_image = 'homedecor_shingles_asphalt.png', inventory_image = 'homedecor_shingles_asphalt.png', paramtype = 'light', @@ -72,7 +72,7 @@ minetest.register_node('homedecor:shingles_asphalt', { minetest.register_node('homedecor:shingles_terracotta', { description = "Terracotta Roofing", drawtype = 'raillike', - tile_images = { 'homedecor_shingles_terracotta.png' }, + tiles = { 'homedecor_shingles_terracotta.png' }, wield_image = 'homedecor_shingles_terracotta.png', inventory_image = 'homedecor_shingles_terracotta.png', paramtype = 'light', @@ -87,7 +87,7 @@ minetest.register_node('homedecor:shingles_terracotta', { minetest.register_node('homedecor:projection_screen', { description = "Projection Screen Material", drawtype = 'signlike', - tile_images = { 'homedecor_projection_screen.png' }, + tiles = { 'homedecor_projection_screen.png' }, wield_image = 'homedecor_projection_screen_inv.png', inventory_image = 'homedecor_projection_screen_inv.png', sunlight_propagates = false, @@ -105,7 +105,7 @@ minetest.register_node('homedecor:projection_screen', { minetest.register_node('homedecor:ceiling_paint', { description = "Textured Ceiling Paint", drawtype = 'signlike', - tile_images = { 'homedecor_ceiling_paint.png' }, + tiles = { 'homedecor_ceiling_paint.png' }, inventory_image = 'homedecor_ceiling_paint_roller.png', wield_image = 'homedecor_ceiling_paint_roller.png', sunlight_propagates = true, @@ -124,7 +124,7 @@ minetest.register_node('homedecor:ceiling_paint', { minetest.register_node('homedecor:ceiling_tile', { description = "Drop-Ceiling Tile", drawtype = 'signlike', - tile_images = { 'homedecor_ceiling_tile.png' }, + tiles = { 'homedecor_ceiling_tile.png' }, wield_image = 'homedecor_ceiling_tile.png', inventory_image = 'homedecor_ceiling_tile.png', sunlight_propagates = true, @@ -143,7 +143,7 @@ minetest.register_node('homedecor:ceiling_tile', { minetest.register_node('homedecor:rug_small', { description = "Small Throw Rug", drawtype = 'signlike', - tile_images = { 'homedecor_rug_small.png' }, + tiles = { 'homedecor_rug_small.png' }, wield_image = 'homedecor_rug_small.png', inventory_image = 'homedecor_rug_small.png', sunlight_propagates = true, @@ -164,7 +164,7 @@ minetest.register_node('homedecor:rug_small', { minetest.register_node('homedecor:rug_large', { description = "Large Area Rug", drawtype = 'signlike', - tile_images = { 'homedecor_rug_large.png' }, + tiles = { 'homedecor_rug_large.png' }, wield_image = 'homedecor_rug_large.png', inventory_image = 'homedecor_rug_large.png', sunlight_propagates = true, @@ -185,7 +185,7 @@ minetest.register_node('homedecor:rug_large', { minetest.register_node('homedecor:glass_table_large', { description = "Large Glass Table Piece", drawtype = 'signlike', - tile_images = { 'homedecor_glass_table_large.png' }, + tiles = { 'homedecor_glass_table_large.png' }, wield_image = 'homedecor_glass_table_large.png', inventory_image = 'homedecor_glass_table_large.png', sunlight_propagates = true, @@ -206,7 +206,7 @@ minetest.register_node('homedecor:glass_table_large', { minetest.register_node('homedecor:glass_table_small_round', { description = "Glass Table (Small, Round)", 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', inventory_image = 'homedecor_glass_table_small_round.png', sunlight_propagates = true, @@ -227,7 +227,7 @@ minetest.register_node('homedecor:glass_table_small_round', { minetest.register_node('homedecor:glass_table_small_square', { description = "Glass Table (Small, Square)", 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', inventory_image = 'homedecor_glass_table_small_square.png', sunlight_propagates = true, @@ -248,7 +248,7 @@ minetest.register_node('homedecor:glass_table_small_square', { minetest.register_node("homedecor:table_legs_brass", { description = "Brass Table Legs", drawtype = "plantlike", - tile_images = {"homedecor_table_legs_brass.png"}, + tiles = {"homedecor_table_legs_brass.png"}, inventory_image = "homedecor_table_legs_brass.png", wield_image = "homedecor_table_legs_brass.png", visual_scale = 1.04, @@ -262,7 +262,7 @@ minetest.register_node("homedecor:table_legs_brass", { minetest.register_node("homedecor:table_legs_wrought_iron", { description = "Brass Table Legs", 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", wield_image = "homedecor_table_legs_wrought_iron.png", visual_scale = 1.04, @@ -275,10 +275,10 @@ minetest.register_node("homedecor:table_legs_wrought_iron", { minetest.register_node('homedecor:television', { description = "Small CRT Television", - tile_images = { 'homedecor_television_top.png', + tiles = { 'homedecor_television_top.png', 'homedecor_television_bottom.png', - 'homedecor_television_left.png', 'homedecor_television_right.png', + 'homedecor_television_left.png', 'homedecor_television_back.png', 'homedecor_television_front.png'}, sunlight_propagates = false, @@ -293,10 +293,10 @@ minetest.register_node('homedecor:television', { minetest.register_node('homedecor:stereo', { description = "Stereo Receiver", - tile_images = { 'homedecor_stereo_top.png', + tiles = { 'homedecor_stereo_top.png', 'homedecor_stereo_bottom.png', - 'homedecor_stereo_left.png', 'homedecor_stereo_right.png', + 'homedecor_stereo_left.png', 'homedecor_stereo_back.png', 'homedecor_stereo_front.png'}, sunlight_propagates = false, @@ -309,7 +309,7 @@ minetest.register_node('homedecor:stereo', { minetest.register_node('homedecor:nightstand_oak_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', @@ -325,7 +325,7 @@ minetest.register_node('homedecor:nightstand_oak_one_drawer', { minetest.register_node('homedecor:nightstand_oak_two_drawers', { 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', @@ -340,7 +340,7 @@ minetest.register_node('homedecor:nightstand_oak_two_drawers', { }) minetest.register_node('homedecor:nightstand_mahogany_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', @@ -356,7 +356,7 @@ minetest.register_node('homedecor:nightstand_mahogany_one_drawer', { minetest.register_node('homedecor:nightstand_mahogany_two_drawers', { 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', @@ -372,7 +372,7 @@ minetest.register_node('homedecor:nightstand_mahogany_two_drawers', { minetest.register_node('homedecor:utility_table_top', { description = "Utility Table", - tile_images = { 'homedecor_utility_table_top.png' }, + tiles = { 'homedecor_utility_table_top.png' }, inventory_image = 'homedecor_utility_table_top.png', wield_image = 'homedecor_utility_table_top.png', drawtype = "signlike", @@ -395,7 +395,7 @@ minetest.register_node('homedecor:utility_table_top', { minetest.register_node('homedecor:utility_table_legs', { 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', wield_image = 'homedecor_utility_table_legs.png', visual_scale = 1.04, @@ -410,7 +410,7 @@ minetest.register_node('homedecor:utility_table_legs', { minetest.register_node('homedecor:flower_pot_terracotta', { 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_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', { 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_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', { 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_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', { description = "Wooden Tabletop piece", - tile_images = { 'homedecor_wood_table_large.png' }, + tiles = { 'homedecor_wood_table_large.png' }, inventory_image = 'homedecor_wood_table_large.png', wield_image = 'homedecor_wood_table_large.png', drawtype = 'signlike', @@ -479,7 +479,7 @@ minetest.register_node('homedecor:wood_table_large', { minetest.register_node('homedecor:wood_table_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', wield_image = 'homedecor_wood_table_small_round.png', drawtype = 'signlike', @@ -500,7 +500,7 @@ minetest.register_node('homedecor:wood_table_small_round', { minetest.register_node('homedecor:wood_table_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', wield_image = 'homedecor_wood_table_small_square.png', drawtype = 'signlike', @@ -521,7 +521,7 @@ minetest.register_node('homedecor:wood_table_small_square', { minetest.register_node('homedecor:folding_door_mahogany', { description = "Mahogany Folding Door", - tile_images = { 'homedecor_folding_door_mahogany.png' }, + tiles = { 'homedecor_folding_door_mahogany.png' }, inventory_image = 'homedecor_folding_door_mahogany.png', wield_image = 'homedecor_folding_door_mahogany.png', drawtype = 'signlike', @@ -540,7 +540,7 @@ minetest.register_node('homedecor:folding_door_mahogany', { minetest.register_node('homedecor:folding_door_oak', { description = "Oak Folding Door", - tile_images = { 'homedecor_folding_door_oak.png' }, + tiles = { 'homedecor_folding_door_oak.png' }, inventory_image = 'homedecor_folding_door_oak.png', wield_image = 'homedecor_folding_door_oak.png', drawtype = 'signlike', @@ -559,7 +559,7 @@ minetest.register_node('homedecor:folding_door_oak', { minetest.register_node('homedecor:dresser_mahogany_left_side', { 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', @@ -575,7 +575,7 @@ minetest.register_node('homedecor:dresser_mahogany_left_side', { minetest.register_node('homedecor:dresser_mahogany_right_side', { 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', @@ -591,7 +591,7 @@ minetest.register_node('homedecor:dresser_mahogany_right_side', { minetest.register_node('homedecor:dresser_oak_left_side', { 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', @@ -607,7 +607,7 @@ minetest.register_node('homedecor:dresser_oak_left_side', { minetest.register_node('homedecor:dresser_oak_right_side', { 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', @@ -623,7 +623,7 @@ minetest.register_node('homedecor:dresser_oak_right_side', { minetest.register_node('homedecor: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', wield_image = 'homedecor_window_shutter_black.png', drawtype = 'signlike', @@ -642,7 +642,7 @@ minetest.register_node('homedecor:shutter_black', { minetest.register_node('homedecor:shutter_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', wield_image = 'homedecor_window_shutter_mahogany.png', drawtype = 'signlike', @@ -661,7 +661,7 @@ minetest.register_node('homedecor:shutter_mahogany', { minetest.register_node('homedecor:shutter_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', wield_image = 'homedecor_window_shutter_oak.png', drawtype = 'signlike', @@ -680,7 +680,7 @@ minetest.register_node('homedecor:shutter_oak', { minetest.register_node('homedecor: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', wield_image = 'homedecor_window_shutter_dark_grey.png', drawtype = 'signlike', @@ -699,7 +699,7 @@ minetest.register_node('homedecor:shutter_dark_grey', { minetest.register_node('homedecor: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', wield_image = 'homedecor_window_shutter_forest_green.png', drawtype = 'signlike', @@ -718,7 +718,7 @@ minetest.register_node('homedecor:shutter_forest_green', { minetest.register_node('homedecor: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', wield_image = 'homedecor_window_shutter_grey.png', drawtype = 'signlike', @@ -737,7 +737,7 @@ minetest.register_node('homedecor:shutter_grey', { minetest.register_node('homedecor: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', wield_image = 'homedecor_window_shutter_light_blue.png', drawtype = 'signlike', @@ -756,7 +756,7 @@ minetest.register_node('homedecor:shutter_light_blue', { minetest.register_node('homedecor: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', wield_image = 'homedecor_window_shutter_purple.png', drawtype = 'signlike', @@ -775,7 +775,7 @@ minetest.register_node('homedecor:shutter_purple', { minetest.register_node('homedecor: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', wield_image = 'homedecor_window_shutter_red.png', drawtype = 'signlike', @@ -794,7 +794,7 @@ minetest.register_node('homedecor:shutter_red', { minetest.register_node('homedecor: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', wield_image = 'homedecor_window_shutter_white.png', drawtype = 'signlike', @@ -813,7 +813,7 @@ minetest.register_node('homedecor:shutter_white', { minetest.register_node('homedecor: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', wield_image = 'homedecor_window_shutter_yellow.png', drawtype = 'signlike', @@ -833,7 +833,7 @@ minetest.register_node('homedecor:shutter_yellow', { minetest.register_node('homedecor:utilitytable2', { description = "Utility table mk2", - tile_images = { 'homedecor_utility_table_top.png', + tiles = { 'homedecor_utility_table_top.png', 'homedecor_blanktile.png', 'homedecor_utility_table_legs.png', 'homedecor_utility_table_legs.png', @@ -866,7 +866,7 @@ end minetest.register_node("homedecor:pole_brass", { description = "Brass Pole", drawtype = "nodebox", - tile_images = {"homedecor_tile_brass2.png"}, + tiles = {"homedecor_tile_brass2.png"}, inventory_image = "homedecor_pole_brass2.png", wield_image = "homedecor_pole_brass2.png", paramtype = "light", @@ -887,7 +887,7 @@ minetest.register_node("homedecor:pole_brass", { minetest.register_node("homedecor:pole_wrought_iron", { description = "Wrought Iron Pole", drawtype = "nodebox", - tile_images = {"homedecor_tile_wrought_iron2.png"}, + tiles = {"homedecor_tile_wrought_iron2.png"}, inventory_image = "homedecor_pole_wrought_iron.png", wield_image = "homedecor_pole_wrought_iron.png", paramtype = "light", @@ -908,7 +908,7 @@ minetest.register_node("homedecor:pole_wrought_iron", { minetest.register_node("homedecor:fence_brass", { description = "Brass Fence/railing", drawtype = "fencelike", - tile_images = {"homedecor_tile_brass.png"}, + tiles = {"homedecor_tile_brass.png"}, inventory_image = "homedecor_fence_brass.png", wield_image = "homedecor_pole_brass.png", paramtype = "light", @@ -925,7 +925,7 @@ minetest.register_node("homedecor:fence_brass", { minetest.register_node("homedecor:fence_wrought_iron", { description = "Wrought Iron Fence/railing", drawtype = "fencelike", - tile_images = {"homedecor_tile_wrought_iron.png"}, + tiles = {"homedecor_tile_wrought_iron.png"}, inventory_image = "homedecor_fence_wrought_iron.png", wield_image = "homedecor_pole_wrought_iron.png", paramtype = "light", @@ -942,10 +942,10 @@ minetest.register_node("homedecor:fence_wrought_iron", { minetest.register_node('homedecor:speaker', { description = "Large Stereo Speaker", - tile_images = { 'homedecor_speaker_top.png', + tiles = { 'homedecor_speaker_top.png', 'homedecor_speaker_bottom.png', - 'homedecor_speaker_left.png', 'homedecor_speaker_right.png', + 'homedecor_speaker_left.png', 'homedecor_speaker_back.png', 'homedecor_speaker_front.png'}, sunlight_propagates = false, @@ -959,10 +959,10 @@ minetest.register_node('homedecor:speaker', { minetest.register_node('homedecor:speaker_small', { description = "Small Surround Speaker", drawtype = "nodebox", - tile_images = { 'homedecor_speaker_top.png', + tiles = { 'homedecor_speaker_top.png', 'homedecor_speaker_bottom.png', - 'homedecor_speaker_left.png', 'homedecor_speaker_right.png', + 'homedecor_speaker_left.png', 'homedecor_speaker_back.png', 'homedecor_speaker_front.png'}, selection_box = { diff --git a/init.lua~ b/init.lua~ index a394335..0aea5cc 100644 --- a/init.lua~ +++ b/init.lua~ @@ -15,6 +15,7 @@ dofile(minetest.get_modpath("homedecor").."/foldingdoors_oak.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") local DEBUG = 1 @@ -32,7 +33,7 @@ end minetest.register_node('homedecor:shingles_wood', { description = "Wood Shingles", drawtype = 'raillike', - tile_images = { 'homedecor_shingles_wood.png' }, + tiles = { 'homedecor_shingles_wood.png' }, wield_image = 'homedecor_shingles_wood.png', inventory_image = 'homedecor_shingles_wood.png', paramtype = 'light', @@ -45,7 +46,7 @@ minetest.register_node('homedecor:shingles_wood', { minetest.register_node('homedecor:skylight', { description = "Glass Skylight", drawtype = 'raillike', - tile_images = { 'default_glass.png' }, + tiles = { 'default_glass.png' }, wield_image = 'default_glass.png', inventory_image = 'default_glass.png', paramtype = 'light', @@ -58,7 +59,7 @@ minetest.register_node('homedecor:skylight', { minetest.register_node('homedecor:shingles_asphalt', { description = "Asphalt Shingles", drawtype = 'raillike', - tile_images = { 'homedecor_shingles_asphalt.png' }, + tiles = { 'homedecor_shingles_asphalt.png' }, wield_image = 'homedecor_shingles_asphalt.png', inventory_image = 'homedecor_shingles_asphalt.png', paramtype = 'light', @@ -71,7 +72,7 @@ minetest.register_node('homedecor:shingles_asphalt', { minetest.register_node('homedecor:shingles_terracotta', { description = "Terracotta Roofing", drawtype = 'raillike', - tile_images = { 'homedecor_shingles_terracotta.png' }, + tiles = { 'homedecor_shingles_terracotta.png' }, wield_image = 'homedecor_shingles_terracotta.png', inventory_image = 'homedecor_shingles_terracotta.png', paramtype = 'light', @@ -86,7 +87,7 @@ minetest.register_node('homedecor:shingles_terracotta', { minetest.register_node('homedecor:projection_screen', { description = "Projection Screen Material", drawtype = 'signlike', - tile_images = { 'homedecor_projection_screen.png' }, + tiles = { 'homedecor_projection_screen.png' }, wield_image = 'homedecor_projection_screen_inv.png', inventory_image = 'homedecor_projection_screen_inv.png', sunlight_propagates = false, @@ -104,7 +105,7 @@ minetest.register_node('homedecor:projection_screen', { minetest.register_node('homedecor:ceiling_paint', { description = "Textured Ceiling Paint", drawtype = 'signlike', - tile_images = { 'homedecor_ceiling_paint.png' }, + tiles = { 'homedecor_ceiling_paint.png' }, inventory_image = 'homedecor_ceiling_paint_roller.png', wield_image = 'homedecor_ceiling_paint_roller.png', sunlight_propagates = true, @@ -123,7 +124,7 @@ minetest.register_node('homedecor:ceiling_paint', { minetest.register_node('homedecor:ceiling_tile', { description = "Drop-Ceiling Tile", drawtype = 'signlike', - tile_images = { 'homedecor_ceiling_tile.png' }, + tiles = { 'homedecor_ceiling_tile.png' }, wield_image = 'homedecor_ceiling_tile.png', inventory_image = 'homedecor_ceiling_tile.png', sunlight_propagates = true, @@ -142,7 +143,7 @@ minetest.register_node('homedecor:ceiling_tile', { minetest.register_node('homedecor:rug_small', { description = "Small Throw Rug", drawtype = 'signlike', - tile_images = { 'homedecor_rug_small.png' }, + tiles = { 'homedecor_rug_small.png' }, wield_image = 'homedecor_rug_small.png', inventory_image = 'homedecor_rug_small.png', sunlight_propagates = true, @@ -163,7 +164,7 @@ minetest.register_node('homedecor:rug_small', { minetest.register_node('homedecor:rug_large', { description = "Large Area Rug", drawtype = 'signlike', - tile_images = { 'homedecor_rug_large.png' }, + tiles = { 'homedecor_rug_large.png' }, wield_image = 'homedecor_rug_large.png', inventory_image = 'homedecor_rug_large.png', sunlight_propagates = true, @@ -184,7 +185,7 @@ minetest.register_node('homedecor:rug_large', { minetest.register_node('homedecor:glass_table_large', { description = "Large Glass Table Piece", drawtype = 'signlike', - tile_images = { 'homedecor_glass_table_large.png' }, + tiles = { 'homedecor_glass_table_large.png' }, wield_image = 'homedecor_glass_table_large.png', inventory_image = 'homedecor_glass_table_large.png', sunlight_propagates = true, @@ -205,7 +206,7 @@ minetest.register_node('homedecor:glass_table_large', { minetest.register_node('homedecor:glass_table_small_round', { description = "Glass Table (Small, Round)", 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', inventory_image = 'homedecor_glass_table_small_round.png', sunlight_propagates = true, @@ -226,7 +227,7 @@ minetest.register_node('homedecor:glass_table_small_round', { minetest.register_node('homedecor:glass_table_small_square', { description = "Glass Table (Small, Square)", 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', inventory_image = 'homedecor_glass_table_small_square.png', sunlight_propagates = true, @@ -247,7 +248,7 @@ minetest.register_node('homedecor:glass_table_small_square', { minetest.register_node("homedecor:table_legs_brass", { description = "Brass Table Legs", drawtype = "plantlike", - tile_images = {"homedecor_table_legs_brass.png"}, + tiles = {"homedecor_table_legs_brass.png"}, inventory_image = "homedecor_table_legs_brass.png", wield_image = "homedecor_table_legs_brass.png", visual_scale = 1.04, @@ -261,7 +262,7 @@ minetest.register_node("homedecor:table_legs_brass", { minetest.register_node("homedecor:table_legs_wrought_iron", { description = "Brass Table Legs", 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", wield_image = "homedecor_table_legs_wrought_iron.png", visual_scale = 1.04, @@ -274,7 +275,7 @@ minetest.register_node("homedecor:table_legs_wrought_iron", { minetest.register_node('homedecor:television', { description = "Small CRT Television", - tile_images = { 'homedecor_television_top.png', + tiles = { 'homedecor_television_top.png', 'homedecor_television_bottom.png', 'homedecor_television_left.png', 'homedecor_television_right.png', @@ -292,7 +293,7 @@ minetest.register_node('homedecor:television', { minetest.register_node('homedecor:stereo', { description = "Stereo Receiver", - tile_images = { 'homedecor_stereo_top.png', + tiles = { 'homedecor_stereo_top.png', 'homedecor_stereo_bottom.png', 'homedecor_stereo_left.png', 'homedecor_stereo_right.png', @@ -308,7 +309,7 @@ minetest.register_node('homedecor:stereo', { minetest.register_node('homedecor:nightstand_oak_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', @@ -324,7 +325,7 @@ minetest.register_node('homedecor:nightstand_oak_one_drawer', { minetest.register_node('homedecor:nightstand_oak_two_drawers', { 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', @@ -339,7 +340,7 @@ minetest.register_node('homedecor:nightstand_oak_two_drawers', { }) minetest.register_node('homedecor:nightstand_mahogany_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', @@ -355,7 +356,7 @@ minetest.register_node('homedecor:nightstand_mahogany_one_drawer', { minetest.register_node('homedecor:nightstand_mahogany_two_drawers', { 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', @@ -371,7 +372,7 @@ minetest.register_node('homedecor:nightstand_mahogany_two_drawers', { minetest.register_node('homedecor:utility_table_top', { description = "Utility Table", - tile_images = { 'homedecor_utility_table_top.png' }, + tiles = { 'homedecor_utility_table_top.png' }, inventory_image = 'homedecor_utility_table_top.png', wield_image = 'homedecor_utility_table_top.png', drawtype = "signlike", @@ -394,7 +395,7 @@ minetest.register_node('homedecor:utility_table_top', { minetest.register_node('homedecor:utility_table_legs', { 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', wield_image = 'homedecor_utility_table_legs.png', visual_scale = 1.04, @@ -409,7 +410,7 @@ minetest.register_node('homedecor:utility_table_legs', { minetest.register_node('homedecor:flower_pot_terracotta', { 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_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', { 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_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', { 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_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', { description = "Wooden Tabletop piece", - tile_images = { 'homedecor_wood_table_large.png' }, + tiles = { 'homedecor_wood_table_large.png' }, inventory_image = 'homedecor_wood_table_large.png', wield_image = 'homedecor_wood_table_large.png', drawtype = 'signlike', @@ -478,7 +479,7 @@ minetest.register_node('homedecor:wood_table_large', { minetest.register_node('homedecor:wood_table_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', wield_image = 'homedecor_wood_table_small_round.png', drawtype = 'signlike', @@ -499,7 +500,7 @@ minetest.register_node('homedecor:wood_table_small_round', { minetest.register_node('homedecor:wood_table_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', wield_image = 'homedecor_wood_table_small_square.png', drawtype = 'signlike', @@ -520,7 +521,7 @@ minetest.register_node('homedecor:wood_table_small_square', { minetest.register_node('homedecor:folding_door_mahogany', { description = "Mahogany Folding Door", - tile_images = { 'homedecor_folding_door_mahogany.png' }, + tiles = { 'homedecor_folding_door_mahogany.png' }, inventory_image = 'homedecor_folding_door_mahogany.png', wield_image = 'homedecor_folding_door_mahogany.png', drawtype = 'signlike', @@ -539,7 +540,7 @@ minetest.register_node('homedecor:folding_door_mahogany', { minetest.register_node('homedecor:folding_door_oak', { description = "Oak Folding Door", - tile_images = { 'homedecor_folding_door_oak.png' }, + tiles = { 'homedecor_folding_door_oak.png' }, inventory_image = 'homedecor_folding_door_oak.png', wield_image = 'homedecor_folding_door_oak.png', drawtype = 'signlike', @@ -558,7 +559,7 @@ minetest.register_node('homedecor:folding_door_oak', { minetest.register_node('homedecor:dresser_mahogany_left_side', { 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', @@ -574,7 +575,7 @@ minetest.register_node('homedecor:dresser_mahogany_left_side', { minetest.register_node('homedecor:dresser_mahogany_right_side', { 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', @@ -590,7 +591,7 @@ minetest.register_node('homedecor:dresser_mahogany_right_side', { minetest.register_node('homedecor:dresser_oak_left_side', { 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', @@ -606,7 +607,7 @@ minetest.register_node('homedecor:dresser_oak_left_side', { minetest.register_node('homedecor:dresser_oak_right_side', { 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', @@ -620,9 +621,9 @@ minetest.register_node('homedecor:dresser_oak_right_side', { sounds = default.node_sound_leaves_defaults(), }) -minetest.register_node('homedecor:window_shutter_black', { +minetest.register_node('homedecor: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', wield_image = 'homedecor_window_shutter_black.png', 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)", - tile_images = { 'homedecor_window_shutter_mahogany.png' }, + tiles = { 'homedecor_window_shutter_mahogany.png' }, inventory_image = 'homedecor_window_shutter_mahogany.png', wield_image = 'homedecor_window_shutter_mahogany.png', 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)", - tile_images = { 'homedecor_window_shutter_oak.png' }, + tiles = { 'homedecor_window_shutter_oak.png' }, inventory_image = 'homedecor_window_shutter_oak.png', wield_image = 'homedecor_window_shutter_oak.png', 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)", - tile_images = { 'homedecor_window_shutter_dark_grey.png' }, + tiles = { 'homedecor_window_shutter_dark_grey.png' }, inventory_image = 'homedecor_window_shutter_dark_grey.png', wield_image = 'homedecor_window_shutter_dark_grey.png', 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)", - tile_images = { 'homedecor_window_shutter_forest_green.png' }, + tiles = { 'homedecor_window_shutter_forest_green.png' }, inventory_image = 'homedecor_window_shutter_forest_green.png', wield_image = 'homedecor_window_shutter_forest_green.png', 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)", - tile_images = { 'homedecor_window_shutter_grey.png' }, + tiles = { 'homedecor_window_shutter_grey.png' }, inventory_image = 'homedecor_window_shutter_grey.png', wield_image = 'homedecor_window_shutter_grey.png', 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)", - tile_images = { 'homedecor_window_shutter_light_blue.png' }, + tiles = { 'homedecor_window_shutter_light_blue.png' }, inventory_image = 'homedecor_window_shutter_light_blue.png', wield_image = 'homedecor_window_shutter_light_blue.png', 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)", - tile_images = { 'homedecor_window_shutter_purple.png' }, + tiles = { 'homedecor_window_shutter_purple.png' }, inventory_image = 'homedecor_window_shutter_purple.png', wield_image = 'homedecor_window_shutter_purple.png', 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)", - tile_images = { 'homedecor_window_shutter_red.png' }, + tiles = { 'homedecor_window_shutter_red.png' }, inventory_image = 'homedecor_window_shutter_red.png', wield_image = 'homedecor_window_shutter_red.png', 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)", - tile_images = { 'homedecor_window_shutter_white.png' }, + tiles = { 'homedecor_window_shutter_white.png' }, inventory_image = 'homedecor_window_shutter_white.png', wield_image = 'homedecor_window_shutter_white.png', 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)", - tile_images = { 'homedecor_window_shutter_yellow.png' }, + tiles = { 'homedecor_window_shutter_yellow.png' }, inventory_image = 'homedecor_window_shutter_yellow.png', wield_image = 'homedecor_window_shutter_yellow.png', drawtype = 'signlike', @@ -832,7 +833,7 @@ minetest.register_node('homedecor:window_shutter_yellow', { minetest.register_node('homedecor:utilitytable2', { description = "Utility table mk2", - tile_images = { 'homedecor_utility_table_top.png', + tiles = { 'homedecor_utility_table_top.png', 'homedecor_blanktile.png', 'homedecor_utility_table_legs.png', 'homedecor_utility_table_legs.png', @@ -865,7 +866,7 @@ end minetest.register_node("homedecor:pole_brass", { description = "Brass Pole", drawtype = "nodebox", - tile_images = {"homedecor_tile_brass2.png"}, + tiles = {"homedecor_tile_brass2.png"}, inventory_image = "homedecor_pole_brass2.png", wield_image = "homedecor_pole_brass2.png", paramtype = "light", @@ -886,7 +887,7 @@ minetest.register_node("homedecor:pole_brass", { minetest.register_node("homedecor:pole_wrought_iron", { description = "Wrought Iron Pole", drawtype = "nodebox", - tile_images = {"homedecor_tile_wrought_iron2.png"}, + tiles = {"homedecor_tile_wrought_iron2.png"}, inventory_image = "homedecor_pole_wrought_iron.png", wield_image = "homedecor_pole_wrought_iron.png", paramtype = "light", @@ -907,7 +908,7 @@ minetest.register_node("homedecor:pole_wrought_iron", { minetest.register_node("homedecor:fence_brass", { description = "Brass Fence/railing", drawtype = "fencelike", - tile_images = {"homedecor_tile_brass.png"}, + tiles = {"homedecor_tile_brass.png"}, inventory_image = "homedecor_fence_brass.png", wield_image = "homedecor_pole_brass.png", paramtype = "light", @@ -924,7 +925,7 @@ minetest.register_node("homedecor:fence_brass", { minetest.register_node("homedecor:fence_wrought_iron", { description = "Wrought Iron Fence/railing", drawtype = "fencelike", - tile_images = {"homedecor_tile_wrought_iron.png"}, + tiles = {"homedecor_tile_wrought_iron.png"}, inventory_image = "homedecor_fence_wrought_iron.png", wield_image = "homedecor_pole_wrought_iron.png", paramtype = "light", @@ -941,7 +942,7 @@ minetest.register_node("homedecor:fence_wrought_iron", { minetest.register_node('homedecor:speaker', { description = "Large Stereo Speaker", - tile_images = { 'homedecor_speaker_top.png', + tiles = { 'homedecor_speaker_top.png', 'homedecor_speaker_bottom.png', 'homedecor_speaker_left.png', 'homedecor_speaker_right.png', @@ -958,7 +959,7 @@ minetest.register_node('homedecor:speaker', { minetest.register_node('homedecor:speaker_small', { description = "Small Surround Speaker", drawtype = "nodebox", - tile_images = { 'homedecor_speaker_top.png', + tiles = { 'homedecor_speaker_top.png', 'homedecor_speaker_bottom.png', 'homedecor_speaker_left.png', 'homedecor_speaker_right.png', diff --git a/textures/homedecor_speaker_left.png b/textures/homedecor_speaker_left.png index 3411505edbb42a53b61e995b9d7d44430f5ef66b..9d6908e26d1d59dd789d080a8acc35b85ad1d4f7 100644 GIT binary patch delta 581 zcmV-L0=oUF8NeB^Z3+(tVoOIv00000008+zyML2v3Lk$590wE+x|yDW00066NklKw_>>FmQ?sz-`P*6iiR27L_qDT;> zZaWe%=S1pGW+G~c2>18*ivXZnMXliOC_$>A>xtRV%sJ`pjL(6YQR;RfP*p=}WsZ)S zU5dnnAOMJ1XVJ2nW?Tu9L@>;3QKT^YWCj#d+?{{$Ni|!QQYoTW0znwFfwJ&SAv)2{ zgoBS0l1^(4Gb4PGnOB0C10RjdWuVm^tYFoM2x{3m{BVST^Wy_4Ys?FQXHrTbeb8EC z^wlgP(4y4C4I)CR%C;X!5qyp-fg+d~Ig^|XcgIgBG82SY^`OkL zM16luEPRczRU!g0!FxmNfz+fZuvH?t5_l$_PG-`2;@&Q6BVa~Q>bABKfkz@-lep3X z_#79Jq7dt@9(LyFY}>Y|(!WolnJqz4whHpUNy7(dA^U)U-aFxw?e;(iI||NLfr3LJk14-6#@;Zw#u00061NkltyCwx<22zBXEGP?S;%p1BjK zD(!rxXL5M7FxLC+b=j)*^Lg9BXyiyt41KV0I-Q7wd8!nJ)I@*l0bd(IY(mpko4d32 zE#T4HP9P*6NyOH5sS_gtwl=T-8*R;vD1EnZTVgs9!8A>bzETe}K03rUrUx+}ormv6 z5DC-qK=@!?R|v?pgBH4Xd~`&FsRBh&wo3O5e6Y3)B7&)0{Wi#;sv&9!Nh#$vY43d} y=-x4%ad&WV60;;3GVpXVoIW;-nu?e}B>w?)UQpcF=r+Xw00001sR8N3;=Z3+(tVoOIv00000008+zyML2v3Lk$590wE*&7Q6l00062NkltyCw zx<2YNSLQe zQAmGHv>x!a5yU1mZMC^OYu^GMz3l`-;*msbU6(pBB4BIt`oGcE+=$Y53%4bv6A?_) z#ON#aFyo^`Y-4&5^U-FC&TGuv#6}Nl8L=6#Z3>fr3LJk14-6|D6=2Ii00069Nkl*$fmj`sr>5dNuPA;qIp=cnoImeEIJ)|9tw$&(D6LefyW+et&<%+du!}bUL9X zfGMd)X5#LY`+MqM0gzHLGw?~-H_TSu>2v}>QA0>n6(N@>5=5!nPT3C3Igz@PnTQ%9 z!tr=~XaH2Js1@8DB}f%?T`~KGIVZhc@HsFuO5JV*s)p3c933;e7KsT#01&bEqGdJB zxDh0YV3^sWNMZKL3@Cr5xI5vKYPKq+QbcbAf-q(SW#O4ZbfR4d2Ono7oz@y=M))K% zZv-(1J{p-NGcj2dvw!7qcVuMJ&Sz8~c`$#+67?~0_w|ge5)lM} z_lDL3sYy}Tw@M^80?)+L$xK>L+}m|*1k4CZ-PSZB@JNKmNqks7$5o^##5${oojE$& zwh<9X`u9mRvn43XRzV(28a_Y^*#`vl-U**<_Xi?*G=(v)5iX@5th`q>$iTfVUsMng zdb5S)Iyu-fC!BL#-pSQ$o_{YuuH#9AqgaPX g>%j~Kz5)d%hM;&EMxT2&`#@HCy85}Sb4q9e08w)+t^fc4 delta 122 zcmdnPxRP;#iY8})M`SSr1Gg{;GcwGYBf-GHz+U3%>&kwIji1j%J!|WaDL^5QiSc4? z2UoxN{{BACnl)=AzRWhymzW`;!ScnhVd_*-ZC?In^Za`k%mfM>6-7E&4kwrhuv-W) Y2Byd`w(Z>C3p9bj)78&qol`;+0N7b3z5oCK diff --git a/textures/homedecor_stereo_right.png b/textures/homedecor_stereo_right.png index f7d5c9caa197ce119c1352d8f34f55b63c588494..0e0a307b7ba51eaa7b42fe519454562526b49051 100644 GIT binary patch delta 131 zcmZ3*xSMf;3O`$tx4R1i82ohJT|ZG#K9gOBT|~fq;^cCmsE4PEV~EA+0;>&FFe2Ezn8Z2K78>UVb)#l}IHqXCz!AzjAQBkCW g<#2+D0K0_%V_=F5W82RCy&#)BUHx3vIVCg!04*^rSO5S3 delta 123 zcmdnZxQcOtiY8})M`SSr1Gg{;GcwGYBf-GHz+U3%>&kwIji1lNh&@B59w_8FF<#6) z@yFla=FHmK+HAf2dn!M-HFh>SIoL8MoO4~?$<=J0e=k6;<4J>~ScgdK!3+hy0tF_9 Ypm-TZpL;g@fJQKQy85}Sb4q9e04fk9y8r+H diff --git a/textures/homedecor_television_left.png b/textures/homedecor_television_left.png index e07f1e09282d90711786080bdadfa3ba2029623a..36e0cb9feba17c9bdde9db481ea93ac5726b7fe1 100644 GIT binary patch delta 117 zcmbQmxR!B(3O`$tx4R1i82ohJT|ZG#KAK&IU4(zv%y~^fQ7cau#}JFtZ_jKLY%t(C z8gTIG`-gwG7q3-1!|-m$itD>qWf^BMs#Kb;RB?Qoc7u`cgSdk%qxaI?_RRdIiv%o~ SwZcDv%=UEkb6Mw<&;$T<7%Cb7 delta 125 zcmZ3>IE!(DN*QN?M`SSr1Gg{;GcwGYBf-GHz+U3%>&kwIjbA`nKCs8@8Boa5)5S5w z;`H0e8+jQNcngTe~DWM4f?`kNl diff --git a/textures/homedecor_television_right.png b/textures/homedecor_television_right.png index f8713960e108c23036818cfb3ecf44515750a991..149fc2f140d2379ff1c58fa7888fd4e9a48fcc02 100644 GIT binary patch delta 116 zcmbQuxQ20p3O`$tx4R1i82ohJT|ZG#K8jt2U4-xKymcZ#QAjx$r>mdKI;Vst0Bt8H*Z=?k delta 126 zcmZ3(IGb^TN;zkNM`SSr1Gg{;GcwGYBf-GHz+U3%>&kwIjbA`nx$d!9B2dW6)5S5w z;`G}y8wDE-c#Z}feER<3-|fX~mCi7{+p*&M?p0aF8H_5GrYlt(pQhbl