Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local stabbed = 0
- local slot = 0
- while true do
- function display()
- term.clear()
- term.setCursorPos(1,1)
- print("Stab Bot 9000 V1.0.0")
- print("Number of mobs stabbed: " ..stabbed)
- end
- function attack()
- turtle.attack()
- sleep(.1)
- if turtle.attack() then
- stabbed = stabbed + 1
- end
- end
- function gather()
- turtle.suck()
- sleep(.1)
- end
- function deposit()
- if turtle.getItemCount(16) < 1 then
- turtle.turnRight()
- sleep(1)
- yield(1)
- turtle.select(1)
- slot = 1
- while slot > 16 do
- turtle.drop()
- sleep(1)
- while turtle.drop(false) do
- display()
- print("Chest is full empty to continue stabbing")
- sleep(5)
- end
- slot = slot + 1
- end
- turtle.select(1)
- turtle.turnLeft()
- end
- end
- --display()
- --attack()
- --gather()
- deposit()
- end
Advertisement
Add Comment
Please, Sign In to add comment