Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doIHasDirt()
- local PlisBeDirt = turtle.getItemDetail(1)
- if(PlisBeDirt) then
- if (PlisBeDirt.name:match("dirt")) then
- return true
- end
- end
- return false
- end
- function theGypsiesHaveCome()
- local IDONTKNOWWHATTHISVARIABLEDOESBUTITNEEDSTOBEHEREFORSOMEREASON,PlisBeCursed = turtle.inspectUp()
- if PlisBeCursed.name then
- if PlisBeCursed.name:find("cursed") then
- return true
- end
- end
- return false
- end
- function NOCURSENO()
- turtle.select(16)
- redstone.setOutput("front",true)
- repeat
- local IDONTKNOWWHATTHISVARIABLEDOESBUTITNEEDSTOBEHEREFORSOMEREASON,PlisDontBeCursed = turtle.inspectUp()
- until not PlisDontBeCursed.name
- redstone.setOutput("front",false)
- turtle.suckUp()
- turtle.dropDown()
- end
- function placeDIRT()
- turtle.select(1)
- return turtle.placeUp()
- end
- function talkToMeBaby()
- return os.pullEvent("key")
- end
- redstone.setOutput("front",false)
- term.clear()
- print("Fine, I guess I'll do your dirty work for you.")
- args={ ... }
- function farmTheGypsies()
- while(1) do
- count=0
- turtle.select(1)
- while not doIHasDirt() do
- --sleep(1)
- turtle.suckDown(63)
- count=count+1
- if count==20 then
- term.clear()
- local w,h=term.getSize()
- term.setCursorPos(w,1)
- print("Waiting for dirt. Press any key to continue.")
- talkToMeBaby()
- count=0
- end
- end
- if theGypsiesHaveCome() then
- else
- placeDIRT()
- end
- end
- end
- farmTheGypsies()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement