Back to mods
Compound Key Reader project artwork

Modrinth · Minecraft mod

Compound Key Reader

Read the keys of nbt compounds easily!

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

Quick answer

Which Compound Key Reader release matches 1.21.2 NeoForge?

Updated 1 year ago
beta file Beta2.2+mod
Game version 1.21, 1.21.1, 1.21.2
Loader Fabric, Forge, NeoForge

Compound Key Reader Beta2.2+mod targets 1.21, 1.21.1, 1.21.2 with Fabric, Forge, NeoForge. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is Compound Key Reader 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 Fabric, Forge, 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 Compound Key Reader Beta2.2+mod need?

Beta2.2+mod on 1.21.2 NeoForge. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Compound Key Reader without breaking your instance.

Built for Compound Key Reader Beta2.2+mod on 1.21.2 NeoForge. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use Beta2.2+mod. It targets 1.21, 1.21.1, 1.21.2 with Fabric, Forge, NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  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 Beta2.2+mod. It opens that exact file at the source.

About this project

What does Compound Key Reader add?

Read the keys of nbt compounds easily

Command Format

function compound_key_reader:get {data:{from/value:...},result:'<ResultFunction>'}
  • Result: Save the compound as a list in storage compound_key_reader:result keys
    • Like key+value+seq format:
[ { "value": "(value)", "key": "(key)", "seq": "(seq)" }, ... ]

UPGRADING

  • If you want to upgrade from <=Beta2.0 to >=Beta2.1,follow the UPGRADE.1.md

Result Functions

  • The functions will beed called by the reader function to get the format of the result.
  • You can use it just like foreach(<ResultFunction>) in the following format
    • You CANNOT use compound_key_reader:get in the result function!
Type Value Description
Arguments c Count
Arguments l,r Substr cur
Arguments key The name of the key
ReturnValue 0|VOID No Result
ReturnValue +1 Save substr cur((l,r]) in xx.cur
ReturnValue +2 Save key name in xx.key
ReturnValue +4 Save key value in xx.value
ReturnValue +8 Save the sequence in the keys in xx.seq
Presets compound_key_reader:result_preset/key key+seq
Presets compound_key_reader:result_preset/key-value key+value+seq
Presets compound_key_reader:result_preset/all (all)
  • Substr curs:Use string storage compound_key_reader:result str $(l) $(r) to get the key

Project description from Modrinth.

Pick your setup

Compound Key Reader by Minecraft version and loader

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

25 available setups

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

Recent files

Compound Key Reader versions and loaders

4 of 8 releases match
Clear filters

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