Tutorial/Timer

Revision as of 17:59, 9 December 2012 by 173.228.7.221 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is a timer script to do on a computer attached to a Monitor, the only way to stop it is unfortunately Control+T, and if anyone could find a better way please update the page. This is one of my earliest scripts so please post also if there is a faster way of doing it.

--Made by YoshiLucario

minute = 00
hour = 00
second = 00

do while 0 < 10 do do
 if second <= 59 then
 term.clear()
 term.setCursorPos(7, 3)
 write(hour..":"..minute..":"..second)
 second = second + 1
 sleep(1)
 end
  else
  second = 0
  if minute <= 59 then
  minute = minute + 1
   else
   minute = 0
   if hour <= 23 then
   hour = hour + 1
    else
    hour = 0
    end
   end
  end
 end
end
end
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis