Added crafting recipes for all items and more crafting ingredients

master
Andrey2470T 2019-03-31 23:48:55 +03:00
parent f4697e0cb4
commit e3c0b1bd9c
141 changed files with 500 additions and 21 deletions

View File

@ -222,8 +222,8 @@ local rgb_colors = {
["yellow"] = "#FFFF00",
["magenta"] = "#FF00FF",
["cyan"] = "#00FFFF",
["darkgreen"] = "#008000",
["darkgrey"] = "#808080",
["dark_green"] = "#008000",
["dark_grey"] = "#808080",
["grey"] = "#C0C0C0",
["brown"] = "#A52A2A",
["orange"] = "#FF4500",

View File

@ -1,6 +1,7 @@
cabs_table = {}
local modpath = minetest.get_modpath("luxury_decor")
dofile(modpath.."/materials.lua")
dofile(modpath.."/bedroom.lua")
dofile(modpath.."/chairs.lua")
dofile(modpath.."/tables.lua")
@ -10,4 +11,4 @@ dofile(modpath.."/music.lua")
dofile(modpath.."/redecorating.lua")
dofile(modpath.."/shelves.lua")
dofile(modpath.."/living_room.lua")
dofile(modpath.."/materials.lua")

View File

@ -1707,3 +1707,117 @@ minetest.register_node("luxury_decor:cooker", {
on_rightclick = function (pos, node, clicker, itemstack, pointed_thing)]]
})
minetest.register_craftitem("luxury_decor:wooden_drawer", {
description = "Wooden Drawer",
inventory_image = "wooden_drawer.png",
stack_max = 99
})
minetest.register_craft({
output = "luxury_decor:wooden_drawer",
recipe = {
{"luxury_decor:wooden_board", "luxury_decor:wooden_board", ""},
{"luxury_decor:wooden_board", "", ""},
{"default:stick", "", ""}
}
})
minetest.register_craft({
output = "luxury_decor:kitchen_wooden_cabinet_1",
recipe = {
{"luxury_decor:wooden_board", "luxury_decor:wooden_drawer", ""},
{"luxury_decor:wooden_board", "luxury_decor:wooden_drawer", ""},
{"luxury_decor:wooden_board", "", ""}
}
})
minetest.register_craft({
output = "luxury_decor:kitchen_wooden_cabinet_with_door_1",
recipe = {
{"luxury_decor:wooden_board", "luxury_decor:wooden_board", ""},
{"luxury_decor:wooden_board", "", ""},
{"luxury_decor:wooden_board", "", ""}
}
})
minetest.register_craft({
output = "luxury_decor:kitchen_wooden_cabinet_with_door_and_drawer_1",
recipe = {
{"luxury_decor:wooden_board", "luxury_decor:wooden_drawer", ""},
{"luxury_decor:wooden_board", "luxury_decor:wooden_board", ""},
{"luxury_decor:wooden_board", "", ""}
}
})
minetest.register_craft({
output = "luxury_decor:kitchen_wooden_cabinet_with_two_doors_1",
recipe = {
{"luxury_decor:wooden_board", "luxury_decor:wooden_board", ""},
{"luxury_decor:wooden_board", "luxury_decor:wooden_board", ""},
{"luxury_decor:wooden_board", "", ""}
}
})
minetest.register_craft({
output = "luxury_decor:kitchen_wooden_cabinet_with_two_doors_and_drawer_1",
recipe = {
{"luxury_decor:wooden_board", "luxury_decor:wooden_board", ""},
{"luxury_decor:wooden_board", "luxury_decor:wooden_board", ""},
{"luxury_decor:wooden_board", "luxury_decor:wooden_drawer", ""}
}
})
minetest.register_craft({
output = "luxury_decor:kitchen_wooden_half_cabinet_1",
recipe = {
{"luxury_decor:wooden_board", "luxury_decor:wooden_drawer", ""},
{"luxury_decor:wooden_board", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "luxury_decor:kitchen_wooden_threedrawer_cabinet_1",
recipe = {
{"luxury_decor:wooden_board", "luxury_decor:wooden_drawer", ""},
{"luxury_decor:wooden_board", "luxury_decor:wooden_drawer", ""},
{"luxury_decor:wooden_board", "luxury_decor:wooden_drawer", ""}
}
})
minetest.register_craft({
output = "luxury_decor:kitchen_wooden_cabinet_with_sink_1",
recipe = {
{"luxury_decor:wooden_board", "luxury_decor:siphon", "dye:grey"},
{"luxury_decor:wooden_board", "luxury_decor:plastic_sheet", ""},
{"luxury_decor:wooden_board", "default:steel_ingot", ""}
}
})
minetest.register_craft({
output = "luxury_decor:fridge_closed",
recipe = {
{"default:steelblock", "luxury_decor:plastic_sheet", "luxury_decor:plastic_sheet"},
{"luxury_decor:brass_ingot", "luxury_decor:plastic_sheet", ""},
{"dye:dark_grey", "", ""}
}
})
minetest.register_craft({
output = "luxury_decor:kitchen_tap_off",
recipe = {
{"luxury_decor:plastic_sheet", "luxury_decor:brass_ingot", ""},
{"default:steel_ingot", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "luxury_decor:cooker",
recipe = {
{"default:steel_ingot", "luxury_decor:plastic_sheet", "xpanes:pane_flat"},
{"default:steel_ingot", "luxury_decor:plastic_sheet", ""},
{"default:steel_ingot", "luxury_decor:brass_stick", ""}
}
})

View File

@ -160,3 +160,30 @@ minetest.register_node("luxury_decor:wall_glass_lamp_on", {
minetest.set_node(pos, {name="luxury_decor:wall_glass_lamp_off", param2 = node.param2})
end
})
minetest.register_craft({
output = "luxury_decor:iron_chandelier",
recipe = {
{"luxury_decor:brass_ingot", "luxury_decor:brass_ingot", "luxury_decor:brass_ingot"},
{"luxury_decor:brass_ingot", "luxury_decor:brass_ingot", "dye:grey"},
{"luxury_decor:wax_lump", "luxury_decor:wax_lump", ""}
}
})
minetest.register_craft({
output = "luxury_decor:luxury_desk_lamp_off",
recipe = {
{"luxury_decor:jungle_wooden_plank", "wool:white", ""},
{"luxury_decor:jungle_wooden_plank", "luxury_decor:incandescent_bulb", ""},
{"luxury_decor:jungle_wooden_plank", "luxury_decor:brass_ingot", ""}
}
})
minetest.register_craft({
output = "luxury_decor:wall_glass_lamp_off",
recipe = {
{"default:glass", "default:glass", ""},
{"luxury_decor:brass_ingot", "dye:orange", ""},
{"luxury_decor:incandescent_bulb", "", ""}
}
})

View File

@ -547,6 +547,15 @@ for color, rgb_color in pairs(sofas_rgb_colors) do
return itemstack
end
})
minetest.register_craft({
output = "luxury_decor:simple_"..color.."_armchair_with_"..pillow_color.."_pillow",
recipe = {
{"luxury_decor:wooden_board", "wool:white", "dye:"..color},
{"luxury_decor:wooden_board", "wool:white", "dye:"..pillow_color},
{"default:stick", "", ""}
}
})
end
end
@ -801,6 +810,17 @@ for ind, sofa_count in pairs({"1", "2", "3", "4", "5"}) do
end
end
})
if sofa_count == "1" then
minetest.register_craft({
output = "luxury_decor:simple_"..sofa_count.."_"..color.."_sofa",
recipe = {
{"luxury_decor:wooden_board", "luxury_decor:wooden_board", "wool:white"},
{"luxury_decor:wooden_board", "dye:"..color, "dye:grey"},
{"default:stick", "luxury_decor:brass_stick", ""}
}
})
end
end
end
@ -879,6 +899,36 @@ for ind, footstool_type in pairs({"small", "middle", "long"}) do
end
})
if footstool_type == "small" then
minetest.register_craft({
output = "luxury_decor:simple_"..color.."_"..footstool_type.."_footstool",
recipe = {
{"luxury_decor:wooden_board", "wool:white", "dye:"..color},
{"", "", ""},
{"", "", ""}
}
})
elseif footstool_type == "middle" then
minetest.register_craft({
output = "luxury_decor:simple_"..color.."_"..footstool_type.."_footstool",
recipe = {
{"luxury_decor:wooden_board", "wool:white", "dye:"..color},
{"luxury_decor:wooden_plank", "farming:string", "farming:string"},
{"", "", ""}
}
})
elseif footstool_type == "long" then
minetest.register_craft({
output = "luxury_decor:simple_"..color.."_"..footstool_type.."_footstool",
recipe = {
{"luxury_decor:wooden_board", "wool:white", "dye:"..color},
{"luxury_decor:wooden_board", "wool:white", "dye:"..color},
{"luxury_decor:wooden_plank", "", ""}
}
})
end
end
end
@ -914,8 +964,15 @@ minetest.register_node("luxury_decor:simple_wooden_wall_clock", {
},
sounds = default.node_sound_wood_defaults()
})
minetest.register_craft({
output = "luxury_decor:simple_wooden_wall_clock",
recipe = {
{"luxury_decor:jungle_wooden_board", "luxury_decor:jungle_wooden_board", ""},
{"luxury_decor:jungle_wooden_plank", "luxury_decor:brass_stick", "luxury_decor:dial"},
{"default:copper_ingot", "default:steel_ingot", ""}
}
})

View File

@ -34,6 +34,115 @@ minetest.register_craft({
}
})
minetest.register_craftitem("luxury_decor:bucket_oil", {
description = "Bucket Oil",
inventory_image = "bucket_oil.png",
stack_max = 99
})
minetest.register_node("luxury_decor:oil_source", {
description = "Oil Source",
drawtype = "liquid",
tiles = {"oil_source.png"},
alpha = 160,
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "source",
liquid_alternative_flowing = "luxury_decor:oil_flowing",
liquid_alternative_source = "luxury_decor:oil_source",
liquid_viscosity = 5,
liquid_range = 5,
damage_per_second = 1,
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, cools_lava = 1},
on_rightclick = function (pos, node, player, itemstack, pointed_thing)
if itemstack:get_name() == "bucket:bucket_empty" then
minetest.remove_node(pos)
itemstack:take_item()
local stack = ItemStack("luxury_decor:bucket_oil")
local inv = player:get_inventory()
inv:set_stack("main", 1, stack)
stack:add_item("luxury_decor:bucket_oil")
return itemstack
end
end
})
minetest.register_node("luxury_decor:oil_flowing", {
description = "Flowing Oil",
drawtype = "flowingliquid",
tiles = {"oil_source.png"},
special_tiles = {
{
name = "oil_source_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 5,
},
},
{
name = "oil_source_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 5,
},
},
},
alpha = 160,
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "flowing",
liquid_alternative_flowing = "luxury_decor:oil_flowing",
liquid_alternative_source = "luxury_decor:oil_source",
liquid_viscosity = 5,
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, not_in_creative_inventory = 1,
cools_lava = 1},
on_rightclick = function (pos, node, player, itemstack, pointed_thing)
if itemstack:get_name() == "bucket:bucket_empty" then
minetest.remove_node(pos)
itemstack:take_item()
local stack = ItemStack("luxury_decor:bucket_oil")
local inv = player:get_inventory()
inv:set_stack("main", 1, stack)
stack:add_item("luxury_decor:bucket_oil")
return itemstack
end
end
})
minetest.register_craftitem("luxury_decor:paraffin_cake", {
description = "Paraffin Cake",
inventory_image = "paraffin.png",
stack_max = 99
})
minetest.register_craftitem("luxury_decor:wax_lump", {
description = "Wax Lump",
inventory_image = "wax_lump.png",
stack_max = 99
})
minetest.register_craftitem("luxury_decor:brass_ingot", {
description = "Brass Ingot",
inventory_image = "brass_ingot.png",
@ -81,6 +190,49 @@ minetest.register_craftitem("luxury_decor:pine_wooden_board", {
inventory_image = "pine_board.png",
stack_max = 99
})
minetest.register_craftitem("luxury_decor:plastic_sheet", {
description = "Plastic Sheet",
inventory_image = "plastic_sheet.png",
stack_max = 99
})
minetest.register_craftitem("luxury_decor:incandescent_bulb", {
description = "Incandescent Bulb",
inventory_image = "incandescent_bulb.png",
stack_max = 99
})
minetest.register_craftitem("luxury_decor:wolfram_lump", {
description = "Wolfram Lump",
inventory_image = "wolfram_lump.png",
stack_max = 99
})
minetest.register_craftitem("luxury_decor:wolfram_ingot", {
description = "Wolfram Ingot",
inventory_image = "wolfram_ingot.png",
stack_max = 99
})
minetest.register_craftitem("luxury_decor:wolfram_wire_reel", {
description = "Wolfram Wire Reel",
inventory_image = "wolfram_wire_reel.png",
stack_max = 99
})
minetest.register_craftitem("luxury_decor:dial", {
description = "Dial",
inventory_image = "dial.png",
stack_max = 99
})
minetest.register_craftitem("luxury_decor:siphon", {
description = "Siphon",
inventory_image = "siphon.png",
stack_max = 99
})
minetest.register_node("luxury_decor:zinc_ore", {
description = "Zinc Ore",
tiles = {"default_stone.png^mineral_zinc.png"},
@ -99,6 +251,24 @@ minetest.register_node("luxury_decor:zinc_ore", {
end
})
minetest.register_node("luxury_decor:wolfram_ore", {
description = "Wolfram Ore",
tiles = {"default_stone.png^mineral_wolfram.png"},
is_ground_content = true,
paramtype = "light",
light_source = 2,
groups = {cracky=3.5, oddly_breakable_by_hand=1},
sounds = default.node_sound_defaults(),
after_dig_node = function(pos, node, player)
local random_items_amount_to_give = math.random(4)
local stack = ItemStack("luxury_decor:wolfram_lump")
for give_item = 1, random_items_amount_to_give do
stack:add_item("luxury_decor:wolfram_lump")
end
end
})
minetest.register_ore({
ore_type = "scatter",
ore = "luxury_decor:zinc_ore",
@ -110,6 +280,71 @@ minetest.register_ore({
height_max = -125
})
minetest.register_ore({
ore_type = "scatter",
ore = "luxury_decor:wolfram_ore",
wherein = "default:stone",
clust_scarcity = 200,
clust_num_ores = 4,
clust_size = 2,
height_min = -31000,
height_max = -150
})
minetest.register_ore({
ore_type = "scatter",
ore = "luxury_decor:oil_source",
wherein = "default:stone",
clust_scarcity = 400,
clust_num_ores = 3,
clust_size = 1,
height_min = -31000,
height_max = -25
})
minetest.register_craft({
type = "cooking",
output = "luxury_decor:paraffin_cake 2",
recipe = "bucket:bucket_oil",
cooktime = 15--[[,
replacements = {"bucket:bucket_empty"}]]
})
minetest.register_craft({
type = "cooking",
output = "luxury_decor:wax_lump",
recipe = "bucket:paraffin_cake",
cooktime = 8
})
minetest.register_craft({
type = "cooking",
output = "luxury_decor:plastic_sheet",
recipe = "default:leaves"
})
minetest.register_craft({
output = "luxury_decor:incandescent_bulb 3",
recipe = {
{"luxury_decor:plastic_sheet", "luxury_decor:wolfram_wire_reel", ""},
{"luxury_decor:plastic_sheet", "default:steel_ingot", ""},
{"", "", ""}
}
})
minetest.register_craft({
type = "cooking",
output = "luxury_decor:wolfram_ingot",
recipe = "luxury_decor:wolfram_lump",
cooktime = 18
})
minetest.register_craft({
type = "shapeless",
output = "luxury_decor:wolfram_wire_reel",
recipe = {"luxury_decor:wolfram_ingot"}
})
minetest.register_craft({
type = "shapeless",
output = "luxury_decor:brass_stick 3",
@ -177,3 +412,21 @@ minetest.register_craft({
{"", "luxury_decor:saw"}
}
})
minetest.register_craft({
output = "luxury_decor:siphon",
recipe = {
{"luxury_decor:plastic_sheet", "luxury_decor:plastic_sheet", ""},
{"default:copper_ingot", "", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "luxury_decor:dial 2",
recipe = {
{"luxury_decor:plastic_sheet", "dye:black", ""},
{"luxury_decor:brass_stick", "", ""},
{"dye:yellow", "", ""}
}
})

BIN
models/blend.tar.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -10,4 +10,4 @@ Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2
map_Kd /home/andrey/opt/minetest/mods/luxury_decor/textures/simple_sofa.png
map_Kd /home/andrey/opt/minetest_5.0.0-rc2/mods/luxury_decor/textures/simple_sofa.png

Some files were not shown because too many files have changed in this diff Show More