Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local count = 0
- while true do
- print("Checking Sapling")
- local success, data = turtle.inspect()
- if success then
- print("Block Found, ", data.name)
- if data.name == "Natura:florasapling" then
- count = 0
- print("Found Sapling. Fertilizing")
- while turtle.inspect() do
- turtle.place()
- end
- print("Fertilized. Waiting 20s")
- print()
- os.sleep(20)
- rs.setOutput("left", true)
- os.sleep(1)
- rs.setOutput("left", false)
- else
- print("Block Not Sapling. Waiting 10s")
- os.sleep(10)
- end
- else
- print("No Block. Waiting 10s")
- count = count + 1
- os.sleep(10)
- if count == 3 then
- rs.setOutput("left", true)
- os.sleep(1)
- rs.setOutput("left", false)
- count = 0
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement