Advertisement
Guest User

chest

a guest
Dec 16th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. term = require("term")
  2. term.clear()
  3. term.setCursor(1,1)
  4. component = require("component")
  5. d = component.debug
  6. w = d.getWorld(0)
  7. while true do
  8.   io.write("")
  9.   text = io.read()
  10.   id, count = text:match("([^,]+),([^,]+)")
  11.   print(id, count)
  12.   print(w.insertItem(id, tonumber(count), 0, "{}", -47, 64, 181, 0))
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement