Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getInv() --Returns total inventory of the turtle
- local c = 1
- local total = 0
- while( c < 17) do
- total = total + turtle.getItemCount(c)
- c = c + 1
- end
- return total
- end
- mon = peripheral.wrap("left")
- mon.clear()
- while(1) do
- mon.setCursorPos(1,1)
- mon.write(getInv())
- sleep(1)
- mon.clear()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement