Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Beef's Porta-Matrix Data Sender Script--
- --finding peripherals--
- local m = peripheral.wrap("right")
- local im = peripheral.find("Induction Matrix")
- --opening modem channel--
- m.open(241)
- --core program loop--
- while (true)
- do
- --putting data into table--
- local mL = {
- maxPow = im.getMaxEnergy(),
- curPow = im.getEnergy(),
- curIn = im.getInput(),
- curOut = im.getOutput(),
- tfCap = im.getTransferCap()
- }
- --serializing data (whatever that means)--
- local matrixPkg = textutils.serialise(mL)
- --transmitting table to channel 241)
- m.transmit(241,0,matrixPkg)
- print(matrixPkg)
- --wait 250 ms--
- sleep(.25)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement