Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. local component = require("component")
  2. local debug = component.debug
  3. local chest = component.chest
  4. local term = require("term")
  5.  
  6. local meta = chest.getStackInSlot(1).dmg
  7. local id = chest.getStackInSlot(1).id
  8.  
  9. term.write("Введите nbt: ")
  10. local nbt = term.read()
  11. nbt = string.gsub(nbt, "\n", "")
  12.  
  13. term.write("Введите количество: ")
  14. local count = term.read()
  15. count = string.gsub(count, "\n", "")
  16. count = tonumber(count)
  17.  
  18. print(id)
  19. print(meta)
  20.  
  21. local _, a = debug.getWorld(8).insertItem(id, count, meta, nbt, 168, 4, -26, 0)
  22. print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement