Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("Super Assassin Turtle v0.90")
- print("made by Landstryder")
- print("...")
- print("Starting the endless cycle of killing for you!")
- local totalkills=0
- local itemcount=0
- local kills=0
- local items=0
- local killed=0
- local totalkilled=0
- while true do --start the program loop
- kills=0
- for it=1,60 do --set how many repeats each cycle
- if turtle.attack() then sleep(1)
- --print(enemy detected...")
- kills=kills+1
- else sleep(5)
- --print("waiting for enemy...")
- end
- end
- totalkills=kills+totalkills
- items=0 --set the item count ot 0 for the cycle
- for it =1,16 do
- items=items+turtle.getItemCount(it)
- turtle.select(it)
- turtle.dropDown()
- end
- itemcount=itemcount+items
- killed=kills/2
- totalkilled=totalkills/2
- print("Killed about "..killed.." enemies this cycle")
- print("Collected "..items.." items this cycle")
- print("Killed about "..totalkilled.." enemies so far")
- print("Collected "..itemcount.." items so far")
- print("back to work...")
- print("...")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement