View difference between Paste ID: yejBnJVN and CrLB3qKH
SHOW: | | - or go back to the newest paste.
1-
-- robot pulls the lever for the harvester
1+
-- robot works the lever at cursed earth mob farm
2-
-- starts with harvester off and empty
2+
3
-- pastebin -f get yejBnJVN goingDown
4-
-- pastebin -f get CrLB3qKH rHarvest
4+
5
local robot = require("robot")
6
local computer = require("computer")
7
local tArgs = { ... }
8
9
local x = tArgs[1]
10
11
-- print usage info if no tArg was specified but needed
12
13-
function refuel()
13+
14-
robot.up()
14+
  os.sleep(20) -- wait for mobs to spawn
15-
robot.turnRight()
15+
  robot.use() -- trigger the pistons
16-
for i = 1, 11 do
16+
  os.sleep(3)  -- pause 
17-
robot.forward()
17+
  robot.use() -- retract the pistons
18-
end
18+
-- then go back to sleep
19-
robot.turnLeft()
19+