ecco7777

CC Bloodmagic auto blank slate

Oct 2nd, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. p=peripheral.wrap("front")
  2. while true do
  3. info=p.getInfo()
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. term.write(info.contents.amount)
  7. item=p.getStackInSlot(1)
  8.     if item~=nil then
  9.         if item.display_name=="Blank Slate" then
  10.             turtle.suck()
  11.         end
  12.     else
  13.     turtle.drop()
  14.     end
  15. sleep(1)
  16. end
Add Comment
Please, Sign In to add comment