Time difference in seconds (for blocks)

Started by Shiori on

Topic category: User side tutorials

Active 1 month ago
Joined Apr 2019
Points:
842

User statistics:

  • Modifications: 2
  • Forum topics: 27
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 45
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.

Active 1 month ago
Joined Apr 2019
Points:
842

User statistics:

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

Image
Proc