Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --{program="MJZ Cobblegen",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.0"
- local cPrgName ="MJZ CobbleGen"
- 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
- select(1)
- turtle.dig()
- end
- end
- local function dropstacks()
- for i=1,16 do
- turtle.select(i)
- turtle.dropUp()
- end
- end
- ---------------------------------------
- ---- run -----------------------------
- ---------------------------------------
- while true do
- mine()
- itemcount1 = turtle.getItemCount(1)
- if itemcount1 == 64 then
- print("| Dropping stacks")
- print("| Please wait...")
- dropstacks()
- end
- itemcount15 = turtle.getItemCount(15)
- if itemcount15 == 64 then
- print("| Turtle full .. Sleeping " ..sleepTime.. "")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement