Advertisement
1ng0

Mele Turtle - Redstone controlled

May 24th, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. while true do
  2. while redstone.getInput("left") do
  3. turtle.attack()
  4. if turtle.getItemCount(13)>0 then
  5. for vSlot = 16, 1, -1 do
  6. turtle.select(vSlot)
  7. turtle.dropDown()
  8. print("Empty slot" .. turtle.getSelectedSlot())
  9. turtle.select(turtle.getSelectedSlot()+1)
  10. term.clear()
  11. term.setCursorPos(1,1)
  12. sleep(0.1)
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement