on load:
set {targetDate} to date "20-06-2023 00:00"
set {timeLeft} to {targetDate} - now
every 1 second:
set {timeLeft} to {timeLeft} - 1 second
if {timeLeft} is 0:
broadcast "Odliczanie zakończone!"
stop
set {days} to round({timeLeft} / 1 day)
set {hours} to round({timeLeft} % 1 day / 1 hour)
set {minutes} to round({timeLeft} % 1 hour / 1 minute)
set {seconds} to round({timeLeft} % 1 minute / 1 second)
send player title "&6Odliczanie" with subtitle "&e%{days}% dni, %{hours}% godzin, %{minutes}% minut, %{seconds}% sekund" for 10 seconds
Nie testowałem. sprawdź. to jest przykład, zmień sobie to na komendę bądź klikanie w npc