Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- run = true
- print("**Farming area is meant to be a rectangle**")
- print("**Turtle should start at the bottom left of the farm plot**")
- io.write("What is the crop type: ")
- croptype = (tostring(io.read()))
- io.write("How many blocks forward: ")
- blocksforward = (tostring(io.read()))
- io.write("How many blocks to the right: ")
- blocksright = (tostring(io.read()))
- while run do
- local event, param = os.pullEvent()
- if event == "key" and param == 28 then
- break
- elseif croptype == "hemp" then
- print("Nice")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement