Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- me = peripheral.wrap("left")
- local cell
- print("Wprowadz Numer Dysku...")
- cell = read()
- print("Dysk="..cell)
- function meCellName()
- cellname = me.getStackInSlot(cell).display_name
- print(cellname)
- end
- function meTotalSpace()
- totalSpace = me.getStackInSlot(cell).me_cell.totalBytes
- print("Pojemonsc=".. totalSpace)
- end
- function meSpaceLeft()
- spaceLeft = me.getStackInSlot(cell).me_cell.freeBytes
- print("Zostalo=".. spaceLeft)
- end
- meCellName()
- meTotalSpace()
- meSpaceLeft()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement