Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function drop_coal()
- coal = turtle.getItemCount()
- if(coal<10) then
- turtle.suckUp(55)
- turtle.drop(1)
- else
- turtle.drop(1)
- end
- end
- while true do
- if redstone.getAnalogInput('front')==0 then
- drop_coal()
- os.sleep(0.1)
- else
- os.sleep(0.3)
- print("wait 1")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement