Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- robot works the lever at cursed earth mob farm
- -- pastebin -f get yejBnJVN goingDown
- local robot = require("robot")
- local computer = require("computer")
- local tArgs = { ... }
- local x = tArgs[1]
- -- print usage info if no tArg was specified but needed
- while true do
- os.sleep(20) -- wait for mobs to spawn
- robot.use() -- trigger the pistons
- os.sleep(3) -- pause
- robot.use() -- retract the pistons
- -- then go back to sleep
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement