View difference between Paste ID: 0rnzJ3t4 and cGY2wnBT
SHOW: | | - or go back to the newest paste.
1-
p=peripheral.wrap("left")
1+
p=peripheral.wrap("bottom")
2
while true do
3
4
time1=os.time()
5
6-
a=p.getStoredItems()
6+
amount1=p.getItemMeta(2).count
7-
amount1=a.qty
7+
8
sleep(30)
9-
sleep(10)
9+
10
amount2=p.getItemMeta(2).count
11-
a=p.getStoredItems()
11+
12-
amount2=a.qty
12+
13
difference=math.abs((amount1-amount2)/(time2*1000))
14
print(difference.." n/t - "..(difference*20).." n/s")
15
16
end
17
18
shell.run("lua")