Add inventory images for poles, chains, stair light, hanging bulb.

This commit is contained in:
random-geek 2020-09-17 21:24:30 -07:00
parent d782f5d665
commit 544e93f4b6
10 changed files with 14 additions and 0 deletions

@ -6,12 +6,16 @@ minetest.register_craftitem("morelights:bulb", {
morelights.register_variants({
{name = "morelights:pole_d", description = "Metal Pole (dark)",
tiles = {"morelights_metal_dark_32.png"},
inventory_image = "morelights_pole_d_inv.png",
wield_image = "morelights_pole_d_inv.png",
on_place = function(itemstack, placer, pointed_thing)
return morelights.on_place_hanging(itemstack, placer, pointed_thing,
"morelights:pole_ceiling_d")
end},
{name = "morelights:pole_l", description = "Metal Pole (light)",
tiles = {"morelights_metal_light_32.png"},
inventory_image = "morelights_pole_l_inv.png",
wield_image = "morelights_pole_l_inv.png",
on_place = function(itemstack, placer, pointed_thing)
return morelights.on_place_hanging(itemstack, placer, pointed_thing,
"morelights:pole_ceiling_l")
@ -66,12 +70,16 @@ morelights.register_variants({
morelights.register_variants({
{name = "morelights:chain_d", description = "Metal Chain (dark)",
tiles = {"morelights_metal_dark_32.png"},
inventory_image = "morelights_chain_d_inv.png",
wield_image = "morelights_chain_d_inv.png",
on_place = function(itemstack, placer, pointed_thing)
return morelights.on_place_hanging(itemstack, placer, pointed_thing,
"morelights:chain_ceiling_d")
end},
{name = "morelights:chain_l", description = "Metal Chain (light)",
tiles = {"morelights_metal_light_32.png"},
inventory_image = "morelights_chain_l_inv.png",
wield_image = "morelights_chain_l_inv.png",
on_place = function(itemstack, placer, pointed_thing)
return morelights.on_place_hanging(itemstack, placer, pointed_thing,
"morelights:chain_ceiling_l")

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

@ -50,6 +50,8 @@ minetest.register_node("morelights_extras:stairlight", {
tiles = {"morelights_metal_dark.png"},
overlay_tiles = {"", "morelights_extras_stairlight.png",
"", "", "morelights_extras_stairlight.png"},
inventory_image = "morelights_extras_stairlight_inv.png",
wield_image = "morelights_extras_stairlight_inv.png",
paramtype = "light",
paramtype2 = "facedir",
light_source = 10,

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

@ -36,6 +36,8 @@ minetest.register_node("morelights_vintage:chain_b", {
fixed = {-1/16, -8/16, -1/16, 1/16, 8/16, 1/16}
},
tiles = {"morelights_vintage_brass_32.png"},
inventory_image = "morelights_vintage_chain_b_inv.png",
wield_image = "morelights_vintage_chain_b_inv.png",
paramtype = "light",
groups = {cracky = 3, oddly_breakable_by_hand = 3, mounted_ceiling = 1},
sounds = default.node_sound_metal_defaults(),
@ -181,6 +183,8 @@ minetest.register_node("morelights_vintage:hangingbulb", {
drawtype = "mesh",
mesh = "morelights_vintage_hangingbulb.obj",
tiles = {"morelights_vintage_hangingbulb.png^[lowpart:50:morelights_metal_dark_32.png"},
inventory_image = "morelights_vintage_hangingbulb_inv.png",
wield_image = "morelights_vintage_hangingbulb_inv.png",
use_texture_alpha = true,
collision_box = {
type = "fixed",

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B