Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Stab Bot 9000 V:1.0.0
- Slot 1 = unwanted item
- --]]
- 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)
- print("------------------------------------")
- 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 = 2
- while slot < 17 do
- turtle.select(slot)
- if turtle.compareTo(1) then
- turtle.dropDown()
- else
- turtle.dropUp()
- end
- slot = slot + 1
- sleep(.1)
- end
- turtle.select(2)
- end
- end
- sleep(.1)
- display()
- attack()
- gather()
- deposit()
- end
Advertisement
Add Comment
Please, Sign In to add comment