minetest_hades/mods/3dforniture/nodes.lua

1166 lines
32 KiB
Lua

--[[
Some adjustments and expansions for Hades subgame added 2015 by Glünggi
3D Forniture
Copyright 2012 Tonyka
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
Contributors:
InfinityProject
suggested creating bathroom kit.
cosarara97
code.
]]--
-- replacement
--Papyrus
minetest.register_node(":default:papyrus",
{description = "Papyrus",
drawtype = "nodebox",
tiles ={
"forniture_papyrus.png",
"forniture_papyrus.png",
"forniture_papyrus_s1.png",
"forniture_papyrus_s1.png",
"forniture_papyrus_s2.png",
"forniture_papyrus_s2.png",
},
inventory_image = "default_papyrus.png",
wield_image ="default_papyrus.png",
paramtype = "light",
is_ground_content = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.4375, -0.5, -0.4375, 0.4375, 0.5, 0.4375}
},
node_box = {
type = "fixed",
fixed = {
--papyrus 1
{-0.03-0.1,-0.5,-0.03-0.1, 0.03-0.1,0.5,0.03-0.1},
{-0.06-0.1,-0.02-0.1,-0.06-0.1, 0.06-0.1,0.02-0.1,0.06-0.1},
--papyrus 2
{-0.03-0.4,-0.5,-0.03-0.3, 0.03-0.4,0.5,0.03-0.3},
{-0.06-0.4,-0.02-0.2,-0.06-0.3, 0.06-0.4,0.02-0.2,0.06-0.3},
--papyrus 3
{-0.03+0.4,-0.5,-0.03-0.3,0.03+0.4,0.5,0.03-0.3},
{-0.06+0.4,-0.02+0.2,-0.06-0.3, 0.06+0.4,0.02+0.2,0.06-0.3},
--papyrus 4
{-0.03-0.4,-0.5,-0.03+0.4, 0.03-0.4,0.5,0.03+0.4},
{-0.06-0.4,0.02+0.4,-0.06+0.4, 0.06-0.4,0.02+0.4,0.06+0.4},
--papyrus 5
{-0.03-0.2,-0.5,-0.03+0.2, 0.03-0.2,0.5,0.03+0.2},
{-0.06-0.2,0.02-0.4,-0.06+0.2, 0.06-0.2,0.02-0.4,0.06+0.2},
--papyrus 6
{-0.03+0.1,-0.5,-0.03+0.2, 0.03+0.1,0.5,0.03+0.2},
{-0.06+0.1,0.02+0.3,-0.06+0.2, 0.06+0.1,0.02+0.3,0.06+0.2},
},
},
groups = {snappy = 3,flammable = 2},
sounds = default.node_sound_leaves_defaults(),
after_dig_node = function(pos, node, metadata, digger)
default.dig_up(pos, node, digger)
end,
})
--Tree
minetest.register_node(":default:tree",
{description = "Tree",
paramtype = "light",
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
is_ground_content = true,
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.35,-0.5,-0.4,0.35,0.5,0.4},
{-0.4,-0.5,-0.35, 0.4,0.5,0.35},
{-0.25,-0.5,-0.45,0.25,0.5,0.45},
{-0.45,-0.5,-0.25, 0.45,0.5,0.25},
{-0.15,-0.5,-0.5,0.15,0.5,0.5},
{-0.5,-0.5,-0.15, 0.5,0.5,0.15},
},
},
groups = {
tree = 1,
snappy = 1,
choppy = 2,
oddly_breakable_by_hand = 1,
flammable = 2
},
sounds = default.node_sound_wood_defaults(),
})
--nodes
-- Deco Home
--Table
minetest.register_node("3dforniture:table",
{description = 'Table',
tiles = {
"forniture_wood.png",
"forniture_wood.png",
"forniture_wood_s1.png",
"forniture_wood_s1.png",
"forniture_wood_s2.png",
"forniture_wood_s2.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.4,-0.5,-0.4, -0.3,0.4,-0.3},
{0.3,-0.5,-0.4, 0.4,0.4,-0.3},
{-0.4,-0.5,0.3, -0.3,0.4,0.4},
{0.3,-0.5,0.3, 0.4,0.4,0.4},
{-0.5,0.4,-0.5, 0.5,0.5,0.5},
{-0.4,-0.2,-0.3, -0.3,-0.1,0.3},
{0.3,-0.2,-0.4, 0.4,-0.1,0.3},
{-0.3,-0.2,-0.4, 0.4,-0.1,-0.3},
{-0.3,-0.2,0.3, 0.3,-0.1,0.4},
},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
})
minetest.register_node("3dforniture:table_black",
{description = 'Black Table',
tiles = {
"forniture_wood_black.png",
"forniture_wood_black.png",
"forniture_wood_s1_black.png",
"forniture_wood_s1_black.png",
"forniture_wood_s2_black.png",
"forniture_wood_s2_black.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.4,-0.5,-0.4, -0.3,0.4,-0.3},
{0.3,-0.5,-0.4, 0.4,0.4,-0.3},
{-0.4,-0.5,0.3, -0.3,0.4,0.4},
{0.3,-0.5,0.3, 0.4,0.4,0.4},
{-0.5,0.4,-0.5, 0.5,0.5,0.5},
{-0.4,-0.2,-0.3, -0.3,-0.1,0.3},
{0.3,-0.2,-0.4, 0.4,-0.1,0.3},
{-0.3,-0.2,-0.4, 0.4,-0.1,-0.3},
{-0.3,-0.2,0.3, 0.3,-0.1,0.4},
},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
})
minetest.register_node("3dforniture:table_white",
{description = 'White Table',
tiles = {
"forniture_wood_white.png",
"forniture_wood_white.png",
"forniture_wood_s1_white.png",
"forniture_wood_s1_white.png",
"forniture_wood_s2_white.png",
"forniture_wood_s2_white.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.4,-0.5,-0.4, -0.3,0.4,-0.3},
{0.3,-0.5,-0.4, 0.4,0.4,-0.3},
{-0.4,-0.5,0.3, -0.3,0.4,0.4},
{0.3,-0.5,0.3, 0.4,0.4,0.4},
{-0.5,0.4,-0.5, 0.5,0.5,0.5},
{-0.4,-0.2,-0.3, -0.3,-0.1,0.3},
{0.3,-0.2,-0.4, 0.4,-0.1,0.3},
{-0.3,-0.2,-0.4, 0.4,-0.1,-0.3},
{-0.3,-0.2,0.3, 0.3,-0.1,0.4},
},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
})
--Chair
minetest.register_node("3dforniture:chair",
{ description = 'Chair',
tiles = {
"forniture_wood.png",
"forniture_wood.png",
"forniture_wood_s1.png",
"forniture_wood_s1.png",
"forniture_wood_s2.png",
"forniture_wood_s2.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.3,-0.5,0.2, -0.2,0.5,0.3},
{0.2,-0.5,0.2, 0.3,0.5,0.3},
{-0.3,-0.5,-0.3, -0.2,-0.1,-0.2},
{0.2,-0.5,-0.3, 0.3,-0.1,-0.2},
{-0.3,-0.1,-0.3, 0.3,0,0.2},
{-0.2,0.1,0.25, 0.2,0.4,0.26}
},
},
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
})
minetest.register_node("3dforniture:chair_black",
{ description = 'Black Chair',
tiles = {
"forniture_wood_black.png",
"forniture_wood_black.png",
"forniture_wood_s1_black.png",
"forniture_wood_s1_black.png",
"forniture_wood_s2_black.png",
"forniture_wood_s2_black.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.3,-0.5,0.2, -0.2,0.5,0.3},
{0.2,-0.5,0.2, 0.3,0.5,0.3},
{-0.3,-0.5,-0.3, -0.2,-0.1,-0.2},
{0.2,-0.5,-0.3, 0.3,-0.1,-0.2},
{-0.3,-0.1,-0.3, 0.3,0,0.2},
{-0.2,0.1,0.25, 0.2,0.4,0.26}
},
},
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
})
minetest.register_node("3dforniture:chair_white",
{ description = 'White Chair',
tiles = {
"forniture_wood_white.png",
"forniture_wood_white.png",
"forniture_wood_s1_white.png",
"forniture_wood_s1_white.png",
"forniture_wood_s2_white.png",
"forniture_wood_s2_white.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.3,-0.5,0.2, -0.2,0.5,0.3},
{0.2,-0.5,0.2, 0.3,0.5,0.3},
{-0.3,-0.5,-0.3, -0.2,-0.1,-0.2},
{0.2,-0.5,-0.3, 0.3,-0.1,-0.2},
{-0.3,-0.1,-0.3, 0.3,0,0.2},
{-0.2,0.1,0.25, 0.2,0.4,0.26}
},
},
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
})
--Armchair
minetest.register_node("3dforniture:armchair",
{ description = 'Black Armchair',
tiles = {
"forniture_armchair_top.png",
"forniture_armchair_top.png",
"forniture_armchair_lat1.png",
"forniture_armchair_lat1.png",
"forniture_armchair_lat2.png",
"forniture_armchair_lat2.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
--lat 1
{-0.5,-0.5,-0.45, -0.3,0.05,0.3},
{-0.45,-0.5,-0.5, -0.35,0.05,-0.45},
{-0.45,0.05,-0.45, -0.35,0.1,0.15},
--lat 2
{0.3,-0.5,-0.45, 0.5,0.05,0.3},{0.35,-0.5,-0.5,0.45,0.05,-0.45},{0.35,0.05,-0.45, 0.45,0.1,0.15},
--respaldo
{-0.5,-0.5,0.3, 0.5,0.45,0.5},{-0.45,0.45,0.35,0.45,0.5,0.45},
--base
{-0.3,-0.45,-0.35, 0.3,-0.1,0.3},{-0.3,-0.45,-0.4, 0.3,-0.15,-0.35},
--oreja 1
{-0.5,0.05,0.15, -0.3,0.45, 0.3},{-0.45,0.1,0.1, -0.35,0.45,0.15},{-0.45,0.45,0.15,-0.35,0.5,0.35},
--oreja 2
{0.3,0.05,0.15, 0.5,0.45,0.3},{0.35,0.1,0.1, 0.45,0.45,0.15},{0.35,0.45,0.15,0.45,0.5,0.35},
},
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
})
minetest.register_node("3dforniture:armchair_white",
{ description = 'White Armchair',
tiles = {
"forniture_armchair_top_white.png",
"forniture_armchair_top_white.png",
"forniture_armchair_lat1_white.png",
"forniture_armchair_lat1_white.png",
"forniture_armchair_lat2_white.png",
"forniture_armchair_lat2_white.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
--lat 1
{-0.5,-0.5,-0.45, -0.3,0.05,0.3},
{-0.45,-0.5,-0.5, -0.35,0.05,-0.45},
{-0.45,0.05,-0.45, -0.35,0.1,0.15},
--lat 2
{0.3,-0.5,-0.45, 0.5,0.05,0.3},{0.35,-0.5,-0.5,0.45,0.05,-0.45},{0.35,0.05,-0.45, 0.45,0.1,0.15},
--respaldo
{-0.5,-0.5,0.3, 0.5,0.45,0.5},{-0.45,0.45,0.35,0.45,0.5,0.45},
--base
{-0.3,-0.45,-0.35, 0.3,-0.1,0.3},{-0.3,-0.45,-0.4, 0.3,-0.15,-0.35},
--oreja 1
{-0.5,0.05,0.15, -0.3,0.45, 0.3},{-0.45,0.1,0.1, -0.35,0.45,0.15},{-0.45,0.45,0.15,-0.35,0.5,0.35},
--oreja 2
{0.3,0.05,0.15, 0.5,0.45,0.3},{0.35,0.1,0.1, 0.45,0.45,0.15},{0.35,0.45,0.15,0.45,0.5,0.35},
},
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
})
minetest.register_node("3dforniture:armchair_blue",
{ description = 'Blue Armchair',
tiles = {
"forniture_armchair_top_blue.png",
"forniture_armchair_top_blue.png",
"forniture_armchair_lat1_blue.png",
"forniture_armchair_lat1_blue.png",
"forniture_armchair_lat2_blue.png",
"forniture_armchair_lat2_blue.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
--lat 1
{-0.5,-0.5,-0.45, -0.3,0.05,0.3},
{-0.45,-0.5,-0.5, -0.35,0.05,-0.45},
{-0.45,0.05,-0.45, -0.35,0.1,0.15},
--lat 2
{0.3,-0.5,-0.45, 0.5,0.05,0.3},{0.35,-0.5,-0.5,0.45,0.05,-0.45},{0.35,0.05,-0.45, 0.45,0.1,0.15},
--respaldo
{-0.5,-0.5,0.3, 0.5,0.45,0.5},{-0.45,0.45,0.35,0.45,0.5,0.45},
--base
{-0.3,-0.45,-0.35, 0.3,-0.1,0.3},{-0.3,-0.45,-0.4, 0.3,-0.15,-0.35},
--oreja 1
{-0.5,0.05,0.15, -0.3,0.45, 0.3},{-0.45,0.1,0.1, -0.35,0.45,0.15},{-0.45,0.45,0.15,-0.35,0.5,0.35},
--oreja 2
{0.3,0.05,0.15, 0.5,0.45,0.3},{0.35,0.1,0.1, 0.45,0.45,0.15},{0.35,0.45,0.15,0.45,0.5,0.35},
},
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
})
minetest.register_node("3dforniture:armchair_brown",
{ description = 'Brown Armchair',
tiles = {
"forniture_armchair_top_brown.png",
"forniture_armchair_top_brown.png",
"forniture_armchair_lat1_brown.png",
"forniture_armchair_lat1_brown.png",
"forniture_armchair_lat2_brown.png",
"forniture_armchair_lat2_brown.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
--lat 1
{-0.5,-0.5,-0.45, -0.3,0.05,0.3},
{-0.45,-0.5,-0.5, -0.35,0.05,-0.45},
{-0.45,0.05,-0.45, -0.35,0.1,0.15},
--lat 2
{0.3,-0.5,-0.45, 0.5,0.05,0.3},{0.35,-0.5,-0.5,0.45,0.05,-0.45},{0.35,0.05,-0.45, 0.45,0.1,0.15},
--respaldo
{-0.5,-0.5,0.3, 0.5,0.45,0.5},{-0.45,0.45,0.35,0.45,0.5,0.45},
--base
{-0.3,-0.45,-0.35, 0.3,-0.1,0.3},{-0.3,-0.45,-0.4, 0.3,-0.15,-0.35},
--oreja 1
{-0.5,0.05,0.15, -0.3,0.45, 0.3},{-0.45,0.1,0.1, -0.35,0.45,0.15},{-0.45,0.45,0.15,-0.35,0.5,0.35},
--oreja 2
{0.3,0.05,0.15, 0.5,0.45,0.3},{0.35,0.1,0.1, 0.45,0.45,0.15},{0.35,0.45,0.15,0.45,0.5,0.35},
},
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
})
minetest.register_node("3dforniture:armchair_red",
{ description = 'Red Armchair',
tiles = {
"forniture_armchair_top_red.png",
"forniture_armchair_top_red.png",
"forniture_armchair_lat1_red.png",
"forniture_armchair_lat1_red.png",
"forniture_armchair_lat2_red.png",
"forniture_armchair_lat2_red.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
--lat 1
{-0.5,-0.5,-0.45, -0.3,0.05,0.3},
{-0.45,-0.5,-0.5, -0.35,0.05,-0.45},
{-0.45,0.05,-0.45, -0.35,0.1,0.15},
--lat 2
{0.3,-0.5,-0.45, 0.5,0.05,0.3},{0.35,-0.5,-0.5,0.45,0.05,-0.45},{0.35,0.05,-0.45, 0.45,0.1,0.15},
--respaldo
{-0.5,-0.5,0.3, 0.5,0.45,0.5},{-0.45,0.45,0.35,0.45,0.5,0.45},
--base
{-0.3,-0.45,-0.35, 0.3,-0.1,0.3},{-0.3,-0.45,-0.4, 0.3,-0.15,-0.35},
--oreja 1
{-0.5,0.05,0.15, -0.3,0.45, 0.3},{-0.45,0.1,0.1, -0.35,0.45,0.15},{-0.45,0.45,0.15,-0.35,0.5,0.35},
--oreja 2
{0.3,0.05,0.15, 0.5,0.45,0.3},{0.35,0.1,0.1, 0.45,0.45,0.15},{0.35,0.45,0.15,0.45,0.5,0.35},
},
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
})
minetest.register_node("3dforniture:armchair_green",
{ description = 'Green Armchair',
tiles = {
"forniture_armchair_top_green.png",
"forniture_armchair_top_green.png",
"forniture_armchair_lat1_green.png",
"forniture_armchair_lat1_green.png",
"forniture_armchair_lat2_green.png",
"forniture_armchair_lat2_green.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
--lat 1
{-0.5,-0.5,-0.45, -0.3,0.05,0.3},
{-0.45,-0.5,-0.5, -0.35,0.05,-0.45},
{-0.45,0.05,-0.45, -0.35,0.1,0.15},
--lat 2
{0.3,-0.5,-0.45, 0.5,0.05,0.3},{0.35,-0.5,-0.5,0.45,0.05,-0.45},{0.35,0.05,-0.45, 0.45,0.1,0.15},
--respaldo
{-0.5,-0.5,0.3, 0.5,0.45,0.5},{-0.45,0.45,0.35,0.45,0.5,0.45},
--base
{-0.3,-0.45,-0.35, 0.3,-0.1,0.3},{-0.3,-0.45,-0.4, 0.3,-0.15,-0.35},
--oreja 1
{-0.5,0.05,0.15, -0.3,0.45, 0.3},{-0.45,0.1,0.1, -0.35,0.45,0.15},{-0.45,0.45,0.15,-0.35,0.5,0.35},
--oreja 2
{0.3,0.05,0.15, 0.5,0.45,0.3},{0.35,0.1,0.1, 0.45,0.45,0.15},{0.35,0.45,0.15,0.45,0.5,0.35},
},
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
})
--Table Lamp
minetest.register_node("3dforniture:table_lamp_off",
{ description = 'Table Lamp',
drawtype = "nodebox",
tiles = {
"forniture_table_lamp_s.png",
"forniture_table_lamp_s.png",
"forniture_table_lamp_l.png",
},
paramtype = 'light',
paramtype2 = 'facedir',
node_box = {
type = "fixed",
fixed = {
--Lamp Base
{-0.15,-0.5,-0.15, 0.15,-0.45,0.15},
{-0.05,-0.45,-0.05, 0.05,-0.4,0.05},
{-0.025,-0.4,-0.025, 0.025,-0.1,0.025},
{-0.0125,-0.125,-0.2, 0.0125,-0.1,0.2},
{-0.2,-0.125,-0.0125, 0.2,-0.1,0.0125},
--Lamp Shade
{-0.2,-0.1,-0.2, -0.175,0.3,0.2},
{0.175,-0.1,-0.2, 0.2,0.3,0.2},
{-0.175,-0.1,-0.2, 0.175,0.3,-0.175},
{-0.175,-0.1,0.175, 0.175,0.3,0.2},
},
},
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5,0.5, 0.5},
},
groups = {cracky=2,oddly_breakable_by_hand=1,},
drop = "3dforniture:table_lamp_off",
})
minetest.register_node("3dforniture:table_lamp_low",
{ description = 'Table Lamp',
drawtype = "nodebox",
tiles = {
"forniture_table_lamp_s.png",
"forniture_table_lamp_s.png",
"forniture_table_lamp_l.png",
},
paramtype = 'light',
paramtype2 = 'facedir',
node_box = {
type = "fixed",
fixed = {
--Lamp Base
{-0.15,-0.5,-0.15, 0.15,-0.45,0.15},
{-0.05,-0.45,-0.05, 0.05,-0.4,0.05},
{-0.025,-0.4,-0.025, 0.025,-0.1,0.025},
{-0.0125,-0.125,-0.2, 0.0125,-0.1,0.2},
{-0.2,-0.125,-0.0125, 0.2,-0.1,0.0125},
--Lamp Shade
{-0.2,-0.1,-0.2, -0.175,0.3,0.2},
{0.175,-0.1,-0.2, 0.2,0.3,0.2},
{-0.175,-0.1,-0.2, 0.175,0.3,-0.175},
{-0.175,-0.1,0.175, 0.175,0.3,0.2},
},
},
sunlight_propagates = true,
walkable = false,
light_source = 4,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5,0.5, 0.5},
},
groups = {cracky=2,oddly_breakable_by_hand=1,},
drop = "3dforniture:table_lamp_off",
})
minetest.register_node("3dforniture:table_lamp_med",
{ description = 'Table Lamp',
drawtype = "nodebox",
tiles = {
"forniture_table_lamp_s.png",
"forniture_table_lamp_s.png",
"forniture_table_lamp_l.png",
},
paramtype = 'light',
paramtype2 = 'facedir',
node_box = {
type = "fixed",
fixed = {
--Lamp Base
{-0.15,-0.5,-0.15, 0.15,-0.45,0.15},
{-0.05,-0.45,-0.05, 0.05,-0.4,0.05},
{-0.025,-0.4,-0.025, 0.025,-0.1,0.025},
{-0.0125,-0.125,-0.2, 0.0125,-0.1,0.2},
{-0.2,-0.125,-0.0125, 0.2,-0.1,0.0125},
--Lamp Shade
{-0.2,-0.1,-0.2, -0.175,0.3,0.2},
{0.175,-0.1,-0.2, 0.2,0.3,0.2},
{-0.175,-0.1,-0.2, 0.175,0.3,-0.175},
{-0.175,-0.1,0.175, 0.175,0.3,0.2},
},
},
sunlight_propagates = true,
walkable = false,
light_source = 8,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5,0.5, 0.5},
},
groups = {cracky=2,oddly_breakable_by_hand=1,},
drop = "3dforniture:table_lamp_off",
})
minetest.register_node("3dforniture:table_lamp_hi",
{ description = 'Table Lamp',
drawtype = "nodebox",
tiles = {
"forniture_table_lamp_s.png",
"forniture_table_lamp_s.png",
"forniture_table_lamp_l.png",
},
paramtype = 'light',
paramtype2 = 'facedir',
node_box = {
type = "fixed",
fixed = {
--Lamp Base
{-0.15,-0.5,-0.15, 0.15,-0.45,0.15},
{-0.05,-0.45,-0.05, 0.05,-0.4,0.05},
{-0.025,-0.4,-0.025, 0.025,-0.1,0.025},
{-0.0125,-0.125,-0.2, 0.0125,-0.1,0.2},
{-0.2,-0.125,-0.0125, 0.2,-0.1,0.0125},
--Lamp Shade
{-0.2,-0.1,-0.2, -0.175,0.3,0.2},
{0.175,-0.1,-0.2, 0.2,0.3,0.2},
{-0.175,-0.1,-0.2, 0.175,0.3,-0.175},
{-0.175,-0.1,0.175, 0.175,0.3,0.2},
},
},
sunlight_propagates = true,
walkable = false,
light_source = 12,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5,0.5, 0.5},
},
groups = {cracky=2},
drop = "3dforniture:table_lamp_off",
})
minetest.register_node("3dforniture:table_lamp_max",
{ description = 'Table Lamp',
drawtype = "nodebox",
tiles = {
"forniture_table_lamp_s.png",
"forniture_table_lamp_s.png",
"forniture_table_lamp_l.png",
},
paramtype = 'light',
paramtype2 = 'facedir',
node_box = {
type = "fixed",
fixed = {
--Lamp Base
{-0.15,-0.5,-0.15, 0.15,-0.45,0.15},
{-0.05,-0.45,-0.05, 0.05,-0.4,0.05},
{-0.025,-0.4,-0.025, 0.025,-0.1,0.025},
{-0.0125,-0.125,-0.2, 0.0125,-0.1,0.2},
{-0.2,-0.125,-0.0125, 0.2,-0.1,0.0125},
--Lamp Shade
{-0.2,-0.1,-0.2, -0.175,0.3,0.2},
{0.175,-0.1,-0.2, 0.2,0.3,0.2},
{-0.175,-0.1,-0.2, 0.175,0.3,-0.175},
{-0.175,-0.1,0.175, 0.175,0.3,0.2},
},
},
sunlight_propagates = true,
walkable = false,
light_source = 16,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5,0.5, 0.5},
},
groups = {cracky=2,oddly_breakable_by_hand=1,},
drop = "3dforniture:table_lamp_off",
})
-- Bathroom Kit
--Toilet
minetest.register_node("3dforniture:toilet",
{ description = 'Toilet',
tiles = {
"forniture_marble.png", "forniture_marble.png",
"forniture_marble_s1.png", "forniture_marble_s1.png",
"forniture_marble_s2.png", "forniture_marble_s2.png",
},
drawtype = "nodebox",
sunlight_propagates = false,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.2,-0.5,-0.2, 0.2,-0.45,0.5},
{-0.1,-0.45,-0.1, 0.1,0,0.5},
{-0.3,-0.2,-0.3, 0.3,0,0.35},
{-0.25,0,-0.25, 0.25,0.05,0.25},
{-0.3,0,0.3, 0.3,0.4,0.5},
{-0.05,0.4,0.35, 0.05,0.45,0.45},
},
},
drop ="3dforniture:toilet",
groups = {cracky=3,}
})
minetest.register_node("3dforniture:toilet_open",
{ description = 'Toilet',
tiles = {
"forniture_marble_top_toilet.png", "forniture_marble.png",
"forniture_marble_sb1.png", "forniture_marble_sb1.png",
"forniture_marble_sb2.png", "forniture_marble_sb2.png",
},
drawtype = "nodebox",
sunlight_propagates = false,
paramtype = 'light',
paramtype2 = 'facedir',
node_box = {
type = "fixed",
fixed = {
{-0.2,-0.5,-0.2, 0.2,-0.45,0.5},
{-0.1,-0.45,-0.1, 0.1,-0.2,0.5},
{-0.1,-0.2,0.3, 0.1,0,0.5},
{-0.3,-0.2,0.1, 0.3,0,0.35},
{-0.3,-0.2,-0.3, -0.1,-0.15,0.1},
{-0.1,-0.2,-0.3, 0.1,-0.15,-0.1},
{0.1,-0.2,-0.3, 0.3,-0.15,0.1},
{-0.3,-0.15,-0.3, -0.2,0,0.1},
{-0.2,-0.15,-0.3, 0.2,0,-0.2},
{0.2,-0.15,-0.3, 0.3,0,0.1},
{-0.25,0,0.2, 0.25,0.5,0.25},
{-0.3,0,0.3, 0.3,0.4,0.5},
},
},
drop = "3dforniture:toilet",
groups = {cracky = 3,},
sounds = {dig = "3dforniture_dig_toilet", gain=0.5},
})
--Sink
minetest.register_node("3dforniture:sink",
{description = 'Sink',
tiles = {
"forniture_marble_top_sink.png", "forniture_marble.png",
"forniture_marble_sb1.png", "forniture_marble_sb1.png",
"forniture_marble_sb2.png", "forniture_marble_sb2.png",
},
inventory_image = "3dforniture_inv_sink.png",
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = 'facedir',
node_box = {
type = "fixed",
fixed = {
{-0.15,0.35,0.2,0.15,0.4,0.5},
{-0.25,0.4,0.4, 0.25,0.45,0.5},
{-0.25,0.4,0.15, -0.15,0.45,0.4},
{0.15,0.4,0.15, 0.25,0.45,0.4},
{-0.15,0.4,0.15, 0.15,0.45,0.2},
{-0.3,0.45,0.4, 0.3,0.5,0.5},
{-0.3,0.45,0.1, -0.25,0.5,0.4},
{0.25,0.45,0.1, 0.3,0.5,0.4},
{-0.25,0.45,0.1, 0.25,0.5,0.15},
},
},
selection_box = {
type = "fixed",
fixed = {-0.3,0.35,0.1, 0.3,0.5,0.5},
},
groups = {cracky=2,}
})
--Taps
minetest.register_node("3dforniture:taps",
{ description = 'Taps',
tiles = {
"forniture_metal.png", "forniture_metal.png",
"forniture_metal_s1.png", "forniture_metal_s1.png",
"forniture_metal_s2.png", "forniture_metal_s2.png",
},
inventory_image = "3dforniture_inv_taps.png",
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = 'facedir',
node_box = {
type = "fixed",
fixed = {
--Base
{-0.25,-0.45,0.49, 0.25,-0.3,0.5},
{-0.05,-0.4,0.25, 0.05,-0.35,0.5},
{-0.05,-0.425,0.25,0.05,-0.4,0.3},
--taps 1
{-0.2,-0.4,0.45, -0.15,-0.35,0.5},
{-0.2,-0.45,0.4, -0.15,-0.3,0.45},
{-0.25,-0.4,0.4, -0.1,-0.35,0.45},
--taps 2
{0.15,-0.4,0.45, 0.2,-0.35,0.5},
{0.15,-0.45,0.4, 0.2,-0.3,0.45},
{0.1,-0.4,0.4, 0.25,-0.35,0.45},
},
},
selection_box = {
type = "fixed",
fixed = {-0.25,-0.45,0.25, 0.25,-0.3,0.5},
},
groups = {cracky=2,}
})
--Shower Tray
minetest.register_node("3dforniture:shower_tray",
{ description = 'Shower Tray',
tiles = {
"forniture_marble_base_ducha_top.png",
"forniture_marble_base_ducha_top.png",
"forniture_marble_sb1.png",
"forniture_marble_sb1.png",
"forniture_marble_sb2.png",
"forniture_marble_sb2.png",
},
inventory_image = "3dforniture_inv_shower_tray.png",
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = 'facedir',
legacy_facedir_simple = true,
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.5, 0.5,-0.45,0.5},
{-0.5,-0.45,-0.5, 0.5,-0.4,-0.45},
{-0.5,-0.45,0.45, 0.5,-0.4,0.5},
{-0.5,-0.45,-0.45, -0.45,-0.4,0.45},
{0.45,-0.45,-0.45, 0.5,-0.4,0.45},
},
},
selection_box = {
type = "fixed",
fixed = {-0.5,-0.5,-0.5, 0.5,-0.4,0.5},
},
groups = {cracky=2,}
})
--Shower Head
minetest.register_node("3dforniture:shower_head",
{description = 'Shower Head',
tiles = {
"forniture_metal.png",
"forniture_metal.png",
"forniture_metal_s1.png",
"forniture_metal_s1.png",
"forniture_metal_s2.png",
"forniture_metal_s2.png",
},
inventory_image = "3dforniture_inv_shower_head.png",
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = 'facedir',
node_box = {
type = "fixed",
fixed = {
{-0.1,-0.5,0.1, 0.1,-0.4,0.3},
{-0.05,-0.4,0.15, 0.05,-0.3,0.25},
{-0.05,-0.35,0.25,0.05,-0.3,0.5},
{-0.1,-0.4,0.49, 0.1,-0.25,0.5},
},
},
selection_box = {
type = "fixed",
fixed = {-0.1,-0.5,0.1, 0.1,-0.25,0.5},
},
groups = {cracky=2,}
})
-- Medieval Forniture
--Bars
minetest.register_node("3dforniture:bars",
{ description = 'Bars',
tiles = {
"forniture_black_metal.png",
"forniture_black_metal.png",
"forniture_black_metal_s1.png",
"forniture_black_metal_s1.png",
"forniture_black_metal_s2.png",
"forniture_black_metal_s2.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.1, -0.4,0.5,0.1},
{-0.1,-0.5,-0.1, 0.1,0.5,0.1},
{0.4,-0.5,-0.1, 0.5,0.5,0.1},
{-0.5,-0.5,-0.05, 0.5,-0.45,0.05},
{-0.5,0.45,-0.05, 0.5,0.5,0.05}
},
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.1, 0.5, 0.5, 0.1},
},
groups = {cracky=1}
})
--L Binding Bars
minetest.register_node("3dforniture:L_binding_bars",
{ description ='Binding Bars',
tiles = {
"forniture_black_metal.png",
"forniture_black_metal.png",
"forniture_black_metal_s1.png",
"forniture_black_metal_s1.png",
"forniture_black_metal_s2.png",
"forniture_black_metal_s2.png",
},
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 ="facedir",
node_box = {
type = "fixed",
fixed = {
{-0.1,-0.5,-0.5,0.1,0.5,-0.4},
{-0.15,-0.5,-0.15, 0.15,0.5,0.15},
{0.4,-0.5,-0.1, 0.5,0.5,0.1},
{0,-0.5,-0.05, 0.5,-0.45,0.05},
{-0.05,-0.5,-0.5, 0.05,-0.45,0},
{0,0.45,-0.05, 0.5,0.5,0.05},
{-0.05,0.45,-0.5, 0.05,0.5,0},
},
},
groups = {cracky=1,}
})
--Chains
minetest.register_node("3dforniture:chains",
{ description = 'Chains',
tiles = {
"forniture_black_metal.png",
"forniture_black_metal.png",
"forniture_black_metal_s1.png",
"forniture_black_metal_s1.png",
"forniture_black_metal_s2.png",
"forniture_black_metal_s2.png",
},
inventory_image = "3dforniture_inv_chains.png",
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
--chain a
--supporting
{-0.45,0.25,0.45, -0.2,0.5,0.5},
{-0.35,0.4,0.35, -0.3,0.45,0.45},
{-0.35,0.3,0.35, -0.3,0.35,0.45},
{-0.35,0.35,0.3, -0.3,0.4,0.35},
--link 1
{-0.4,0.35,0.35, -0.25,0.4,0.4},
{-0.4,0.15,0.35, -0.25,0.2,0.4},
{-0.45,0.2,0.35, -0.4,0.35,0.4},
{-0.25,0.2,0.35, -0.2,0.35,0.4},
--link 2
{-0.35,0.2,0.3, -0.3,0.25,0.45},
{-0.35,0,0.3, -0.3,0.05,0.45},
{-0.35,0.05,0.25, -0.3,0.2,0.3},
{-0.35,0.05,0.45, -0.3,0.2,0.5},
--link 3
{-0.4,0.05,0.35, -0.25,0.1,0.4},
{-0.4,-0.15,0.35, -0.25,-0.1,0.4},
{-0.45,-0.1,0.35, -0.4,0.05,0.4},
{-0.25,-0.1,0.35, -0.2,0.05,0.4},
--link 4
{-0.35,-0.1,0.3, -0.3,-0.05,0.45},
{-0.35,-0.3,0.3, -0.3,-0.25,0.45},
{-0.35,-0.25,0.25, -0.3,-0.1,0.3},
{-0.35,-0.25,0.45, -0.3,-0.1,0.5},
--link 5
{-0.4,-0.25,0.35, -0.25,-0.2,0.4},
{-0.4,-0.45,0.35, -0.25,-0.4,0.4},
{-0.45,-0.4,0.35, -0.4,-0.25,0.4},
{-0.25,-0.4,0.35, -0.2,-0.25,0.4},
--chain b
--supporting
{0.2,0.25,0.45, 0.45,0.5,0.5},
{0.3,0.4,0.35,0.35,0.45,0.45},
{0.3,0.3,0.35, 0.35,0.35,0.45},
{0.3,0.35,0.3, 0.35,0.4,0.35},
--link 1
{0.25,0.35,0.35, 0.4,0.4,0.4},
{0.25,0.15,0.35, 0.4,0.2,0.4},
{0.2,0.2,0.35, 0.25,0.35,0.4},
{0.4,0.2,0.35, 0.45,0.35,0.4},
--link 2
{0.3,0.2,0.3, 0.35,0.25,0.45},
{0.3,0,0.3, 0.35,0.05,0.45},
{0.3,0.05,0.25, 0.35,0.2,0.3},
{0.3,0.05,0.45, 0.35,0.2,0.5},
--link 3
{0.25,0.05,0.35, 0.4,0.1,0.4},
{0.25,-0.15,0.35, 0.4,-0.1,0.4},
{0.2,-0.1,0.35, 0.25,0.05,0.4},
{0.4,-0.1,0.35, 0.45,0.05,0.4},
--link 4
{0.3,-0.1,0.3, 0.35,-0.05,0.45},
{0.3,-0.3,0.3, 0.35,-0.25,0.45},
{0.3,-0.25,0.25, 0.35,-0.1,0.3},
{0.3,-0.25,0.45, 0.35,-0.1,0.5},
---link 5
{0.25,-0.25,0.35, 0.4,-0.2,0.4},
{0.25,-0.45,0.35,0.4,-0.4,0.4},
{0.2,-0.4,0.35, 0.25,-0.25,0.4},
{0.4,-0.4,0.35, 0.45,-0.25,0.4},
},
},
selection_box = {
type = "fixed",
fixed = {-1/2, -1/2, 1/4, 1/2, 1/2, 1/2}, },
groups = {cracky=1}
})
--Torch Wakll
minetest.register_node("3dforniture:torch_wall",
{ description = 'Torch Wall',
drawtype = "nodebox",
tiles = {
"forniture_torch_wall_s.png",
"forniture_torch_wall_i.png",
{ name="forniture_torch_wall_anim.png",
animation={
type="vertical_frames",
aspect_w=40,
aspect_h=40,
length=1.0
}
}
},
inventory_image = "3dforniture_inv_torch_wall.png",
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
--torch
{-0.05,-0.45,0.45, 0.05,-0.35,0.5},
{-0.05,-0.35,0.4, 0.05,-0.25,0.5},
{-0.05,-0.25,0.35, 0.05,-0.15,0.45},
{-0.05,-0.15,0.3, 0.05,-0.05,0.4},
{-0.05,-0.05,0.25, 0.05,0,0.35},
--fire
{-0.1,0,0.2, 0.1,0.05,0.4},
{-0.15,0.05,0.15, 0.15,0.15,0.45},
{-0.1,0.15,0.2, 0.1,0.25,0.4},
{-0.05,0.25,0.25, 0.05,0.35,0.35},
},
},
sunlight_propagates = true,
walkable = false,
light_source = 18,
selection_box = {
type = "fixed",
fixed = {-0.15, -0.45, 0.15, 0.15,0.35, 0.5},
},
groups = {cracky=2}
})