Time difference in seconds (for blocks)

Started by Shiori on

Topic category: User side tutorials

Last seen on 17:28, 5. Oct 2023
Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Time difference in seconds (for blocks)

Procedure file in Google Drive

This procedure take NBT (previously recorded) from block and give time difference in seconds:

 If block have NBT:
Year: 2022
Month: 0   (in MCreator, month numbering starts from 0)
Day: 2
Hour: 2
Minute: 2
Second: 2

Use this procedure on this block in 2022-0-3-3-3-3 time return:
90061 seconds (86400 + 3600 + 60 + 1).

Maximum return number - 2678400 (31 days).
You can do more, but add it yourself.

Procedure has checks for February, the parity of months and the transition from one year to another.

Last seen on 17:28, 5. Oct 2023
Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Image
Sat, 05/07/2022 - 13:52

Image
Proc