add laturtle

This commit is contained in:
LordMZTE 2021-11-20 14:37:30 +01:00
parent b819508546
commit 1618991a63
1 changed files with 28 additions and 0 deletions

28
classic_tech/laturtle.lua Normal file
View File

@ -0,0 +1,28 @@
-- Turtle program for industrial foregoing latex.
-- Setup:
-- 1. Place turtle under block to place log
-- 2. Add unstripped logs into the first slot of the turtle
-- 3. Add stripped logs into the second slot of the turtle
while true do
local unstripped_detail = turtle.getItemDetail(1)
local stripped_detail = turtle.getItemDetail(2)
if unstripped_detail == nil then
print "Out of Logs!"
sleep(30)
elseif stripped_detail == nil then
print "No stripped Log to compare against!"
sleep(10)
else
turtle.select(2)
if turtle.compareUp() then
turtle.digUp()
end
turtle.select(1)
turtle.placeUp()
sleep(2)
end
end