Currently we don't have a convenient way to validate a datapack through terminals, it is only validated when it is loaded during the server startup. I wonder if we can add a command line option on the server jar, just like the "--port <port>" we already had, so we can validate a datapack without having to launch minecraft. For example:
java -jar server.jar --validateDatapack <path_to_datapack>
Then the server will only validate whether the datapack is valid, and return a code about it, perhaps 0 for pass and 1 for not pass.
This is really useful to integrate with IDE and automatic process, like VSCode and Github Action. With that option and proper VSCode extension/Github Action setup, we can quickly find out why datapack isn't working during developing, and make sure there's no issue in datapack before releasing it.
Please sign in to leave a comment.
0 Comments