You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add ability to change time (date) format in command blocks #13269
Currently command output in command blocks are prefixed only by local system time.
I want to add a date to this prefix, i.e. [2025-11-02 11:00:01] Example output.
There's no way to do that even via Reflection API, because instance of DateTimeFormatter TIME_FORMAT in BaseCommandBlock.CloseableCommandBlockSource isn't mutable anymore (in 1.21.8, SimpleDateFormat was used for this purpose and it was possible to change its pattern).
Describe the solution you'd like.
Add command-block-time-pattern to the server per-world configuration.
Describe alternatives you've considered.
Add an internal method to change value of the TIME_FORMAT field via Reflection API and make it non-final.
changed the title [-]Add ability to change time (date_ format in command blocks[/-][+]Add ability to change time (date) format in command blocks[/+]on Nov 2, 2025
Activity
[-]Add ability to change time (date_ format in command blocks[/-][+]Add ability to change time (date) format in command blocks[/+]molor commentedon Nov 8, 2025
Since this issue is still bothering me & my players, here's another one, a much simpler alternative:
Add non-cancellable
CommandBlockOutputEventwithgetBlockmethod, which gets called inBaseCommandBlock.javabetween lines 230 and 231:And it will be possible to change the output (i.e. add a date) via plugin before block will be updated in the world.
In this case, it will also add the ability to log messages sent to blocks, in case someone needs it in the future.
molor commentedon Feb 24, 2026
(can anyone who has free time take a look at this, please? :c)