/Release/ScriptBtidge-ver-1.0Beta
ScriptBridge-Fabric is a powerful Minecraft Fabric mod that introduces dynamic JavaScript (GraalVM) scripting capabilities to the game. It bridges the gap between Minecraft's internal mechanics and runtime scripting, allowing you to control both the client and server sides in real-time by writing simple JavaScript code— without restarting the game .
Whether you are a developer looking to quickly prototype ideas or a player wanting to enhance your gameplay experience through scripts, ScriptBridge-Fabric provides a flexible and efficient solution.
Download and install the mod, then launch the game once. The mod will automatically generate a scripts folder in your game's root directory.
Create a .js file in either the scripts/client or scripts/server directory.
Example: Client Welcome Script ( scripts/client/welcome.js )
// Sends a message to the player when the
script runs
game.chat("Welcome back, " + game.
getPlayerName() + "!");
game.log("Initialization script loaded.");
Example: Server Interaction Script ( scripts/server/admin.js )
// Spawns a diamond block at coordinates
(0, 80, 0)
game.spawnBlock(0, 80, 0,
"minecraft:diamond_block");
game.broadcast("Admin script executed,
reward block spawned!");
Use the in-game commands to run your scripts: