Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --{program="MJZ Cobblefarm",version="1.0"}
- -- WIP !
- ---------------------------------------
- -- 14.8.23 v1.0 initial
- ---------------------------------------
- -- ToDo:
- -- Farm Cobble, fill chest, return values on screen
- ---------------------------------------
- ---- DESCRIPTION ----------------------
- ---------------------------------------
- --[[
- A simple but yet expandle cobble generator
- --]]
- ---------------------------------------
- ---- PARAMETERS -----------------------
- ---------------------------------------
- local cVersion ="1.5"
- local cPrgName ="MJZ FarmBot"
- local debugging=false
- local slotFuel=16 -- where to put fuel
- local minFuel=0 -- the minimal amount of fuel required
- local sleepTime=5
- ---------------------------------------
- ---- VARIABLES ------------------------
- ---------------------------------------
- ---------------------------------------
- -- BASIC FUNCTIONS FOR TURTLE CONTROL -
- ---------------------------------------
- local function mine()
- if turtle.detect() then
- turtle.dig()
- end
- end
- ---------------------------------------
- ---- run -----------------------------
- ---------------------------------------
- while true do
- mine()
- itemcount = turtle.getItemCount(16)
- if itemcount == 64 then
- sleep(sleepTime)
- print("| Waiting " ..sleepTime.. "")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement