View difference between Paste ID: X3UK0ZV7 and rATWVhy7
SHOW: | | - or go back to the newest paste.
1
while true do 
2
  if turtle.getFuelLevel() <= 0 then
3
    print("I need fuel!")
4
    print("Please give me fuel")
5
    print("then press any key")
6
    os.pullEvent("key")
7
    for slot=1,16 do
8
      print("Om nom nom")
9
      turtle.select(slot)
10
      turtle.refuel()
11
    end
12
    print("That was delicious, thank you!")
13
  end
14
  turtle.attack()
15
  print("Beating the shit out of something!")
16
  if turtle.getItemCount(16) > 0 then
17
    print("My belly is full!")
18
    print("Take a dump!")
19
    for slot=1,16 do
20
      print("This feels so good!")
21
      turtle.select(slot)
22
      turtle.dropDown()
23
    end
24
  end
25
  sleep(1)
26
end