HexParse mod
Provides a pair of patterns and a set of commands to convert custom code into (pattern or literal) list iota; requires player to have a focus item in hand.
(Old KubeJS version HERE)
| Example Code | Example Iota | Example Iota (Colorful Nested) |
|---|---|---|
![]() |
![]() |
![]() |
_The highlight VSCode extension is available on the Marketplace (source code)._
Supported IO Item Types
- Focuses
- Spell Books
- (1.20) Thought Knots
- recognized by item classes (matched through the item class hierarchy), able to add more via
HexParseAPIorIOMethod
Commands Added
Reading & Writing
/hexParse <code string> [rename]: parse input code into supported held item; optionalrenameargument to rename the item./hexParse read: read handheld item's iota, parse into code and show in chat window; the result will be copied when clicked./hexParse read_signatures: same asread, but ignores all known pattern IDs and outputs all as angle signatures./hexParse clipboard [rename]: read client clipboard text and parse into supported held item; optionalrenameargument to rename the item./hexParse clipboard_angles [rename]: same asclipboard, but only accept patterns input with raw angle string like"wedsaq"./hexParse clipboard_hexpattern [rename]: (experimental) same asclipboard, but accepts.hexpatternformat; warning: only partial features supported./hexParse share: (experimental) same asreadbut broadcasts iota's raw content and click-copy-able parsed code to every player in the server./hexParse read_hexbug: same asreadbut translates the result to the format used by discord HexBug's/patterns hexcommand. note: non-pattern constants and some old registry names still need to be handled manually/hexParse mind_stack ...: read/write iota from player's mind (staff casting VM)... peek: read the last iota inside mind stack; getsnullif stack is empty... push <code>: parse code and push into mind stack... push_clipboard: same as above, but code comes from clipboard
/hexParse property ...: (Hexcellularinterop) get/set data for PropertyIota; used property names all force-added leading_for security reason... read <propName>: read and parse from certain property... write <propName> <code>: write code into certain property... clipboard <propName>: same as above, but code comes from clipboard
Configs
/hexParse (macro/dialect) ...: edit client-saved code dialects (1-on-1 mapping, not starting with#) and macros ( mapped to code segments, starting with#)... list: list all saved macros/dialects; there exist several predefined macros fromthe nature... define <key> <value>: define a macro/dialect mapping; could be fresh-new or overriding existed one.macro define_clipboard <key>: same as above, but only for macros, and reads player's clipboard... remove <key>: remove mapping entry with given key (if exists)
/hexParse conflict: conflict resolver for multiple patterns with same short name (ID path)- only enables in physical client (singleplayer, local multiplayer) or with OP permission
...or... list: list all short names pointed by multiple long IDs... list <short_name>: list all conflicting IDs under certain short name... set <short_name> <long_ID>: redirect certain short name to input pattern ID
Misc. & Helpers
/hexParse donate [amount]: donate custom amount of media to the nature. Pay if you feel guilty using this mod ::)/hexParse learn_great: Read handheld items and learns great pattern(s) inside./hexParse lehmer [...nums]: calculate lehmer code for given permutation (from ascending, e.g.0 1 2 3 4); input should be separated with space; the result number can be used for Swindler's Gambit.
OP-Only Commands
/hexParse unlock_great (unlockAll|lockAll|unlock <pattern id>|lock <pattern id>): controls great pattern unlocking process of current world by locking/unlocking all at once, or a single great pattern each execution.
Patterns Added
switch_comment: Transforms input Comment Iota into String Iota, or everything else into Comment Iota; has no effect without MoreIotas.code2focus: Equivalent to/hexParse clipboard(now not only focuses).focus2code: Equivalent to/hexParse read.remove_comments: Clears comment iotas from a (nested) list input.learn_patterns: Read handheld items and learns great pattern(s) inside.create_linebreak: Adds a line-break comment iota with space-indents of given number to the stack.donate: Equivalent to/hexParse donate.- (great spell)
compile: takes in a MoreIotas string iota, and parses it into a code list; has no effect without MoreIotas.
Introduction also written in HexParse Patterns section inside the book.
Misc. Features
- At each pattern's page, press
Shiftto display the pattern's registry ID
New Iota: CommentIota
CommentIota displays string inside, and parses into a null iota (with id: "hexparse:comment") which executes doing
nothing.
Comment iotas includes text comments, line-breaks & indents, and unknown great spell placeholders.
When player holds Shift key, all comments will be hidden.
HexParseAPI
- Location:
io.yukkuric.hexparse.api.HexParseAPI - Contents:
AddForthParser(p: IStr2Nbt)AddForthParser(p: IStr2Nbt, id: String)— replaces the parser previously registered under the same IDAddBackParser(p: INbt2Str)AddBackParser(p: INbt2Str, id: String)— same ID-based replacementRemoveForthParser(p: IStr2Nbt)RemoveBackParser(p: INbt2Str)<T : SpecialHandler> AddSpecialHandlerBackParser(cls: Class<T>, func: (T, CompoundTag) -> String)CreateItemIOMethod(cls: Class<*>, writer: ((ItemStack, CompoundTag) -> Unit)?, reader: ((ItemStack) -> CompoundTag?)?, priority: Int = 0, validator: ((ItemStack, Boolean) -> Boolean)?)
For detailed usage guides, see How-To (Generated by DeepSeek-v4.1-Flash)
External Documents
Supported Expressions
see this file for all available symbols.
Available Configs
see this file for all available configs.
How to Install HexParse (Mod)
HexParse by YukkuriC is verified for Fabric, Forge, Neoforge across Minecraft versions 1.19.2, 1.20.1, 1.21.1 (latest release: 1.21.1-1.12.0.pre64, file size: 437 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.19.2, 1.20.1, 1.21.1) and platform (Fabric, Forge, Neoforge).
- Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge.
- Move the downloaded HexParse file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 6d ago | 1 | ||||
| 6d ago | 1 | ||||
| 6d ago | 1 | ||||
| 6d ago | 1 | ||||
| 6d ago | 1 | ||||
| 6d ago | 1 | ||||
| 6d ago | 1 | ||||
| 14d ago | 1 | ||||
| 14d ago | 1 | ||||
| 1mo ago | 1 | ||||
| 1mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 3mo ago | 1 | ||||
| 4mo ago | 1 | ||||
| 4mo ago | 1 | ||||
| 4mo ago | 1 | ||||
| 4mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 5mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 6mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 7mo ago | 1 | ||||
| 8mo ago | 1 | ||||
| 8mo ago | 1 | ||||
| 8mo ago | 1 | ||||
| 8mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| 9mo ago | 1 | ||||
| 10mo ago | 1 | ||||
| 10mo ago | 1 | ||||
| 10mo ago | 1 | ||||
| 10mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| 11mo ago | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 | ||||
| last yr. | 1 |
- Features:
- adding new API for reloadable parser additions (e.g. for KJS)
- IOMethod now searches along superclass chain
- Bugfix:
- ignoring comments and linebreaks when collecting addon info
> updated with **Pre 64** [latest official 1.21 alpha](https://ci.blamejared.com/job/petrakat/job/Hexcasting/job/1.21/); see [this discord announcement](https://discord.com/channels/936370934292549712/940747174982078564/1512583279868645428) for more information
- Features:
- adding new API for reloadable parser additions (e.g. for KJS)
- IOMethod now searches along superclass chain
- Bugfix:
- ignoring comments and linebreaks when collecting addon info
> updated with **Pre 64** [latest official 1.21 alpha](https://ci.blamejared.com/job/petrakat/job/Hexcasting/job/1.21/); see [this discord announcement](https://discord.com/channels/936370934292549712/940747174982078564/1512583279868645428) for more information
- Features:
- adding new API for reloadable parser additions (e.g. for KJS)
- IOMethod now searches along superclass chain
- Bugfix:
- ignoring comments and linebreaks when collecting addon info
> updated with **Pre 64** [latest official 1.21 alpha](https://ci.blamejared.com/job/petrakat/job/Hexcasting/job/1.21/); see [this discord announcement](https://discord.com/channels/936370934292549712/940747174982078564/1512583279868645428) for more information
- Features:
- adding new API for reloadable parser additions (e.g. for KJS)
- IOMethod now searches along superclass chain
- Bugfix:
- ignoring comments and linebreaks when collecting addon info
> updated with **Pre 64** [latest official 1.21 alpha](https://ci.blamejared.com/job/petrakat/job/Hexcasting/job/1.21/); see [this discord announcement](https://discord.com/channels/936370934292549712/940747174982078564/1512583279868645428) for more information
- Features:
- adding new API for reloadable parser additions (e.g. for KJS)
- IOMethod now searches along superclass chain
- Bugfix:
- ignoring comments and linebreaks when collecting addon info
> updated with **Pre 64** [latest official 1.21 alpha](https://ci.blamejared.com/job/petrakat/job/Hexcasting/job/1.21/); see [this discord announcement](https://discord.com/channels/936370934292549712/940747174982078564/1512583279868645428) for more information
- Features:
- adding new API for reloadable parser additions (e.g. for KJS)
- IOMethod now searches along superclass chain
- Bugfix:
- ignoring comments and linebreaks when collecting addon info
> updated with **Pre 64** [latest official 1.21 alpha](https://ci.blamejared.com/job/petrakat/job/Hexcasting/job/1.21/); see [this discord announcement](https://discord.com/channels/936370934292549712/940747174982078564/1512583279868645428) for more information
- Features:
- adding new API for reloadable parser additions (e.g. for KJS)
- IOMethod now searches along superclass chain
- Bugfix:
- ignoring comments and linebreaks when collecting addon info
> updated with **Pre 64** [latest official 1.21 alpha](https://ci.blamejared.com/job/petrakat/job/Hexcasting/job/1.21/); see [this discord announcement](https://discord.com/channels/936370934292549712/940747174982078564/1512583279868645428) for more information
> updated with **Pre 64** [latest official 1.21 alpha](https://ci.blamejared.com/job/petrakat/job/Hexcasting/job/1.21/); see [this discord announcement](https://discord.com/channels/936370934292549712/940747174982078564/1512583279868645428) for more information
> updated with **Pre 64** [latest official 1.21 alpha](https://ci.blamejared.com/job/petrakat/job/Hexcasting/job/1.21/); see [this discord announcement](https://discord.com/channels/936370934292549712/940747174982078564/1512583279868645428) for more information
- fixed fabric crash due to packet registry
- removed
for_each_%dmatching
- fixed fabric crash due to packet registry
- removed
for_each_%dmatching
> updated with **Pre 53** [latest official 1.21 alpha](https://ci.blamejared.com/job/petrakat/job/Hexcasting/job/1.21/); see [this discord announcement](https://discord.com/channels/936370934292549712/940747174982078564/1512583279868645428) for more information
> updated with **Pre 53** [latest official 1.21 alpha](https://ci.blamejared.com/job/petrakat/job/Hexcasting/job/1.21/); see [this discord announcement](https://discord.com/channels/936370934292549712/940747174982078564/1512583279868645428) for more information
upgrade all pattern-related stuff
> updated with **Pre 53** [latest official 1.21 alpha](https://ci.blamejared.com/job/petrakat/job/Hexcasting/job/1.21/); see [this discord announcement](https://discord.com/channels/936370934292549712/940747174982078564/1512583279868645428) for more information
upgrade all pattern-related stuff
> updated with **Pre 53** [latest official 1.21 alpha](https://ci.blamejared.com/job/petrakat/job/Hexcasting/job/1.21/); see [this discord announcement](https://discord.com/channels/936370934292549712/940747174982078564/1512583279868645428) for more information


