Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("bottom")
- local compNum = "1"
- modem.open(00003)
- redstone.setOutput("front",false)
- redstone.setOutput("top",false)
- if fs.exists("save_data.lua") then
- local h = fs.open("save_data.lua", "r")
- local data = h.readAll()
- h.close()
- compNum = data
- end
- while true do
- if redstone.getInput("front") then
- modem.transmit(00003,00003,compNum)
- sleep(1.5)
- end
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement