Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("left")
- local newScreen = peripheral.wrap("top")
- term.redirect(newScreen)
- term.clear()
- term.setCursorPos(1,1)
- modem.open(1)
- modem.transmit(1, 1, "getEnergyStored")
- print("message send")
- local event, modemSide, senderChannel,
- replyChannel, message, senderDistance = os.pullEvent("modem_message")
- print(message)
Advertisement
Add Comment
Please, Sign In to add comment