-------------------------------------------------------------------------------- function YakitKontrol() if (turtle.getFuelLevel() < 50) then print("Yakit Istirem...") for slot = 1, 16, 1 do turtle.select(slot) if(turtle.refuel(1)) then return true end end return false else return true end print("Yakita Doymusem...") end -------------------------------------------------------------------------------- DROPPED_ITEMS = { "minecraft:stone", "minecraft:dirt", "minecraft:cobblestone", "minecraft:sand", "minecraft:gravel", "minecraft:flint", "minecraft:dye", } function CopAtma() print("Purging Inventory...") for slot = 1, 16, 1 do local item = turtle.getItemDetail(slot) if(item ~= nil) then for filterIndex = 1, #DROPPED_ITEMS, 1 do if(item["name"] == DROPPED_ITEMS[filterIndex]) then print("Dropping - " .. item["name"]) turtle.select(slot) turtle.dropDown() end end end end end -------------------------------------------------------------------------------- function DuzKazim() if (turtle.detect()) then turtle.dig() end turtle.forward() turtle.digUp() turtle.digDown() end -------------------------------------------------------------------------------- function KaziYapim() turtle.digUp() turtle.digDown() for derinlik = 1, 2, 1 do for genislik = 2, 16, 2 do for uzunluk = 1, 15, 1 do DuzKazim() end turtle.turnLeft() DuzKazim() turtle.turnLeft() for uzunluk = 1, 5, 1 do DuzKazim() end if (genislik < 16) then turtle.turnRight() DuzKazim() turtle.turnRight() end CopAtma() end if (derinlik < 2) then turtle.turnLeft() turtle.down() turtle.digDown() turtle.down() turtle.digDown() turtle.down() turtle.digDown() end end end -------------------------------------------------------------------------------- function Baslat() YakitKontrol() KaziYapim() end Baslat()