Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Stab Bot 9000 V:1.0.1
- --Skeleton Edition--
- Slot 1 = Bows
- Slot 2 = Bones
- Slot 3 = Arrows
- --]]
- local stabbed = 0
- local arrows = 0
- local bones = 0
- local bows = 0
- local other = 0
- while true do
- function display()
- term.clear()
- term.setCursorPos(1,1)
- print("Stab Bot 9000 V1.0.1")
- print("------------------------------------")
- print("Number of mobs stabbed: " ..stabbed)
- print("Number of arrows gathered: " ..arrows)
- print("Number of bones gathered: " ..bones)
- print("Number of bows burnt: " ..bows)
- print("Number of other items gathered: " ..other)
- print("------------------------------------")
- end
- function attack()
- if turtle.attack() then
- stabbed = stabbed + 1
- end
- end
- function gather()
- turtle.suck()
- end
- function deposit()
- if turtle.getItemSpace(16) < 64 then
- for inventory = 4, 16 do
- turtle.select(inventory)
- if turtle.compareTo(1) then
- turtle.dropDown()
- bows = bows + 1
- elseif turtle.compareTo(2) then
- turtle.dropUp()
- bones = bones + 1
- elseif turtle.compareTo(3) then
- turtle.turnRight()
- turtle.drop()
- arrows = arrows + 1
- turtle.turnLeft()
- else
- turtle.turnLeft()
- turtle.drop()
- other = other + 1
- turtle.turnRight()
- end
- end
- end
- turtle.select(4)
- end
- sleep(.1)
- display()
- attack()
- gather()
- deposit()
- end
Advertisement
Add Comment
Please, Sign In to add comment