
Ability to add errors onto the KubeJS error screen
wolfieboy09 opened this issue ยท 6 comments
Describe the feature
In my mod, I need to tell the user anything wrong with portal creation (PortalJS) when the user forgets to add a key like setting the destination dimension for example.
From what I know, I would need to do a mixin, but I think a better idea would be to add it to the error screen to display (or like throw new KubeJSStartupError("some error")
(or anything else).
Additional info
No response
I don't want IllegalStateException to cause MC to crash, then get people in the mod loader support "why did mc crash" to be redirected to my mod, then to say "Well, fix your code and it won't occur".
The ConsoleJS STARTUP would be better
If you do it in a location called from rhino then rhino will catch it, and the game won't crash.
just throw an error during startup and let rhino catch it. or grab the console object and log an error...