View difference between Paste ID: rU2AEBAU and c8yFjxBL
SHOW: | | - or go back to the newest paste.
1-
local exitTime = 25 -- change to whatever you want
1+
--Modular Forcefield System Quarry without Redpower--
2
-->Redpower version -> http://www.youtube.com/watch?v=Yrjo253-m6A
3
-->Computercraft version -> http://postimg.org/image/c20l21d37/
4
5
local exitTime = 27 -- change to whatever you want
6
local timer = os.startTimer(exitTime) -- starts the timer
7-
  if evt == "timer" then
7+
8-
        if arg == timer then -- check if it's the correct timer
8+
9-
        	redstone.setOutput("back",true)
9+
10-
		cp = cp +1
10+
11-
        	print ("Next move! "..cp)
11+
12-
	end
12+
  	if evt == "timer" then
13-
  elseif evt == "redstone" then
13+
        	if arg == timer then -- check if it's the correct timer
14-
        timer = os.startTimer(exitTime) -- restarts the timer
14+
        		redstone.setOutput("top",true)
15-
        redstone.setOutput("back",false)
15+
			cp = cp +0.5
16-
	cm = cm +0.5
16+
        		print ("Next move!")
17-
  	print ("Send Items! x"..cm)
17+
		end
18
  	elseif evt == "redstone" then
19-
  if cm >= 222 then --Lava protect
19+
        	timer = os.startTimer(exitTime) -- restarts the timer
20-
	redstone.setOutput("back",true)
20+
        	redstone.setOutput("top",false)
21-
	print ("Next move! "..cp)
21+
		cm = cm +0.5
22
  		print (cm.."x Send items! ")
23
  	end
24
  if cm >= 250 then --Lava protect
25
        redstone.setOutput("top",true)
26
        print ("Send redstonsignal! "..cp)
27
  end
28
end