Hello, I'm writing a mod that's an addon to Modern Industrialization. I've created a KubeJS plugin in this mod that would allow pack authors to customize the volume and duration of sounds added. In a dev environment, the plugin loads just fine, however when I try to load it in an existing pack to test, it crashes on startup and claims a method is not defined.
I'm really confused by this and don't even know where to look to fix it. The code for my mod can be found here: https://github.com/TheStaticVoid/MI-Sound-Addon
There error I'm getting in startup is included in this post. No, it's not an issue with the script itself, as it loads just fine without my mod loaded.
TLDR: I want to know what I'm doing wrong with the creation of this KubeJS Plugin.