HomeJavaModsHexJS
HexJS
ModsJava

HexJS

by Nanorasmus · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.19.2–1.19.4 · Forge⬇ Download for 1.19.2 · Fabric⬇ Download for 1.19.2 · Quilt
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

About

HexJS is a mod integrating Hexcasting and KubeJS for modpack makers and server owners.

Features

Whitelists and Blacklists

The server and each player has their own list of patterns they can cast, this list can either be a whitelist, or a blacklist. (Default is an empty blacklist)

The per-player lists are persistent, while the global list is not. If there is a conflict, the per-player list takes priority.

Tip: Blocking the base number literal (0) for either positive or negative numbers will block all numbers of that type

Redirects

The server and each player has their own list of redirects which redirect a drawn pattern to another pattern, this is handled after the whitelists and blacklists.

Only 1 pass is done so it is easily possible to swap the effects of 2 patterns. If there is a conflict, the per-player redirect takes priority.

Custom Patterns

This is probably what most of you are here for, the ability to make your own patterns and spells, all from inside KubeJS!

This happens in 2 parts, first you register the pattern with a name and such, and then you check if the pattern in question was the one cast in the registeredPatternCastEvent to do your logic. This can be used to override existing patterns.

Pre-Imbued Casting Items

Create cyphers, trinkets, and artifacts with pre-imbued spells and media!

This can be used for loot chests, mob drops, and more!

Force Casting

Cast any list of patterns as any player from KubeJS!

This can be used for proxies as well as making fake players from CarpetMod cast spells!

Misc

Disclaimer

Due to most of my testing happening on Fabric, there may be a lot more bugs on the Forge version of this mod.

Please do report any bugs you find on the Github. Thank you in advance!

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more