ThunderBOT

                Never    
Lua
       
version ="0.0.1"

function showLoading()
	term.clear()
	local i = 5
	for i,0,-1 do
		term.clear()
		write("Loading")
		sleep(1)
	end
end

function sayHello()
	term.clear()
	write("This is a program created by ICreateThunder\n\nThis program will allow for advanced mining!\n")
end

function mainMenu()
	local flag = true
	while flag do
		term.clear()
		write("\t-{ Thunder Bot }-\n\n")
		write("1) Quarry\n2) Tunnel\n3) Strip mine\n\n\n Your Choice: ")
		local input = read()
		if input == "1" or input == "2" or input == "3" then
			term.clear()
			write("You have entered 1, 2 or 3 thanks!\n")
			flag = false
		else
			term.clear()
			write("You have not entered a valid input try input again (Yes or No)\n")
			local input2 = read()
			if input2 == "y" or input2 == "Y" or input2 == "yes" or input2 == "Yes" or input2 == "YES" then
				term.clear()
				write("Retrying...")
				sleep(2)
			else
				term.clear()
				write("Exiting...\n")
				flag = false
			end
		end
	end
end
	
			


showLoading()

Raw Text