Advertisement
Guest User

test

a guest
Feb 10th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. barrel = peripheral.wrap("mcp_mobius_betterbarrel_0")
  2. mon = peripheral.wrap("front")
  3. mon.setTextScale(0.5)
  4. stack = barrel.getAllStacks()
  5. mon.clear()
  6. mon.setCursorPos(8,1)
  7. mon.write("1")
  8. mon.setCursorPos(8,3)
  9. mon.write("H")
  10. mon.setCursorPos(4,5)
  11. mon.write("Hydrogen")
  12. mon.setCursorPos(2,8)
  13.  
  14. --print(barrel.getInventorySize())
  15. for i=1, barrel.getInventorySize() do
  16. item1 = barrel.getStackInSlot(i)
  17. if item1 ~= nil then
  18.   mon.write(item1["qty"])
  19. end
  20. s=s+1
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement