Advertisement
Guest User

Minecraft 12 hour clock fixed with year and day night count

a guest
Apr 23rd, 2014
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --coded by snakedude6
  2. mon = peripherial.wrap("monitor side")
  3. for s = 1,0.010928961748634,1 then
  4. if s == 60 then
  5. m = m+1
  6. s = 0
  7. end
  8. if m == 60 then
  9. h = h+1
  10. m = 0
  11. end
  12. if h == 12 then
  13. h = 1
  14. a = a+1
  15. end
  16. if a == 1 then
  17. x = night
  18. else
  19. x = Day
  20. end
  21. if a == 3 then
  22. a = 1
  23. d = d+1
  24. end
  25. if d == 7 then
  26. w = w+1
  27. d = 1
  28. end
  29. if w == 52 then
  30. y = y+1
  31. w = w-52
  32. end
  33. end
  34.  
  35. while true do
  36. mon.print("time is: ", h, ":", m, ":", s, "of", x, " ", d, "week ", w, "of year ", y)
  37. mon.clear()
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement