Advertisement
denvys5

Specially for DiaMan 2

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