CompCrafter

Untitled

Mar 25th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. local component = require("component")
  2. local sides = require("sides")
  3.  
  4. local slot = 1
  5. local item = component.inventory_controller.getStackInInternalSlot(slot)
  6.  
  7. if item then
  8. print("Item name: ", item.name)
  9. print("Item count: ", item.size)
  10. print("Item damage: ", item.damage)
  11. else
  12. print("Slot " .. slot .. " is empty")
  13. end
Add Comment
Please, Sign In to add comment