1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00

Add desk lamps (mesh)

This commit is contained in:
jeanpatrick.guerrero@gmail.com 2015-02-20 22:09:46 +01:00 committed by Vanessa Ezekowitz
parent 280c4a732b
commit 576a89216d
11 changed files with 1655 additions and 0 deletions

View File

@ -2997,6 +2997,19 @@ for i in ipairs(picture_dyes) do
})
end
local dlamp_colors = { "red","blue","green","violet" }
for _, color in ipairs(dlamp_colors) do
minetest.register_craft({
output = "homedecor:desk_lamp_"..color,
recipe = {
{ "", "homedecor:steel_strip", "homedecor:glowlight_small_cube_white" },
{ "", "homedecor:copper_wire", "" },
{ "homedecor:plastic_sheeting", "dye:"..color, "homedecor:plastic_sheeting" },
},
})
end
if (minetest.get_modpath("technic") and minetest.get_modpath("dye") and minetest.get_modpath("bees")) then
technic.register_separating_recipe({ input = {"bees:wax 1"}, output = {"homedecor:oil_extract 2","dye:yellow 1"} })
end

View File

@ -391,3 +391,23 @@ for _, color in ipairs(lamp_colors) do
reg_lamp("hi", "max", "h", 11, color )
reg_lamp("max", "off", "x", 14, color )
end
local dlamp_cbox = {
type = "fixed",
fixed = { -0.2, -0.5, -0.15, 0.32, 0.12, 0.15 },
}
local dlamp_colors = { "red","blue","green","violet" }
for _, color in ipairs(dlamp_colors) do
homedecor.register("desk_lamp_"..color, {
description = S("Desk Lamp ("..color..")"),
mesh = "homedecor_desk_lamp.obj",
tiles = {"homedecor_desk_lamp_"..color..".png"},
inventory_image = "homedecor_desk_lamp_inv_"..color..".png",
wield_image = "homedecor_desk_lamp_inv_"..color..".png",
selection_box = dlamp_cbox,
collision_box = dlamp_cbox,
groups = {snappy=3},
})
end

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B