From 7f9596f6c9043ad47f71766fe2d5c6e924aa533d Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Tue, 9 Jun 2015 16:00:43 -0400 Subject: [PATCH] fix drops, better descriptions --- init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 4ff0586..c16cb4e 100644 --- a/init.lua +++ b/init.lua @@ -52,14 +52,16 @@ end for _,tube in ipairs(nixie_types) do local groups = { cracky = 2, not_in_creative_inventory = 1} local light = LIGHT_MAX-4 + local description = S("Nixie Tube ("..tube..")") if tube == "off" then groups = {cracky = 2} light = nil + description = S("Nixie Tube") end minetest.register_node("nixie_tubes:tube_"..tube, { - description = S("Nixie Tube ("..tube..")"), + description = description, drawtype = "mesh", mesh = "nixie_tube.obj", tiles = { @@ -90,6 +92,7 @@ for _,tube in ipairs(nixie_types) do action = on_digiline_receive }, }, + drop = "nixie_tubes:tube_off" }) end