Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local quarry = peripheral.wrap("bottom")
- local glass = peripheral.wrap("left")
- while true do
- local working = quarry.hasWork()
- function addBox()
- glass.addBox(1,1,150,10,0xFFFFFF, 0.2)
- end
- function quarryWork()
- if(working) then
- glass.addText(5,2,"Quarry is working: " ..tostring(working), 0x00FF00)
- end
- if(working==false) then
- glass.addText(5,2,"Quarry is working: " ..tostring(working), 0xFF0000)
- end
- end
- glass.clear()
- addBox()
- quarryWork()
- glass.sync()
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement