Skip to main content
Topic: Simple stationary turtle attack script (Read 2557 times) previous topic - next topic

Simple stationary turtle attack script

Code: [Select]
while true do
  while not redstone.getInput("back") do
    turtle.attack()
    while turtle.suck() do
    end
    for i=1,16 do
      if turtle.getItemCount(i) > 0
        turtle.select(i)
        turtle.dropDown()
      end
    end
    sleep(.1)
  end
  sleep(.3)
end

Pastebin url

Fairly straightforward

Turtle attacks, checks for drops, sends anything it finds to the chest below it, repeat. If it receives a redstone signal to its back, it stops.

To grab, run

pastebin get StUi0XXz assault

or to boot on server reboot

pastebin get StUi0XXz startup

Then run the resulting command.

Note that case matters for the StUi0XXz part.