Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Endoflame turtle
- t = turtle
- coalAmount = 4 -- Number of coal dropped
- sleepTimer = 40
- function coalCheck
- for i=1, 16, 1 do
- flag = t.getItemCount(i)
- if flag > 0 + coalAmount then
- t.select(i)
- t.dropDown(coalAmount)
- break
- end
- end
- end
- while true do
- if redstone.getInput(front) == 0 then
- coalCheck()
- os.sleep(sleepTimer)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement