Back to mods
JSCore project artwork

Modrinth · Minecraft mod

JSCore

Extend your game with JavaScript, create and publish commands, menus, toggles and much more!

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which JSCore release matches 1.21.2?

Updated 1 year ago
beta file 0.2.0.17
Game version 1.21.2
Loader Fabric

JSCore 0.2.0.17 targets 1.21.2 with Fabric. It must be installed on the client. Do not install it on the dedicated server. 1 required mod needs a matching file.

Where it goes

Is JSCore required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does JSCore 0.2.0.17 need?

0.2.0.17 on 1.21.2. Every mod below is checked against that same setup.

1 required mod needs a matching file

Install Yarnwrap, Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

Yarnwrap Needed by JSCore 0.2.0.17
required
Matching file found Matched file: 0.2.0.12
Fabric API Needed by JSCore 0.2.0.17
required
No matching file

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add JSCore without breaking your instance.

Built for JSCore 0.2.0.17 on 1.21.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 0.2.0.17. It targets 1.21.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Yarnwrap, Fabric API first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 0.2.0.17. It opens that exact file at the source.

About this project

What does JSCore add?

MOD BEING REWRITTEN, JOIN DISCORD INSTEAD

https://discord.gg/WAR9aKVFQJ

BEFORE DOWNLOADINGRead the JSCore Player Guide and Join Discord

FabricMC + JavaScript = JSCore

JSCore is a thin wrapper around FabricMC.

What does this mod do?

This mod provides full JavaScript support for Minecraft modding, you can create or use community modules to customise your game.

In short, JSCore can do

  • Everything a typical JS runtime, such as KubeJS, can do.
  • Everything in FabricMC that does not use Mixins*
  • Interact with other mods.

*Mixins support depends on whether one guy on Discord can get it to work or not.

How to use it?

Just download the mod and run the game!

Read the Quickstart Guide.

How is it different from KubeJS/JSMacros?

Access to Minecraft Internals

JSCore allows access to classes in the net.minecraft package - anything that FabricMC can do (except Mixins), JSCore can also do it.

// client: net.minecraft.client.MinecraftClient
let client = net.minecraft.client.MinecraftClient.getInstance();
// player: net.minecraft.client.network.ClientPlayerEntity
let player = client.player;
// position: net.minecraft.util.math.BlockPos
let position = player.getBlockPos();

Module System Similar to Node.js

The module system from Node.js allows complex game mechanics to be built from small and managable chunks, so we brought it to JSCore.

// init.js
let savePlayers = require("./savePlayers");
savePlayers();
// savePlayers.js
let fs = require("fs");
let { getPlayers } = require("./getPlayers");

function savePlayers() {
    let players = getPlayers();
    let content = JSON.stringify(players);
    fs.writeFileSync("./playerList.json", content);
}

module.exports = savePlayers;

What features does this mod have?

This mod runs init.js on start.

Additional features are provided by third-party modules, such as

  • Rinode: provide Node.js features such as console.log and fs.
  • Command: Declarative Minecraft command registration.
  • Pully: package manager for JSCore.

A list of package can be found in the package repository, anyone can publish packages to this repository.

How does this mod work?

The Minecraft code is obfuscated and cannot be referred to by their real name. This mod uses Yarnwrap, which wraps all net.minecraft classes so their real name can be used instead of their obfuscated name.

This mod is still in its early stages, please join Discord for support or to sway its development.

Project description from Modrinth.

Pick your setup

JSCore by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

11 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

JSCore versions and loaders

5 of 52 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.