Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local success, data = turtle.inspect()
- local time = os.time
- function sleep(n) -- seconds
- local t0 = time()
- while time() - t0 <= n do end
- end
- print("Block name: ", data.name)
- while(1) then
- sleep(5)
- if data.name == "railcraft:coke_oven" then
- turtle.turnLeft()
- turtle.suck()
- end
- success, data = turtle.inspect()
- if data.name == "immersiveengineering:wooden_device0" then
- turtle.turnRight()
- turtle.drop()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement