SHOW:
|
|
- or go back to the newest paste.
1 | - | local exitTime = 20 -- change to whatever you want |
1 | + | local exitTime = 25 -- change to whatever you want |
2 | local timer = os.startTimer(exitTime) -- starts the timer | |
3 | local cp = 0 | |
4 | local cm = 0 | |
5 | while true do | |
6 | local evt, arg = os.pullEvent() -- wait for an event | |
7 | - | redstone.setOutput("top",true) |
7 | + | |
8 | - | end |
8 | + | |
9 | redstone.setOutput("back",true) | |
10 | cp = cp +1 | |
11 | - | redstone.setOutput("top",false) |
11 | + | print ("Next move! "..cp) |
12 | end | |
13 | elseif evt == "redstone" then | |
14 | timer = os.startTimer(exitTime) -- restarts the timer | |
15 | redstone.setOutput("back",false) | |
16 | cm = cm +0.5 | |
17 | print ("Send Items! x"..cm) | |
18 | end | |
19 | if cm >= 222 then --Lava protect | |
20 | redstone.setOutput("back",true) | |
21 | print ("Next move! "..cp) | |
22 | end | |
23 | end |