commit cc6631c88226703ae19ff9260e8f2ec50a7f6ea6 Author: Leslie Viljoen Date: Thu Jul 12 21:55:20 2012 +1200 Initial commit diff --git a/3dforniture/crafting.lua b/3dforniture/crafting.lua new file mode 100644 index 0000000..5296a04 --- /dev/null +++ b/3dforniture/crafting.lua @@ -0,0 +1,104 @@ +minetest.register_craft( { + output = '3dforniture:table', + recipe = { + { 'default:wood','default:wood', 'default:wood' }, + { 'default:stick', '', 'default:stick' }, + }, +}) + +minetest.register_craft( { + output = '3dforniture:chair 2', + recipe = { + { 'default:stick',''}, + { 'default:wood','default:wood' }, + { 'default:stick','default:stick' }, + }, +}) + +minetest.register_craft( { + output = '3dforniture:bars 10', + recipe = { + { 'default:steel_ingot','default:steel_ingot','default:steel_ingot' }, + { 'default:steel_ingot','default:steel_ingot','default:steel_ingot' }, + }, +}) + +minetest.register_craft( { + output = '3dforniture:L_binding_bars 4', + recipe = { + { '3dforniture:bars','' }, + { '3dforniture:bars','3dforniture:bars' }, + }, +}) + +minetest.register_craft( { + output = '3dforniture:chains 4', + recipe = { + {'','default:steel_ingot',''}, + { 'default:steel_ingot','', 'default:steel_ingot' }, + { '', 'default:steel_ingot', '' }, + }, +}) + +minetest.register_craft( { + output = '3dforniture:torch_wall 10', + recipe = { + { 'default:coal_lump' }, + { 'default:steel_ingot' }, + }, +}) + +minetest.register_craft( { + output = '3dforniture:toilet', + recipe = { + {'','','bucket:bucket_water'}, + { 'default:cobble','default:cobble', 'default:cobble' }, + { '', 'bucket:bucket_empty', '' }, + }, +}) + + +minetest.register_craft( { + output = '3dforniture:sink', + recipe = { + { 'default:cobble','bucket:bucket_empty', 'default:cobble' }, + }, +}) + +minetest.register_craft( { + output = '3dforniture:taps', + recipe = { + { 'default:steel_ingot','bucket:bucket_water', 'default:steel_ingot' }, + }, +}) + +minetest.register_craft( { + output = '3dforniture:shower_tray', + recipe = { + { 'default:cobble','bucket:bucket_water', 'default:cobble' }, + }, +}) + +minetest.register_craft( { + output = '3dforniture:shower_head', + recipe = { + { 'default:steel_ingot','bucket:bucket_water' }, + }, +}) + +--fuel + +minetest.register_craft({ + type = 'fuel', + recipe = '3dforniture:table', + burntime = 30, +}) + +minetest.register_craft({ + type = 'fuel', + recipe = '3dforniture:chair', + burntime = 15, +}) + + + diff --git a/3dforniture/depends.txt b/3dforniture/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/3dforniture/depends.txt @@ -0,0 +1 @@ +default diff --git a/3dforniture/init.lua b/3dforniture/init.lua new file mode 100644 index 0000000..b3c13dc --- /dev/null +++ b/3dforniture/init.lua @@ -0,0 +1,75 @@ +--[[ +--Mod: 3D FORNITURE +--V: 1.0 +--Autor: Tonyka +--Agradecimientos a: cosarara97, InfinityProject +------------------------ +-- Copyright GNU GPL -- +------------------------ +--]] + +dofile(minetest.get_modpath("3dforniture").."/crafting.lua") +dofile(minetest.get_modpath("3dforniture").."/nodes.lua") + +--alias +minetest.register_alias("mapgen_tree", "default:tree") +minetest.register_alias('table', '3dforniture:table') +minetest.register_alias('chair', '3dforniture:chair') +minetest.register_alias('bars', '3dforniture:bars') +minetest.register_alias('binding_bars', '3dforniture:L_binding_bars') +minetest.register_alias('chains', '3dforniture:chains') +minetest.register_alias('torch_wall', '3dforniture:torch_wall') +minetest.register_alias('toilet', '3dforniture:toilet') +minetest.register_alias('sink', '3dforniture:sink') +minetest.register_alias('taps', '3dforniture:taps') +minetest.register_alias('shower_tray', '3dforniture:shower_tray') +minetest.register_alias('shower_head', '3dforniture:shower_head') +--[[ +minetest.register_abm( + {nodenames = {"3dforniture:toilet"}, + interval = 0.02 , + chance = 1, + action = function(pos) + --pos.y=pos.y + minetest.env:add_node(pos, {name="3dforniture:toilet_open"}) + --minetest.env:remove_node(pos, {name="3dforniture:toilet_open"}) + end, +}) + +minetest.register_abm( + {nodenames = {"3dforniture:toilet_open"}, + interval = 0.02, + chance = 1, + action = function(pos) + --pos.y=pos.y + minetest.env:add_node(pos, {name="3dforniture:toilet"}) + end, +}) +]] +--[[ +minetest.register_abm( + {nodenames = {"default:tree"}, + interval = 1 , + chance = 1, + action = function(pos) + --pos.y=pos.y + minetest.env:add_node(pos, {name="default:tree"}) + --minetest.env:remove_node(pos, {name="3dforniture:toilet_open"}) + end, +}) +]] + +--[[ +local on_toilet_puncher = function (pos, node, puncher) + if node.name == '3dforniture:toilet' then + minetest.env:add_node(pos, {name="3dforniture:toilet_open"}) + nodeupdate(pos) + elseif node.name == '3dforniture:toilet_open' then + minetest.env:add_node(pos, {name="3dforniture:toilet"}) + nodeupdate(pos) + end +end + +minetest.register_on_punchnode(on_toilet_puncher) +]]-- +---------------------------------------------------------------- diff --git a/3dforniture/nodes.lua b/3dforniture/nodes.lua new file mode 100644 index 0000000..6cd964d --- /dev/null +++ b/3dforniture/nodes.lua @@ -0,0 +1,530 @@ +-- replacement + +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, + 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(), +}) + +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_s1.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 + +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: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: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} +}) + +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,} +}) + +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", + }, + 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} +}) + +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 = { + 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} + +}) + +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, + 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=2,} + +}) + +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 = true, + 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=2,} +}) + +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", + }, + 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,} +}) + +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", + }, + 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,} +}) + +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", + }, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = 'light', + + 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,} +}) + +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", + }, + 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,} +}) diff --git a/3dforniture/textures/forniture_black_metal.png b/3dforniture/textures/forniture_black_metal.png new file mode 100644 index 0000000..23d5c06 Binary files /dev/null and b/3dforniture/textures/forniture_black_metal.png differ diff --git a/3dforniture/textures/forniture_black_metal_s1.png b/3dforniture/textures/forniture_black_metal_s1.png new file mode 100644 index 0000000..38fa8ab Binary files /dev/null and b/3dforniture/textures/forniture_black_metal_s1.png differ diff --git a/3dforniture/textures/forniture_black_metal_s2.png b/3dforniture/textures/forniture_black_metal_s2.png new file mode 100644 index 0000000..7c79859 Binary files /dev/null and b/3dforniture/textures/forniture_black_metal_s2.png differ diff --git a/3dforniture/textures/forniture_marble.png b/3dforniture/textures/forniture_marble.png new file mode 100644 index 0000000..39a4c58 Binary files /dev/null and b/3dforniture/textures/forniture_marble.png differ diff --git a/3dforniture/textures/forniture_marble_base_ducha_top.png b/3dforniture/textures/forniture_marble_base_ducha_top.png new file mode 100644 index 0000000..36ca38d Binary files /dev/null and b/3dforniture/textures/forniture_marble_base_ducha_top.png differ diff --git a/3dforniture/textures/forniture_marble_s1.png b/3dforniture/textures/forniture_marble_s1.png new file mode 100644 index 0000000..b4cc760 Binary files /dev/null and b/3dforniture/textures/forniture_marble_s1.png differ diff --git a/3dforniture/textures/forniture_marble_s2.png b/3dforniture/textures/forniture_marble_s2.png new file mode 100644 index 0000000..0f3b1d2 Binary files /dev/null and b/3dforniture/textures/forniture_marble_s2.png differ diff --git a/3dforniture/textures/forniture_marble_sb1.png b/3dforniture/textures/forniture_marble_sb1.png new file mode 100644 index 0000000..febc0c3 Binary files /dev/null and b/3dforniture/textures/forniture_marble_sb1.png differ diff --git a/3dforniture/textures/forniture_marble_sb2.png b/3dforniture/textures/forniture_marble_sb2.png new file mode 100644 index 0000000..d412f1c Binary files /dev/null and b/3dforniture/textures/forniture_marble_sb2.png differ diff --git a/3dforniture/textures/forniture_marble_top_sink.png b/3dforniture/textures/forniture_marble_top_sink.png new file mode 100644 index 0000000..54a75ba Binary files /dev/null and b/3dforniture/textures/forniture_marble_top_sink.png differ diff --git a/3dforniture/textures/forniture_marble_top_toilet.png b/3dforniture/textures/forniture_marble_top_toilet.png new file mode 100644 index 0000000..b59263b Binary files /dev/null and b/3dforniture/textures/forniture_marble_top_toilet.png differ diff --git a/3dforniture/textures/forniture_metal.png b/3dforniture/textures/forniture_metal.png new file mode 100644 index 0000000..1fd9ac4 Binary files /dev/null and b/3dforniture/textures/forniture_metal.png differ diff --git a/3dforniture/textures/forniture_metal_s1.png b/3dforniture/textures/forniture_metal_s1.png new file mode 100644 index 0000000..abbcc0d Binary files /dev/null and b/3dforniture/textures/forniture_metal_s1.png differ diff --git a/3dforniture/textures/forniture_metal_s2.png b/3dforniture/textures/forniture_metal_s2.png new file mode 100644 index 0000000..0e0e15c Binary files /dev/null and b/3dforniture/textures/forniture_metal_s2.png differ diff --git a/3dforniture/textures/forniture_papyrus.png b/3dforniture/textures/forniture_papyrus.png new file mode 100644 index 0000000..68a4ee3 Binary files /dev/null and b/3dforniture/textures/forniture_papyrus.png differ diff --git a/3dforniture/textures/forniture_papyrus_s1.png b/3dforniture/textures/forniture_papyrus_s1.png new file mode 100644 index 0000000..bb0a2ea Binary files /dev/null and b/3dforniture/textures/forniture_papyrus_s1.png differ diff --git a/3dforniture/textures/forniture_papyrus_s2.png b/3dforniture/textures/forniture_papyrus_s2.png new file mode 100644 index 0000000..fe5fd01 Binary files /dev/null and b/3dforniture/textures/forniture_papyrus_s2.png differ diff --git a/3dforniture/textures/forniture_torch_wall_anim.png b/3dforniture/textures/forniture_torch_wall_anim.png new file mode 100644 index 0000000..38d5206 Binary files /dev/null and b/3dforniture/textures/forniture_torch_wall_anim.png differ diff --git a/3dforniture/textures/forniture_torch_wall_i.png b/3dforniture/textures/forniture_torch_wall_i.png new file mode 100644 index 0000000..e489851 Binary files /dev/null and b/3dforniture/textures/forniture_torch_wall_i.png differ diff --git a/3dforniture/textures/forniture_torch_wall_s.png b/3dforniture/textures/forniture_torch_wall_s.png new file mode 100644 index 0000000..c811a0a Binary files /dev/null and b/3dforniture/textures/forniture_torch_wall_s.png differ diff --git a/3dforniture/textures/forniture_tree_s1.png b/3dforniture/textures/forniture_tree_s1.png new file mode 100755 index 0000000..ba55fd6 Binary files /dev/null and b/3dforniture/textures/forniture_tree_s1.png differ diff --git a/3dforniture/textures/forniture_tree_top.png b/3dforniture/textures/forniture_tree_top.png new file mode 100755 index 0000000..dda12fe Binary files /dev/null and b/3dforniture/textures/forniture_tree_top.png differ diff --git a/3dforniture/textures/forniture_wood.png b/3dforniture/textures/forniture_wood.png new file mode 100644 index 0000000..0e16fb6 Binary files /dev/null and b/3dforniture/textures/forniture_wood.png differ diff --git a/3dforniture/textures/forniture_wood_s1.png b/3dforniture/textures/forniture_wood_s1.png new file mode 100644 index 0000000..757a40f Binary files /dev/null and b/3dforniture/textures/forniture_wood_s1.png differ diff --git a/3dforniture/textures/forniture_wood_s2.png b/3dforniture/textures/forniture_wood_s2.png new file mode 100644 index 0000000..b21a089 Binary files /dev/null and b/3dforniture/textures/forniture_wood_s2.png differ diff --git a/README b/README new file mode 100644 index 0000000..567fc12 --- /dev/null +++ b/README @@ -0,0 +1,3 @@ +This a repository of Tonyka's mods, created by Leslie Viljoen. +Tonyka's profile page: http://minetest.net/forum/profile.php?id=2084 +