Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component");
- local database = component.database;
- local chest = component.inventory_controller;
- function getInventorySide()
- for i=0, 5, 1 do
- if chest.getInventorySize(i) ~= nil then return i end
- end
- end
- print(getInventorySide())
- local chestSide = getInventorySide();
- chest.store(chestSide, 1, database.address, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement