Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. run = true
  2. print("**Farming area is meant to be a rectangle**")
  3. print("**Turtle should start at the bottom left of the farm plot**")
  4.  
  5. io.write("What is the crop type: ")
  6. croptype = (tostring(io.read()))
  7. io.write("How many blocks forward: ")
  8. blocksforward = (tostring(io.read()))
  9. io.write("How many blocks to the right: ")
  10. blocksright = (tostring(io.read()))
  11.  
  12.  
  13. while run do
  14. local event, param = os.pullEvent()
  15. if event == "key" and param == 28 then
  16. break
  17.  
  18. elseif croptype == "hemp" then
  19. print("Nice")
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement