Kaerius

Kill

Dec 23rd, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. -- данная программа рассчитана на клок генератор
  2. while true do
  3.  os.pullEvent("redstone")
  4.  if turtle.detect() == true then
  5.   turtle.attack()
  6.  end
  7.  for n=1,16 do
  8.   nCount = turtle.getItemCount(n)
  9.   if nCount > 0 then
  10.    turtle.select(n)
  11.    turtle.dropUp()
  12.   end
  13.  end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment