View difference between Paste ID: vk4DsZUp and RKSb0Xjx
SHOW: | | - or go back to the newest paste.
1
rednet.open("right")
2
3
recieve = function()
4
local senderId, message, protocol = rednet.receive()
5
local senderId, message2, protocol = rednet.receive()
6-
for i=1, tonumber(message) do
6+
7
turtle.drop(tonumber(message))
8-
turtle.dropUp(1)
8+
9
10
fill = function()
11
for i=1, 16 do
12
turtle.suckDown()
13
os.queueEvent("randomEvent")
14
os.pullEvent()
15
end
16
end
17
18
19
term.clear()
20
term.setCursorPos(1,1)
21
term.write(os.getComputerID())
22
fill()
23
recieve()
24-
while true do
24+
os.reboot()