Mineuniverse
Mods
Native Event Guard

Native Event Guard

MOD
Prevents KubeJS native event listener errors from crashing Minecraft by logging them instead.
by hp12138
Download Claim this project
30 downloads
0 likes
Updated Oct 14, 2026
0 hypes
API and Library Bug Fixes KubeJS
Advertisement Remove ads with Premium →

Native Event Guard

Native Event Guard prevents ordinary exceptions thrown by KubeJS native event listeners from crashing Minecraft.

When a native event listener fails, this mod catches the exception and logs the error and stack trace so the game can continue running. It is designed for Minecraft 1.21.1 with NeoForge and KubeJS's built-in native event support.

Features

  • Catches ordinary listener exceptions
  • Writes the error and stack trace to the log
  • Keeps the game running after a script error
  • Leaves JVM-level errors outside the normal exception handling path

No configuration is required.

native_event_guard-1.0.jar
MC Client, 1.21.1, NeoForge, Server
Release 2026-08-06 Get

More from hp12138

Advertisement Remove ads with Premium →

You Might Also Like