Spending the whole day getting Lua running on JVM.
Then noticed the Mozilla rhino.
Who needs Lua anymore?
I can write a context class and give it to the scope, and then call it a day. If "user" want more advanced operation, they can just invoke the Java code in JS, without any config needed.
I'm amazed. And I can understand why people use JavaScript in minecraft modding.