Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term = require("term")
- term.clear()
- term.setCursor(1,1)
- component = require("component")
- d = component.debug
- w = d.getWorld(0)
- while true do
- io.write("")
- text = io.read()
- id, count = text:match("([^,]+),([^,]+)")
- print(id, count)
- print(w.insertItem(id, tonumber(count), 0, "{}", -47, 64, 181, 0))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement