View difference between Paste ID: K55d9qf1 and wsyhuHy7
SHOW: | | - or go back to the newest paste.
1
while true do
2-
    shell.run('yourprogram')
2+
3-
	sleep(3)
3+
	os.queueEvent("randomEvent")
4
	os.pullEvent();
5
6
7
	if (redstone.getAnalogInput("back") > 10) then
8
		redstone.setOutput("back", true);
9
		write("Coil charged, Stopping")
10
	else 
11
		redstone.setOutput("back", false);
12
	end
13
end