DiaManD

Wireless control

Mar 4th, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. i = left
  2. function redstone()
  3.  if rs.getInput(i) true do
  4.  file = fs.open(log316".save","w")
  5.  file.write("1")
  6.  file.close()
  7.  pastebin put log316
  8. end
  9. function redstoneinv()
  10.  if rs.getInput(i) true do
  11.  file=fs.open(log317".save","w"
  12.  file.write("0")
  13.  file.close()
  14.  pastebin put log317
  15. end
  16. function sleep()
  17.  sleep(6000)
  18. end
  19.  while true do
  20.   redstone()
  21.   redstoneinv()
  22.   sleep()
Advertisement
Add Comment
Please, Sign In to add comment