Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Press CTRL+T to stop")
- turtle.select(1)
- while true do
- turtle.select(1)
- if turtle.getItemCount(1) == 1 and turtle.getItemCount(2) > 0 then
- turtle.craft()
- turtle.select(2)
- turtle.drop()
- turtle.select(3)
- turtle.drop()
- end
- local item_details = turtle.getItemDetail(1)
- if item_details == nil then
- turtle.suckUp()
- else
- if item_details.name ~= "alltheores:invar_ore_hammer" then --Hammer name will need to be changed if using diff hammer type
- turtle.select(1)
- turtle.drop()
- turtle.suckUp()
- turtle.select(2)
- turtle.drop()
- turtle.select(3)
- turtle.drop()
- end
- end
- if turtle.getItemCount(1) == 0 then
- turtle.select(1)
- turtle.suckUp()
- end
- if turtle.getItemCount(1) == 0 then
- print("Hammer chest (above) checking again in 10 seconds (Press CTRL+T to exit).")
- os.sleep(10) -- Sleep 1 second
- end
- if turtle.getItemCount(2) == 0 then
- turtle.select(2)
- turtle.suckDown()
- end
- if turtle.getItemCount(2) == 0 then
- print("Raw ore chest (below) empty, checking again in 10 seconds (Press CTRL+T to exit).")
- os.sleep(10) -- Sleep 1 second
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment