Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("This is a convertor from real world time to minecraft time")
- sleep(1)
- print("enter current hour")
- print("enter 23 for 11pm; 24 for 12am;")
- print(" 25 for 1am;...; 29 for 5am; 6 for 6am")
- hour = read()
- sleep(1)
- print("enter current minute")
- minute = read()
- sleep(1)
- a = hour*1000-6000
- b = minute*1000/60
- result = math.floor(a+b)
- write("The Corresponding Minecraft time is ")
- print(result)
- print("Would you like to set this as the current in-game time?")
- print("(y/n)")
- c = read()
- if c=="y" then
- commands.time("set", result)
- print("ok, the time has already been set.")
- else print("ok")
- end
- print("Thank you for using this convertor made by Kimson.")
- sleep(5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement