JsScripts
ModLicenseRef-All-Rights-Reserved

JsScripts

Adds JavaScript scripts directly on the server!

391
Downloads
1
Followers
3 months ago
Updated
📦
8
Versions

📖About JsScripts

JavaScript support directly on the server for your Minecraft events.

🎉 JavaScript right in Minecraft!

A highly flexible mod for script-based events.

Test Script

✨ A handy JS editor!

Coding directly in Minecraft.
Editor JS

Simple code:

// Script Type (once or loop)
scriptType("loop");
// log in server console
log("=== PING-PONG Script start! ===");

// chat events
on("chat", (msgText, p) => {
    if (msgText === "!ping") {
        let w = World.overworld();
        //print in ActionBar
        actionbar(p, "pong!");
    }
});

ScriptAPI documentation is available here.

Thanks to Froska729 for creating the mod icons!❤️