Wield images for raillike nodes, remove inventory images for nodes that never appear in the inventory.

This commit is contained in:
Anthony Zhang
2012-02-09 22:08:49 -05:00
parent f54166af45
commit e94941931d
3 changed files with 8 additions and 9 deletions

View File

@@ -1,17 +1,18 @@
--TEMPEREST-PLUG
minetest.register_node("jeija:mesecon_plug", {
description = "Plug",
drawtype = "raillike",
paramtype = "light",
is_ground_content = true,
tile_images = {"jeija_mesecon_plug.png"},
inventory_image = "jeija_mesecon_plug.png",
wield_image = "jeija_mesecon_plug.png",
material = minetest.digprop_constanttime(0.1),
walkable = false,
selection_box = {
type = "fixed",
},
description = "Plug",
})
mesecon:register_on_signal_on(function(pos, node)
@@ -120,6 +121,7 @@ minetest.register_node("jeija:mesecon_socket_off", {
is_ground_content = true,
tile_images = {"jeija_mesecon_socket_off.png"},
inventory_image = "jeija_mesecon_socket_off.png",
wield_image = "jeija_mesecon_socket_off.png",
material = minetest.digprop_constanttime(0.1),
walkable = false,
selection_box = {
@@ -132,7 +134,6 @@ minetest.register_node("jeija:mesecon_socket_on", {
paramtype = "light",
is_ground_content = true,
tile_images = {"jeija_mesecon_socket_on.png"},
inventory_image = "jeija_mesecon_socket_on.png",
material = minetest.digprop_constanttime(0.1),
walkable = false,
selection_box = {
@@ -170,6 +171,7 @@ minetest.register_node("jeija:mesecon_inverter_off", {
is_ground_content = true,
tile_images = {"jeija_mesecon_inverter_off.png"},
inventory_image = "jeija_mesecon_inverter_off.png",
wield_image = "jeija_mesecon_inverter_off.png",
material = minetest.digprop_constanttime(0.1),
walkable = false,
selection_box = {
@@ -182,7 +184,6 @@ minetest.register_node("jeija:mesecon_inverter_on", {
paramtype = "light",
is_ground_content = true,
tile_images = {"jeija_mesecon_inverter_on.png"},
inventory_image = "jeija_mesecon_inverter_on.png",
material = minetest.digprop_constanttime(0.1),
walkable = false,
selection_box = {