Get the files on 9Minecraft
Guides
Step-by-step, in-game.
Communicate Between Multiple Mods Using Graal ScriptsHow Inter-Mod Communication Works Graal Mod acts as a bridge between different mods by exposing their Java APIs to a…Optimize Script Performance and Reduce File SizeWhy Graal Mod Keeps File Size Small Graal Mod bundles a lightweight JavaScript runtime by removing unnecessary files…Use MemberRemapper to Rename Java Methods in ScriptsWhat MemberRemapper Does MemberRemapper is a Graal Mod tool that lets you rename Java methods and fields when calling…Write Your First JavaScript Script for Graal ModSetting Up Your Script File Graal Mod allows you to write ECMAScript-compliant JavaScript code that runs directly in…
Frequently asked questions
How do I start writing scripts for Graal Mod?
Create a JavaScript file in your mod's script directory and use the Graal runtime to load it—the mod will execute ECMAScript-compliant code directly in your game environment. Check the 'Write Your First JavaScript Script for Graal Mod' guide for a step-by-step walkthrough with example code.
Can I call Java methods from my JavaScript scripts?
Yes, Graal Mod lets you interact with Java directly from JavaScript, allowing your scripts to access game objects and methods. Use MemberRemapper if you want to rename Java methods or fields to make them more convenient in your scripts.
What's the difference between Graal Mod and just using GraalJS?
Graal Mod bundles a stripped-down version of GraalJS that removes unnecessary files, cutting the total size roughly in half while keeping full ECMAScript compliance. This keeps your game lighter without sacrificing functionality.
How do I make multiple mods communicate using Graal scripts?
Graal Mod allows different mods to share a common scripting layer where they can call each other's functions and pass data through the JavaScript runtime. See 'Communicate Between Multiple Mods Using Graal Scripts' for patterns and examples.
Gallery
1 image from the Graal Mod page.
You May Also Like
Wikis that share the most with this one
Wikis on the same theme: sword
More mod wikis on the site
The most downloaded mods that have a wiki here
A few wikis from each of the other kinds
