Skip to content

Commit

Permalink
Add inventory images for poles, chains, stair light, hanging bulb.
Browse files Browse the repository at this point in the history
  • Loading branch information
random-geek committed Sep 18, 2020
1 parent d782f5d commit 544e93f
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions morelights/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down
Binary file added morelights/textures/morelights_chain_d_inv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added morelights/textures/morelights_chain_l_inv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added morelights/textures/morelights_pole_d_inv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added morelights/textures/morelights_pole_l_inv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions morelights_extras/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions morelights_vintage/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 544e93f

Please sign in to comment.