Add hanging lantern (mesh)

Cette révision appartient à :
jp
2015-02-23 12:26:42 +01:00
Parent d009cdd649
révision c681f017aa
5 fichiers modifiés avec 2016 ajouts et 0 suppressions

Voir le fichier

@@ -3010,6 +3010,15 @@ for _, color in ipairs(dlamp_colors) do
}) })
end end
minetest.register_craft({
output = "homedecor:hanging_lantern 2",
recipe = {
{ "default:iron_lump", "default:iron_lump", "" },
{ "default:iron_lump", "homedecor:lattice_lantern_large", "" },
{ "default:iron_lump", "", "" },
},
})
if (minetest.get_modpath("technic") and minetest.get_modpath("dye") and minetest.get_modpath("bees")) then 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"} }) technic.register_separating_recipe({ input = {"bees:wax 1"}, output = {"homedecor:oil_extract 2","dye:yellow 1"} })
end end

Voir le fichier

@@ -411,3 +411,20 @@ for _, color in ipairs(dlamp_colors) do
groups = {snappy=3}, groups = {snappy=3},
}) })
end end
local hl_cbox = {
type = "fixed",
fixed = { -0.25, -0.4, -0.2, 0.25, 0.5, 0.5 },
}
homedecor.register("hanging_lantern", {
description = S("Hanging Lantern"),
mesh = "homedecor_hanging_lantern.obj",
tiles = {"homedecor_hanging_lantern.png"},
inventory_image = "homedecor_hanging_lantern_inv.png",
wield_image = "homedecor_hanging_lantern_inv.png",
groups = {snappy=3},
light_source = 11,
selection_box = hl_cbox,
collision_box = hl_cbox,
})

Fichier diff supprimé car celui-ci est trop grand Voir la Diff

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 8.8 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 4.2 KiB