Mod
Techage Digiline Converter
Connect your techage factory to luacontroller!
TA3 mesecons converter exist in techage. What about the digiline converter?
"TA4 Digiline Converter" can send messages to any TA block via digiline:
-- Enable block
digiline_send("converter", {number = 27, command = "on"})
-- Read in chest
digiline_send("converter", {number = 32, command = "count", data = 1})
-- Chest's response comes as a digiline message (if the target block responds):
-- {type = "digiline", channel = "converter", msg = {number = 32, command = "count", data = 1, result = 20}}
Or TA message can be send in chat command format: <number> <command> [<data>]:
-- Enable block
digiline_send("converter", "27 on")
-- Read in chest
digiline_send("converter", "32 count 1")
-- Chest's response comes as a digiline message (if the target block responds):
-- {type = "digiline", channel = "converter", msg = {number = 32, command = "count", data = 1, result = 20}}
The block can process incoming messages (but cannot respond to them):
-- Event format: {type = "digiline", channel = "converter", msg = {number = <src block number>, command = "<command>", data = <data>}}
-- Src block number always income as a number
if event.type == "digiline" and event.channel == "converter" and event.msg.number == 27 and event.msg.command == "on" then
port.a = true
end Links
- Source: https://github.com/MaxSMaker/techage_digiline_converter
- Issues: https://github.com/MaxSMaker/mesecons_luacontroller_term/issues
- Original ContentDB page: content.luanti.org/packages/SMax/techage_digiline_converter/
License
AGPL-3.0-only
Development state
BETA
| Version | Date | Min engine | Size | Download |
|---|---|---|---|---|
| 2024-01-23 | 2024-01-23 02:13:24 | 14.7 KB | Download |