local r = 1
function repeatt(par1)
repeat
rs.setOutput("bottom",true)
sleep(1)
rs.setOutput("bottom",false)
r = r+1
until r == par1
end
function main()
term.clear()
term.setCursorPos(1,1)
print("how many items are you smelting?")
time = read()
full = time*5
complete = full+10
term.clear()
term.setCursorPos(1,1)
write("You Smelting time will be approx ")
write(complete)
write(" seconds.")
repeatt(time)
sleep(complete)
repeatt(time)
shell.run("menu")
end
main()
Simple Program Help
Started by b0b349, Jul 26 2012 07:26 AM
4 replies to this topic
#1
Posted 26 July 2012 - 07:26 AM
So i was trying to make basically an automatic smelter, but I needed the redstone to repeat a certain number of times so i whipped together this along with the rest of the class. When i run it it gets to the point where the redstone turns on, then it freezes. Please Help!
#2
Posted 26 July 2012 - 07:52 AM
Found the bugs
this works
this works
Spoiler
#5
Posted 26 July 2012 - 07:59 AM
glad to have been of assistance
I guess I'm good at finding bugs because most of my own code is full of them lol XD
I guess I'm good at finding bugs because most of my own code is full of them lol XD
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












