date text

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

_PAPER_PLANE_

Member
Jan 21, 2022
41
0
6
I am calculating the cooling time, and the output will display: 10 minutes and 10 seconds. However, I would like it to be translated into Chinese. Can I change the English strings in it?"
I tried adding a new line below the third line using "formatted as," but it didn't work. The script couldn't interpret the compared content as a date.
Alternatively, is there any other method that can be used?
Code:
difference between {giftcd::1h%{_p}%} and now <= 1 hours:
    set {_t} to difference between now and {giftcd::1h%{_p}%}
    set {_tt} to difference between {_t} and 1 hour
    set slot 20 of metadata tag "menugift" of {_p} to barrier named "box" with lore "&c還剩 %{_tt}%"