When running the command /reload, it always success, and it sets the success count(/execute store success) to 1.
However, this applies the same even when the datapack has invalid data.
To check whether the command worked properly and reloaded all datapacks, we need to check the log.
So, we can use the result value(/execute store result) to test whether the datapack reloaded or there was an error and didn't reload it.
For example, when it successfuly reloads, the result value would be set to 1,
otherwise, when it fails to reload datapacks, it'll set the result value to 0.
Please sign in to leave a comment.
1 Comments