several changes, added pictures of inventory, and other changes

master
tony-ka 2012-07-15 00:23:04 +02:00
parent bb46c7be41
commit b216764094
3 changed files with 488 additions and 143 deletions

View File

@ -1,11 +1,46 @@
--[[
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.
]]--
--mesa
minetest.register_craft( {
output = '3dforniture:table',
output = '3dforniture:table', '3dforniture:chair 2',
recipe = {
{ 'default:wood','default:wood', 'default:wood' },
{ 'default:stick', '', 'default:stick' },
},
})
--silla
minetest.register_craft( {
output = '3dforniture:chair 2',
recipe = {
@ -15,6 +50,17 @@ minetest.register_craft( {
},
})
--sillón
minetest.register_craft( {
output = '3dforniture:armchair 2',
recipe = {
{ 'default:wood',''},
{ 'default:wood','default:wood' },
{ 'default:wood','default:wood' },
},
})
--barrotes
minetest.register_craft( {
output = '3dforniture:bars 10',
recipe = {
@ -23,6 +69,7 @@ minetest.register_craft( {
},
})
-- union en L de barrotes
minetest.register_craft( {
output = '3dforniture:L_binding_bars 4',
recipe = {
@ -31,6 +78,7 @@ minetest.register_craft( {
},
})
--cadenas
minetest.register_craft( {
output = '3dforniture:chains 4',
recipe = {
@ -40,6 +88,7 @@ minetest.register_craft( {
},
})
--antorcha de pared
minetest.register_craft( {
output = '3dforniture:torch_wall 10',
recipe = {
@ -48,6 +97,7 @@ minetest.register_craft( {
},
})
--retrete
minetest.register_craft( {
output = '3dforniture:toilet',
recipe = {
@ -57,7 +107,7 @@ minetest.register_craft( {
},
})
--lavabo
minetest.register_craft( {
output = '3dforniture:sink',
recipe = {
@ -65,6 +115,7 @@ minetest.register_craft( {
},
})
--grifos
minetest.register_craft( {
output = '3dforniture:taps',
recipe = {
@ -72,6 +123,7 @@ minetest.register_craft( {
},
})
--plato de ducha
minetest.register_craft( {
output = '3dforniture:shower_tray',
recipe = {
@ -79,26 +131,36 @@ minetest.register_craft( {
},
})
--alcachofa de ducha
minetest.register_craft( {
output = '3dforniture:shower_head',
recipe = {
{ 'default:steel_ingot','bucket:bucket_water' },
{'default:steel_ingot', 'bucket:bucket_water'},
},
})
--lampara de mesa
minetest.register_craft( {
output = '3dforniture:table_lamp_off',
recipe = {
{'default:paper','default:torch' ,'default:paper'},
{'','default:stick',''},
{'','stairs:slab_wood',''},
},
})
--fuel
--mesa
minetest.register_craft({
type = 'fuel',
recipe = '3dforniture:table',
burntime = 30,
})
--silla
minetest.register_craft({
type = 'fuel',
recipe = '3dforniture:chair',
burntime = 15,
})

View File

@ -20,6 +20,12 @@
Contributors:
Lesliev
code
information and assistance in various aspects
InfinityProject
suggested creating bathroom kit.
@ -69,19 +75,17 @@ local on_lamp_puncher = function (pos, node, puncher)
end
end
minetest.register_on_punchnode(on_lamp_puncher)
local on_toilet_puncher = function (pos, node, puncher)
if node.name == '3dforniture:toilet' then
local dir = node["param2"]
minetest.env:add_node(pos, {name="3dforniture:toilet_open", param2=dir, paramtype2='none'})
minetest.env:add_node(pos, {name="3dforniture:toilet_open", paramtype2='none', param2=dir})
nodeupdate(pos)
elseif node.name == '3dforniture:toilet_open' then
local dir = node["param2"]
minetest.env:add_node(pos, {name="3dforniture:toilet", param2=dir, paramtype2='none'})
minetest.env:add_node(pos, {name="3dforniture:toilet", paramtype2='none', param2=dir})
nodeupdate(pos)
end
end
minetest.register_on_punchnode(on_lamp_puncher)
minetest.register_on_punchnode(on_toilet_puncher)

View File

@ -1,18 +1,49 @@
-- replacement
--[[
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:
minetest.register_node(":default:papyrus", {
description = "Papyrus",
InfinityProject
suggested creating bathroom kit.
cosarara97
code.
]]--
-- replacement
minetest.register_node(":default:papyrus",
{description = "Papyrus",
drawtype = "nodebox",
tiles = {
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",
wield_image ="default_papyrus.png",
paramtype = "light",
is_ground_content = true,
walkable = false,
@ -26,7 +57,7 @@ minetest.register_node(":default:papyrus", {
{-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.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},
@ -37,24 +68,21 @@ minetest.register_node(":default:papyrus", {
--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},
groups = {snappy = 3,flammable = 2},
sounds = default.node_sound_leaves_defaults(),
})
minetest.register_node(":default:tree", {
description = "Tree",
minetest.register_node(":default:tree",
{description = "Tree",
paramtype = "light",
tiles = {
"forniture_tree_top.png",
"forniture_tree_top.png",
"default_tree.png",
"default_tree.png",
"forniture_tree_s1.png",
"forniture_tree.png",
"forniture_tree.png",
"forniture_tree_s1.png",
"forniture_tree_s1.png",
},
is_ground_content = true,
@ -62,22 +90,28 @@ minetest.register_node(":default:tree", {
node_box = {
type = "fixed",
fixed = {
{-0.35,-0.5,-0.4, 0.35,0.5,0.4},
{-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.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.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},
groups = {
tree = 1,
snappy = 1,
choppy = 2,
oddly_breakable_by_hand = 1,
flammable = 2
},
sounds = default.node_sound_wood_defaults(),
})
--nodes
minetest.register_node("3dforniture:table", {
description = 'Table',
--nodes
minetest.register_node("3dforniture:table",
{description = 'Table',
tiles = {
"forniture_wood.png",
"forniture_wood.png",
@ -105,10 +139,10 @@ minetest.register_node("3dforniture:table", {
},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
})
})
minetest.register_node("3dforniture:chair", {
description = 'Chair',
minetest.register_node("3dforniture:chair",
{ description = 'Chair',
tiles = {
"forniture_wood.png",
"forniture_wood.png",
@ -121,7 +155,7 @@ minetest.register_node("3dforniture:chair", {
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
node_box = {
type = "fixed",
fixed = {
{-0.3,-0.5,0.2, -0.2,0.5,0.3},
@ -136,11 +170,52 @@ minetest.register_node("3dforniture:chair", {
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}
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}
})
minetest.register_node("3dforniture:bars", {
description = 'Bars',
minetest.register_node("3dforniture:armchair",
{ description = '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:bars",
{ description = 'Bars',
tiles = {
"forniture_black_metal.png",
"forniture_black_metal.png",
@ -153,7 +228,7 @@ minetest.register_node("3dforniture:bars", {
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.1, -0.4,0.5,0.1},
@ -170,8 +245,8 @@ minetest.register_node("3dforniture:bars", {
groups = {cracky=1}
})
minetest.register_node("3dforniture:L_binding_bars", {
description = 'Binding Bars',
minetest.register_node("3dforniture:L_binding_bars",
{ description ='Binding Bars',
tiles = {
"forniture_black_metal.png",
"forniture_black_metal.png",
@ -183,25 +258,24 @@ minetest.register_node("3dforniture:L_binding_bars", {
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
paramtype2 ="facedir",
node_box = {
type = "fixed",
fixed = {
{-0.1,-0.5,-0.5, 0.1,0.5,-0.4},
{-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,}
})
minetest.register_node("3dforniture:chains", {
description = 'Chains',
minetest.register_node("3dforniture:chains",
{ description = 'Chains',
tiles = {
"forniture_black_metal.png",
"forniture_black_metal.png",
@ -210,105 +284,127 @@ minetest.register_node("3dforniture:chains", {
"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 = {
node_box = {
type = "fixed",
fixed = {
--chain a
--supporting
--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
--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
--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
--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
--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
--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
--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.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
--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
--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
--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
--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
---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.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}
})
fixed = {-1/2, -1/2, 1/4, 1/2, 1/2, 1/2}, },
groups = {cracky=1}
})
minetest.register_node("3dforniture:torch_wall", {
description = "Torch Wall",
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}}},
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
{ 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
--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
--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},
@ -320,27 +416,22 @@ minetest.register_node("3dforniture:torch_wall", {
light_source = 18,
selection_box = {
type = "fixed",
fixed = {-0.15, -0.45, 0.15, 0.15, 0.35, 0.5},
},
fixed = {-0.15, -0.45, 0.15, 0.15,0.35, 0.5},
},
groups = {cracky=2}
})
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",
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 = true,
sunlight_propagates = false,
paramtype = 'light',
paramtype2 = 'facedir',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
@ -352,25 +443,21 @@ minetest.register_node("3dforniture:toilet", {
{-0.05,0.4,0.35, 0.05,0.45,0.45},
},
},
drop = "3dforniture:toilet",
groups = {cracky=2,}
drop ="3dforniture:toilet",
groups = {cracky=3,}
})
minetest.register_node("3dforniture:toilet_open", {
description = 'Toilet',
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",
"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 = true,
sunlight_propagates = false,
paramtype = 'light',
paramtype2 = 'facedir',
paramtype2 == 'facedir',
node_box = {
type = "fixed",
fixed = {
@ -386,23 +473,20 @@ minetest.register_node("3dforniture:toilet_open", {
{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=2,}
groups = {cracky = 3,}
})
minetest.register_node("3dforniture:sink", {
description = '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",
"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',
@ -410,7 +494,7 @@ minetest.register_node("3dforniture:sink", {
node_box = {
type = "fixed",
fixed = {
{-0.15,0.35,0.2, 0.15,0.4,0.5},
{-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},
@ -425,19 +509,17 @@ minetest.register_node("3dforniture:sink", {
type = "fixed",
fixed = {-0.3,0.35,0.1, 0.3,0.5,0.5},
},
groups = {cracky=2,}
groups = {cracky=2,}
})
minetest.register_node("3dforniture:taps", {
description = '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",
"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',
@ -449,26 +531,27 @@ minetest.register_node("3dforniture:taps", {
{-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
--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,}
groups = {cracky=2,}
})
minetest.register_node("3dforniture:shower_tray", {
description = 'Shower Tray',
minetest.register_node("3dforniture:shower_tray",
{ description = 'Shower Tray',
tiles = {
"forniture_marble_base_ducha_top.png",
"forniture_marble_base_ducha_top.png",
@ -477,10 +560,12 @@ minetest.register_node("3dforniture:shower_tray", {
"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 = {
@ -495,11 +580,11 @@ minetest.register_node("3dforniture:shower_tray", {
type = "fixed",
fixed = {-0.5,-0.5,-0.5, 0.5,-0.4,0.5},
},
groups = {cracky=2,}
groups = {cracky=2,}
})
minetest.register_node("3dforniture:shower_head", {
description = 'Shower Head',
minetest.register_node("3dforniture:shower_head",
{description = 'Shower Head',
tiles = {
"forniture_metal.png",
"forniture_metal.png",
@ -508,6 +593,7 @@ minetest.register_node("3dforniture:shower_head", {
"forniture_metal_s2.png",
"forniture_metal_s2.png",
},
inventory_image = "3dforniture_inv_shower_head.png",
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
@ -517,14 +603,207 @@ minetest.register_node("3dforniture:shower_head", {
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.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 = {
},
selection_box = {
type = "fixed",
fixed = {-0.1,-0.5,0.1, 0.1,-0.25,0.5},
},
groups = {cracky=2,}
groups = {cracky=2,}
})
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 = {
--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},
--pantalla
{-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 = {
--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},
--pantalla
{-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 = {
--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},
--pantalla
{-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 = {
--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},
--pantalla
{-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 = {
--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},
--pantalla
{-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",
})