it says on the wiki that the side back is what is used to access the robot's inventory with the inventory controller upgrade, but when i try to use the side i get an unsupported side error. i have an item in the first slot of the inventory and it seems to work using other sides. I was just wondering if there was a different way to get the robot's inventory info or if that isn't possible.
my code is as follows:
local robot = require("robot") local sides = require("sides") local component = require("component") local inv = component.inventory_controller local term = require("term") term.clear()
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
it says on the wiki that the side back is what is used to access the robot's inventory with the inventory controller upgrade, but when i try to use the side i get an unsupported side error. i have an item in the first slot of the inventory and it seems to work using other sides. I was just wondering if there was a different way to get the robot's inventory info or if that isn't possible.
my code is as follows:
local robot = require("robot")
local sides = require("sides")
local component = require("component")
local inv = component.inventory_controller
local term = require("term")
term.clear()
print(inv.getStackInSlot(sides.back, 1)
Link to post
Share on other sites