Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Attack Turtles by: Feldore
- side = "left"
- rsOverride = true
- numDeposit = 2
- cycles = 16
- count = 0
- local function deposit()
- local i = numDeposit
- while i > 0 do
- turtle.select(i)
- turtle.drop()
- i = i-1
- end
- end
- deposit()
- while true do
- signal = (rsOverride or rs.getInput(side))
- if signal then
- if turtle.attack() then count = count + 1 end
- end
- if count > cycles then
- deposit()
- count = 0
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement