View difference between Paste ID: wFvBvEkt and Gxwxzx6E
SHOW: | | - or go back to the newest paste.
1-
glass = peripheral.wrap("top")
1+
glass = peripheral.wrap("bottom")
2-
item = peripheral.wrap("right")
2+
3
rednet.open( "back" )
4
5
-- We always reset when starting back up
6
glass.clear()
7
8
-- Quarry status
9-
container = glass.addBox( 10, 10, 102, 30, 0x000000, 0.3 )
9+
10-
helpText = glass.addText( 27, 15, "Items queued: ", 0xFFFFFF )
10+
11-
itemCount = glass.addText( 45, 25, "0", 0xFFFFFF )
11+
12-
timeText = glass.addText( 457, 75, " ", 0xFFFFFF )
12+
13
  
14-
-- Various settings go here, the ones that won't change
14+
15-
timeText.setScale( 0.6 )
15+
16
  
17-
-- Fancy borders
17+
18-
borderTop = glass.addBox( 11, 45, 100, 1, 0x000000, 1 )
18+
19-
borderLeft = glass.addBox( 10, 45, 1, 7, 0x000000, 1 )
19+
20-
borderRight = glass.addBox( 111, 45, 1, 7, 0x000000, 1 )
20+
21-
borderBottom = glass.addBox( 11, 51, 100, 1, 0x000000, 1 )
21+
22
        statusQuarry.setColor( 0x229000 )
23
      else
24
        statusQuarry.setColor( 0xFF0000 )
25
      end
26
    end
27-
  items = 0
27+
28-
  types = 0
28+
29
  rednet.broadcast( "get quarry" )
30
  
31
  sleep(10)
32
end
33
34
rednet.close( "back" )