When using Scripting with mcserver API 1.5.0 on a system with power saving features, the following error may be returned:
[Scripting][error]-[Watchdog] 61207784.000 ms script hang detected in behavior pack 'my scripts'
The game is then killed by the Watchdog exception.
The cause of the issue is that the computer was suspended due to power saving mode.
Expected Behaviour
Minecraft should not kill a game using scripting when the game has been suspended due to power-saving features of the operating system.
Cannot reproduce this in 1.20.51 using version 1.5.0 of the API. Does this occur with every script used? Could you please provide a sample script in which this error is known to occur? Please also include steps on how to reproduce this.
Additionally, providing some general info about your system specifications and which OS you're using would be greatly appreciated.