fix drops, better descriptions
This commit is contained in:
parent
0cd73a0bd0
commit
7f9596f6c9
5
init.lua
5
init.lua
@ -52,14 +52,16 @@ end
|
|||||||
for _,tube in ipairs(nixie_types) do
|
for _,tube in ipairs(nixie_types) do
|
||||||
local groups = { cracky = 2, not_in_creative_inventory = 1}
|
local groups = { cracky = 2, not_in_creative_inventory = 1}
|
||||||
local light = LIGHT_MAX-4
|
local light = LIGHT_MAX-4
|
||||||
|
local description = S("Nixie Tube ("..tube..")")
|
||||||
|
|
||||||
if tube == "off" then
|
if tube == "off" then
|
||||||
groups = {cracky = 2}
|
groups = {cracky = 2}
|
||||||
light = nil
|
light = nil
|
||||||
|
description = S("Nixie Tube")
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node("nixie_tubes:tube_"..tube, {
|
minetest.register_node("nixie_tubes:tube_"..tube, {
|
||||||
description = S("Nixie Tube ("..tube..")"),
|
description = description,
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "nixie_tube.obj",
|
mesh = "nixie_tube.obj",
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -90,6 +92,7 @@ for _,tube in ipairs(nixie_types) do
|
|||||||
action = on_digiline_receive
|
action = on_digiline_receive
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
drop = "nixie_tubes:tube_off"
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user