Guest User

Untitled

a guest
Mar 14th, 2013
184
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("right")
  2.  
  3. if not items then shell.run("items") end
  4.  
  5. while true do
  6.     event, item, amount = os.pullEventRaw()
  7.     if event == "isort_item" then
  8.         print("Item ID: "..item)
  9.         print("Item name: "..items[item])
  10.         print("Amount: "..amount)
  11.     end
  12.     p.sort(3,amount)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment