|
|
|
@@ -34,7 +34,12 @@ local tube_cbox = {
|
|
|
|
|
-- the following functions based on the so-named ones in Jeija's digilines mod
|
|
|
|
|
|
|
|
|
|
local reset_meta = function(pos)
|
|
|
|
|
minetest.get_meta(pos):set_string("formspec", "field[channel;Channel;${channel}]")
|
|
|
|
|
minetest.get_meta(pos):set_string("formspec",
|
|
|
|
|
"formspec_version[4]"..
|
|
|
|
|
"size[8,4]"..
|
|
|
|
|
"button_exit[3,2.5;2,0.5;proceed;Proceed]"..
|
|
|
|
|
"field[1.75,1.5;4.5,0.5;channel;Channel;${channel}]"
|
|
|
|
|
)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
local on_digiline_receive_std = function(pos, node, channel, msg)
|
|
|
|
@@ -88,8 +93,8 @@ end
|
|
|
|
|
|
|
|
|
|
for _,tube in ipairs(nixie_types) do
|
|
|
|
|
local groups = { cracky = 2, not_in_creative_inventory = 1}
|
|
|
|
|
local light = LIGHT_MAX-4
|
|
|
|
|
local light2 = LIGHT_MAX-5
|
|
|
|
|
local light = 10
|
|
|
|
|
local light2 = 9
|
|
|
|
|
local description = S("Nixie Tube ("..tube..")")
|
|
|
|
|
local description2 = S("Decatron ("..tube..")")
|
|
|
|
|
local description3 = S("Numitron Tube")
|
|
|
|
@@ -119,7 +124,7 @@ for _,tube in ipairs(nixie_types) do
|
|
|
|
|
"nixie_tube_anode.png",
|
|
|
|
|
"nixie_tube_glass.png",
|
|
|
|
|
},
|
|
|
|
|
use_texture_alpha = true,
|
|
|
|
|
use_texture_alpha = "blend",
|
|
|
|
|
groups = groups,
|
|
|
|
|
paramtype = "light",
|
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
@@ -154,7 +159,7 @@ for _,tube in ipairs(nixie_types) do
|
|
|
|
|
"nixie_tube_anode.png",
|
|
|
|
|
"nixie_tube_glass.png",
|
|
|
|
|
},
|
|
|
|
|
use_texture_alpha = true,
|
|
|
|
|
use_texture_alpha = "blend",
|
|
|
|
|
groups = groups,
|
|
|
|
|
paramtype = "light",
|
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
@@ -191,7 +196,7 @@ for _,tube in ipairs(nixie_types) do
|
|
|
|
|
cathode2,
|
|
|
|
|
"nixie_tube_glass.png",
|
|
|
|
|
},
|
|
|
|
|
use_texture_alpha = true,
|
|
|
|
|
use_texture_alpha = "blend",
|
|
|
|
|
groups = groups,
|
|
|
|
|
paramtype = "light",
|
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
@@ -432,7 +437,7 @@ for i in ipairs(alnum_chars) do
|
|
|
|
|
local bits = alnum_chars[i][2]
|
|
|
|
|
|
|
|
|
|
local groups = { cracky = 2, not_in_creative_inventory = 1}
|
|
|
|
|
local light = LIGHT_MAX-4
|
|
|
|
|
local light = 10
|
|
|
|
|
local description = S("Alphanumeric Nixie Tube ("..char..")")
|
|
|
|
|
|
|
|
|
|
local wires = "nixie_tube_alnum_wires.png"
|
|
|
|
@@ -460,7 +465,7 @@ for i in ipairs(alnum_chars) do
|
|
|
|
|
"nixie_tube_anode.png",
|
|
|
|
|
"nixie_tube_glass.png",
|
|
|
|
|
},
|
|
|
|
|
use_texture_alpha = true,
|
|
|
|
|
use_texture_alpha = "blend",
|
|
|
|
|
groups = groups,
|
|
|
|
|
paramtype = "light",
|
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
@@ -484,34 +489,3 @@ for i in ipairs(alnum_chars) do
|
|
|
|
|
drop = "nixie_tubes:alnum_32"
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
-- crafts
|
|
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
|
output = "nixie_tubes:tube_off 4",
|
|
|
|
|
recipe = {
|
|
|
|
|
{ "", "default:glass", "" },
|
|
|
|
|
{ "default:glass", "default:sign_wall", "default:glass" },
|
|
|
|
|
{ "default:glass", "default:mese_crystal_fragment", "default:glass" }
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
|
output = "nixie_tubes:numitron_off 4",
|
|
|
|
|
recipe = {
|
|
|
|
|
{ "", "default:glass", "" },
|
|
|
|
|
{ "default:glass", "default:copper_ingot", "default:glass" },
|
|
|
|
|
{ "default:glass", "default:mese_crystal_fragment", "default:glass" }
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
|
output = "nixie_tubes:alnum_32 4",
|
|
|
|
|
recipe = {
|
|
|
|
|
{ "", "default:glass", "" },
|
|
|
|
|
{ "default:glass", "default:sign_wall", "default:glass" },
|
|
|
|
|
{ "default:glass", "default:mese_crystal", "default:glass" }
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|