Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local debug = component.debug
- local chest = component.chest
- local term = require("term")
- local meta = chest.getStackInSlot(1).dmg
- local id = chest.getStackInSlot(1).id
- term.write("Введите nbt: ")
- local nbt = term.read()
- nbt = string.gsub(nbt, "\n", "")
- term.write("Введите количество: ")
- local count = term.read()
- count = string.gsub(count, "\n", "")
- count = tonumber(count)
- print(id)
- print(meta)
- local _, a = debug.getWorld(8).insertItem(id, count, meta, nbt, 168, 4, -26, 0)
- print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement