Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
component:inventory_controller [2015/01/22 03:33]
shawniac
component:inventory_controller [2015/02/07 01:28]
shawniac
Line 49: Line 49:
 Example: Example:
  
-Print informations ​about the item in the position indicated by **slot**+Print meta-info ​about the item in the position indicated by [[http://​ocdoc.cil.li/​api:​robot|slot]]
  
 ```lua ```lua
Line 55: Line 55:
 local sides = require("​sides"​) local sides = require("​sides"​)
    
--- get information about the item in <​slot>​ of the robot'​s own inventory 
 local slot = 1 local slot = 1
 local item = component.inventory_controller.getStackInSlot(sides.back,​ slot) local item = component.inventory_controller.getStackInSlot(sides.back,​ slot)