Back to mods
HexJSNeo project artwork

Modrinth · Minecraft mod

HexJSNeo

Adding game contents via KubeJS for base mod Hex Casting, including pattern actions, special handlers, iota types, and more.

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

Quick answer

Which HexJSNeo release should I use?

Updated today
alpha file 1.21.1-0.1.3.pre68
Game version 1.21.1
Loader NeoForge

HexJSNeo 1.21.1-0.1.3.pre68 targets 1.21.1 with NeoForge. Installation on the client is optional. Installation on the dedicated server is optional. 1 required mod needs a matching file.

Where it goes

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

Installation on the client is optional. Installation on the dedicated server is optional.

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

The source marks this as usable on both the client and server.

What else does HexJSNeo 1.21.1-0.1.3.pre68 need?

1.21.1-0.1.3.pre68. Change the file and its required mods may change too.

1 required mod needs a matching file

Install KubeJS, Hex Casting, Better Advanced Tooltips, Rhino first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match. 2 come through another mod in the chain.

3 listed on this file 2 pulled in by those mods
ProbeJS Optional for HexJSNeo 1.21.1-0.1.3.pre68
optional
Matching file found Matched file: 8.0.3
KubeJS Needed by HexJSNeo 1.21.1-0.1.3.pre68
required
Matching file found Matched file: 2101.7.2-build.381
Hex Casting Needed by HexJSNeo 1.21.1-0.1.3.pre68
required
No matching file
Rhino Needed by KubeJS
pulled in
Matching file found Matched file: 2101.2.7-build.85+Rhino-1.21

2 extra mods were pulled in by other dependencies. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add HexJSNeo without breaking your instance.

Built for HexJSNeo 1.21.1-0.1.3.pre68. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.21.1-0.1.3.pre68. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install KubeJS, Hex Casting, Better Advanced Tooltips, Rhino first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match. 2 come through another mod in the chain.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.21.1-0.1.3.pre68. It opens that exact file at the source.

About this project

What does HexJSNeo add?

HexJSNeo

Curseforge CurseForge
Modrinth Modrinth

Provides a way to create custom contents for Hex Casting via KubeJS.

A badge for addons.hexxy.media in the style of Devins Badges

Features

Core Concepts

  • Minimal efforts: auto registered great pattern tags, omit all optional args, pipe everything, ...
  • Weak typed: ActionJS returns, ActionRegistryJS.of, etc.
  • Mutable is best: no registration event and phase limit, writing and reloading everywhere in startup scripts, we're writing JS \yay/
  • Clean global scope: everything under a single HexJS global object, no leaks

Game Content Registry

  • ActionJS: basis for all executables
    • customizable operate & operateInParens, with high degree-of-freedom return value handling
    • additional helper methods for creating operate varieties
    • assigning mediaCost to auto-attach media-cost side effect on operate, with preCheckMedia methods to help check & mishap before logics
  • ActionRegistryJS: registering certain patterns with actions
    • = Registry ID + Pattern prototype + inner ActionJS + Great-pattern marker (default false)
    • weak-typed constructor ActionRegistryJS.of(...): args in any order among its constructor, missing ones auto-filled (id from pattern signature, fresh ActionJS, false); only the pattern is required
    • transparent proxy of inner ActionJS: operate setters (setOperate & variants), mediaCost and preCheckMedia are callable directly on the registry object
    • great spells are auto-tagged with per-world / enlightenment tags
  • SpecialHandlerJS: taking an arbitrary pattern and retrieving its meanings
    • registers a JS tryMatch(pattern, env) factory consulted for every drawn pattern
    • SpecialHandlerJS.create(action, name) to help build a SpecialHandler, in which action could be another specially created ActionJS
    • chain setter setTryMatch for KJS-ish usage
  • IotaJS: highly customizable iota types
    • NBT-backed custom iotas: IotaJS.type(id) creates the type, containing CompoundTag iota data
    • overriding common iota interfaces (display, color, size, etc.) with either callbacks or constants
    • optional executability via setOperate, controlling its execution behaviors outside and inside parens
  • ArgsJS: basically a forwarder for various built-in Kotlin extension functions
    • used on a mutable iota list manually, or called from ActionJS.setOperateArgsSplit
    • typed getters (double, vec3, entity, ...) with auto mishaps on missing args or wrong types
  • CastingEnvironmentComponentJS: vanilla but in JS, with more convenient Key creation
    • each component takes a key string as the first constructor arg, from which the Key is auto-created & cached (setKey to change it later)
    • usages and types same as vanilla
  • MishapJS: highly customizable mishap types
    • declaring the type using MishapJS.type() first, quite similar to IotaJS
    • calling type.create() or type.create(data) for a mishap of this type
    • KJS-ish piped methods to override all behaviors of created mishaps
  • ArithmeticJS and OperatorJS: custom arithmetic holders and their pattern operators
    • declarative operators with iota-type predicates (Accepts) and piped operate setters, either raw or args-split
    • bind operators to builtin or custom patterns, with the engine auto-invalidated on script reload

QoL Features

  • Hot-swap everything
    • everything, simple as /kjs reload startup-scripts
    • covers: actions (entry action & prototype replaced in-place), special handlers, iota types, arithmetics (including their operators)
    • not for those haven't created on startup, but it's possible to match later-created pattern actions using a SPECIAL handler :3
    • CastingEnvironmentComponentJS and MishapJS are born temporary and not covered here
  • API & packages importer: HexJS.API & HexJS.APIFlat
    • exposes all Hex Casting classes scanned from the mod jar, either nested by package (HexJS.API.<...package>.<Class>) or flat (HexJS.APIFlat)

ProbeJS Typing Support

  • generates typings for the JS-facing API, including nested HexJS.API levels, fake-singleton classes flattened to static fields, and subclass members assigned onto their parents

Project description from Modrinth.

Pick your setup

HexJSNeo by Minecraft version and loader

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

1 available setups

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

Recent files

HexJSNeo versions and loaders

8 of 8 releases match

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