Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- counter = 0
- while true do
- term.setCursorPos(1,1)
- term.clear()
- turtle.suckUp(1)
- print("Gen Stats (push button to reset)")
- print("Diamonds: " .. tostring(counter))
- print("EMC: " .. tostring(counter * 8192))
- if redstone.getInput("back") then
- print("Resetting and stopping")
- turtle.dropUp()
- while type(http.get("http://tools.uk.ms/cc/diamondcounter/addDiamond.php?cmd=clr")) ~= "table" do
- sleep(1)
- end
- break
- end
- if turtle.getItemCount(1) == 1 then
- counter = counter + 1
- while type(http.get("http://tools.uk.ms/cc/diamondcounter/addDiamond.php")) ~= "table" do
- sleep(1)
- end
- end
- turtle.dropDown()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement