Advertisement
Guest User

check

a guest
Aug 1st, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. if redstone.getInput("right") == true then
  2.   if turtle.getItemCount(1) == 1 then
  3.      turtle.place()
  4.      print("Yes")
  5.      sleep(1)
  6.      shell.run("startup")
  7.   elseif turtle.getItemCount(1) ~= 1 then
  8.      print("No!")
  9.      sleep(1)
  10.      shell.run("startup")
  11.   end
  12. shell.run("startup")
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement