JSCore

Quick rating

JSCore

No reviews yet

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

API/Library
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Where It Runs
Client Only

Runs entirely on the client. Works on vanilla servers.

About

Project Details

Type
Mod
License
GNU Affero General Public License v3.0 or later
Latest Version
0.1.2
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

About

Description

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.

Screenshots

Gallery

  • JavaScript REPL in your game
    JavaScript REPL in your game
  • Modify your gameplay with JavaScript
    Modify your gameplay with JavaScript
  • Powerful init script system + package manager
    Powerful init script system + package manager
  • Try out community-made packages!
    Try out community-made packages!

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~1,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works