Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- b = require("button")
- local m = peripheral.wrap("top")
- local fur = peripheral.wrap("left")
- craft = peripheral.wrap("right")
- local sm = peripheral.wrap("monitor_11")
- sm.setTextScale(1)
- m.setTextScale(0.5)
- m.clear()
- while true do
- local click = b.timetouch(1, "monitor_11")
- local itemTempI = fur.getItemMeta(1)
- if itemTempI ~= nil then
- itemI = itemTempI.count
- itemNI = itemTempI.displayName
- else
- itemI = 0
- itemNI = "empty"
- end
- local ItemTempII = fur.getItemMeta(2)
- if ItemTempII ~= nil then
- itemII = ItemTempII.count
- itemNII = ItemTempII.displayName
- else
- itemII = 0
- itemNII = "empty"
- end
- local ItemTempIII = fur.getItemMeta(3)
- if ItemTempIII ~= nil then
- itemIII = ItemTempIII.count
- itemNIII = ItemTempIII.displayName
- else
- itemIII = 0
- itemNIII = "empty"
- end
- m.setCursorPos(8, 23)
- m.write("vstup")
- m.setCursorPos(27, 23)
- m.write("palivo")
- m.setCursorPos(46, 23)
- m.write("výstup")
- b.bar("top", 3, 12, 16, 10, itemI, 64, "gray", "red", "white", true, true, itemNI, true)
- b.bar("top", 22, 12, 16, 10, itemII, 64, "gray", "red", "white", true, true, itemNII, true)
- b.bar("top", 41, 12, 16, 10, itemIII, 64, "gray", "red", "white", true, true, itemNIII, true)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement