Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local storageComputerID = 18
- local chest = "enderstorage:ender_chest_6"
- local slot = 27
- local count = 64
- rednet.open("back")
- print("Storing " .. tostring(count) .. " " .. chest .. " slot " .. tostring(slot))
- rednet.send(storageComputerID, {
- ["action"] = "store",
- ["instructionRef"] = "BillPhone",
- ["chest"] = chest,
- ["slot"] = slot,
- ["count"] = count
- }, "inv")
- while true do
- local id, msg = rednet.receive("invResp")
- if id == storageComputerID then
- if msg["status"] == "success" then
- print("Stored " .. tostring(msg["moved"]) .. " " .. chest .. " slot " .. tostring(slot))
- return msg["moved"]
- else
- print("NOT Stored " .. chest .. " slot " .. tostring(slot) .. " - " .. msg["message"])
- return 0
- end
- end
- sleep(0)
- end
Add Comment
Please, Sign In to add comment