while true do
while redstone.getInput("back") do
while not redstone.getInput("back") do
turtle.attack()
sleep(.1)
end
sleep(.5)