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