Compare commits
4 Commits
2018-11-09
...
2aa9e37e12
Author | SHA1 | Date | |
---|---|---|---|
2aa9e37e12 | |||
|
d5cd8c776f | ||
|
dddb52c454 | ||
|
50a0cf8bc8 |
@@ -1,2 +1 @@
|
||||
default
|
||||
digilines
|
||||
|
15
init.lua
15
init.lua
@@ -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,10 +93,11 @@ 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")
|
||||
local cathode = "nixie_tube_cathode_off.png^nixie_tube_cathode_"..tube..".png"
|
||||
local cathode2 = "decatron_cathode_"..tube..".png"
|
||||
local cathode3 = "numitron_filaments.png^numitron_"..tube..".png"
|
||||
@@ -102,7 +108,6 @@ for _,tube in ipairs(nixie_types) do
|
||||
light2 = nil
|
||||
description = S("Nixie Tube")
|
||||
description2 = S("Decatron")
|
||||
description3 = S("Numitron Tube")
|
||||
cathode = "nixie_tube_cathode_off.png"
|
||||
cathode2 = "nixie_tube_blank.png"
|
||||
cathode3 = "numitron_filaments.png"
|
||||
@@ -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"
|
||||
|
Reference in New Issue
Block a user