minetest_hades/mods/3dforniture/crafting.lua

263 lines
5.8 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.
]]--
-- Deco Home
--Table
minetest.register_craft( {
output = '3dforniture:table',
recipe = {
{ 'default:wood','default:wood', 'default:wood' },
{ 'default:stick', '', 'default:stick' },
},
})
minetest.register_craft( {
output = '3dforniture:table_black',
recipe = {
{ 'default:colwood_black','default:colwood_black', 'default:colwood_black' },
{ 'default:stick', '', 'default:stick' },
},
})
minetest.register_craft( {
output = '3dforniture:table_white',
recipe = {
{ 'default:colwood_white','default:colwood_white', 'default:colwood_white' },
{ 'default:stick', '', 'default:stick' },
},
})
minetest.register_craft({
type = 'fuel',
recipe = '3dforniture:table',
burntime = 30,
})
--Chair
minetest.register_craft( {
output = '3dforniture:chair 2',
recipe = {
{ 'default:stick',''},
{ 'default:wood','default:wood' },
{ 'default:stick','default:stick' },
},
})
minetest.register_craft( {
output = '3dforniture:chair_black 2',
recipe = {
{ 'default:stick',''},
{ 'default:colwood_black','default:colwood_black' },
{ 'default:stick','default:stick' },
},
})
minetest.register_craft( {
output = '3dforniture:chair_white 2',
recipe = {
{ 'default:stick',''},
{ 'default:colwood_white','default:colwood_white' },
{ 'default:stick','default:stick' },
},
})
minetest.register_craft({
type = 'fuel',
recipe = '3dforniture:chair',
burntime = 15,
})
--Armchair
minetest.register_craft( {
output = '3dforniture:armchair 2',
recipe = {
{ 'default:wood',''},
{ 'default:wood','wool:black' },
{ 'default:wood','default:wood' },
},
})
minetest.register_craft( {
output = '3dforniture:armchair_white 2',
recipe = {
{ 'default:wood',''},
{ 'default:wood','wool:white' },
{ 'default:wood','default:wood' },
},
})
minetest.register_craft( {
output = '3dforniture:armchair_blue 2',
recipe = {
{ 'default:wood',''},
{ 'default:wood','wool:blue' },
{ 'default:wood','default:wood' },
},
})
minetest.register_craft( {
output = '3dforniture:armchair_brown 2',
recipe = {
{ 'default:wood',''},
{ 'default:wood','wool:brown' },
{ 'default:wood','default:wood' },
},
})
minetest.register_craft( {
output = '3dforniture:armchair_red 2',
recipe = {
{ 'default:wood',''},
{ 'default:wood','wool:red' },
{ 'default:wood','default:wood' },
},
})
minetest.register_craft( {
output = '3dforniture:armchair_green 2',
recipe = {
{ 'default:wood',''},
{ 'default:wood','wool:dark_green' },
{ 'default:wood','default:wood' },
},
})
minetest.register_craft({
type = 'fuel',
recipe = '3dforniture:armchair',
burntime = 30,
})
--Table Lamp
minetest.register_craft( {
output = '3dforniture:table_lamp_off',
recipe = {
{'default:paper','default:torch' ,'default:paper'},
{'','default:stick',''},
{'','stairs:slab_wood',''},
},
})
minetest.register_craft({
type = 'fuel',
recipe = '3dforniture:table_lamp_off',
burntime = 10,
})
-- Bathroom Kit
--Toilet
minetest.register_craft( {
output = '3dforniture:toilet',
recipe = {
{'default:clay','homedecor:plastic_base',''},
{ 'default:clay','default:clay', '' },
{ 'pipeworks:pipe_1_empty', 'pipeworks:pump_off', '' },
},
})
--Sink
minetest.register_craft( {
output = '3dforniture:sink',
recipe = {
{ 'default:clay','default:clay', 'default:clay' },
{ '','pipeworks:pipe_1_empty', '' },
},
})
--Taps
minetest.register_craft( {
output = '3dforniture:taps',
recipe = {
{ 'default:bronze_ingot','pipeworks:pipe_1_empty', 'default:bronze_ingot' },
},
})
--Shower Tray
minetest.register_craft( {
output = '3dforniture:shower_tray',
recipe = {
{ 'default:steel_ingot','default:steel_ingot', 'default:steel_ingot' },
{ '','pipeworks:pipe_1_empty', '' },
},
})
--Shower Head
minetest.register_craft( {
output = '3dforniture:shower_head',
recipe = {
{'pipeworks:pipe_1_empty', 'default:bronze_ingot'},
},
})
-- Medieval Forniture
--Bars
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' },
},
})
-- L Binding Bars
minetest.register_craft( {
output = '3dforniture:L_binding_bars 4',
recipe = {
{ '3dforniture:bars','' },
{ '3dforniture:bars','3dforniture:bars' },
},
})
--Chains
minetest.register_craft( {
output = '3dforniture:chains 4',
recipe = {
{'','default:steel_ingot',''},
{ 'default:steel_ingot','', 'default:steel_ingot' },
{ '', 'default:steel_ingot', '' },
},
})
--Torch Wall
--minetest.register_craft( {
--output = '3dforniture:torch_wall',
--recipe = {
--{ 'default:coal_lump' },
--{ 'default:steel_ingot' },
--},
--})