Compare commits
2 Commits
2021-01-30
...
2aa9e37e12
Author | SHA1 | Date | |
---|---|---|---|
2aa9e37e12 | |||
|
d5cd8c776f |
@@ -1,2 +1 @@
|
|||||||
default
|
|
||||||
digilines
|
digilines
|
||||||
|
13
init.lua
13
init.lua
@@ -34,7 +34,12 @@ local tube_cbox = {
|
|||||||
-- the following functions based on the so-named ones in Jeija's digilines mod
|
-- the following functions based on the so-named ones in Jeija's digilines mod
|
||||||
|
|
||||||
local reset_meta = function(pos)
|
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
|
end
|
||||||
|
|
||||||
local on_digiline_receive_std = function(pos, node, channel, msg)
|
local on_digiline_receive_std = function(pos, node, channel, msg)
|
||||||
@@ -88,8 +93,8 @@ 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 = 10
|
||||||
local light2 = LIGHT_MAX-5
|
local light2 = 9
|
||||||
local description = S("Nixie Tube ("..tube..")")
|
local description = S("Nixie Tube ("..tube..")")
|
||||||
local description2 = S("Decatron ("..tube..")")
|
local description2 = S("Decatron ("..tube..")")
|
||||||
local description3 = S("Numitron Tube")
|
local description3 = S("Numitron Tube")
|
||||||
@@ -432,7 +437,7 @@ for i in ipairs(alnum_chars) do
|
|||||||
local bits = alnum_chars[i][2]
|
local bits = alnum_chars[i][2]
|
||||||
|
|
||||||
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 = 10
|
||||||
local description = S("Alphanumeric Nixie Tube ("..char..")")
|
local description = S("Alphanumeric Nixie Tube ("..char..")")
|
||||||
|
|
||||||
local wires = "nixie_tube_alnum_wires.png"
|
local wires = "nixie_tube_alnum_wires.png"
|
||||||
|
Reference in New Issue
Block a user