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()
- if turtle.attack() then
- stabbed = stabbed + 1
- end
- end
- function gather()
- turtle.suck()
- sleep(.1)
- end
- function deposit()
- if turtle.getItemSpace(16) < 64 then
- slot = 1
- while slot < 17 do
- turtle.select(slot)
- turtle.dropUp()
- slot = slot + 1
- sleep(.5)
- end
- end
- end
- sleep(.5)
- display()
- attack()
- gather()
- deposit()
- end
Advertisement
Add Comment
Please, Sign In to add comment