Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,2)
- print("Storage Counter")
- print("A program devoloped by joelzaper.")
- mon = peripheral.wrap("top")
- net = peripheral.wrap("bottom")
- mon.setTextScale(1.5)
- input = function()
- saplings = net.countOfItemType(6,0)
- wood = net.countOfItemType(17,0)
- apples = net.countOfItemType(260,0)
- charcoal = net.countOfItemType(263,1)
- end
- fg = function()
- mon.setTextColor(colors.green)
- end
- fw = function()
- mon.setTextColor(colors.white)
- end
- settings = function()
- event,side,x,y = os.pullEvent("monitor_touch")
- if x == 19 and y == 8 then
- mon.setCursorPos(6,8)
- mon.setTextColor(colors.red)
- mon.write("Settings Menu Unfinished.")
- end
- end
- while true do
- input()
- mon.clear()
- mon.setTextColor(colors.red)
- mon.setCursorPos(19,8)
- mon.write("S")
- fw()
- mon.setTextColor(colors.blue)
- mon.setCursorPos(2,1)
- mon.write("Currently Storing")
- mon.setCursorPos(1,3)
- mon.setTextScale(1.5)
- fw()
- mon.write("Saplings: ")
- fg()
- mon.write(saplings)
- mon.setCursorPos(1,4)
- fw()
- mon.write("Wood: ")
- fg()
- mon.write(wood)
- fw()
- mon.setCursorPos(1,5)
- mon.write("Apples: ")
- fg()
- mon.write(apples)
- fw()
- mon.setCursorPos(1,6)
- mon.write("Charcoal: ")
- fg()
- mon.write(charcoal)
- end
Advertisement
Add Comment
Please, Sign In to add comment