
Modrinth · Minecraft mod
Compound Key Reader
Read the keys of nbt compounds easily!
Quick answer
Which Compound Key Reader release matches 1.21.4 datapack?
Compound Key Reader Beta2.2 targets 1.21, 1.21.1, 1.21.2 with datapack. 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.
The source marks this as usable on both the client and server.
What else does Compound Key Reader Beta2.2 need?
Beta2.2 on 1.21.4 datapack. Every mod below is checked against that same setup.
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 on 1.21.4 datapack. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use Beta2.2. It targets 1.21, 1.21.1, 1.21.2 with datapack; another release may have different loader, side or dependency requirements.
- 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.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside Beta2.2. 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+seqformat:
- Like
[ { "value": "(value)", "key": "(key)", "seq": "(seq)" }, ... ]
UPGRADING
- If you want to upgrade from
<=Beta2.0to>=Beta2.1,follow theUPGRADE.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:getin the result function!
- You CANNOT use
| 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.
1.21.3
5 loader builds1.21.2
5 loader builds1.21.1
5 loader builds1.21
5 loader buildsCheck 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
Beta2.2
Compound Key Reader 1.20.6-(65) Beta2.2 2024-12-18.zip
18 Dec 2024
Beta2.1
Compound Key Reader 1.20.6-(65) Beta2.1 2024-12-16.zip
16 Dec 2024
Beta2.0
Compound Key Reader 1.20.6-(65) Beta2.0 2024-12-16.zip
16 Dec 2024
Beta1.0
Compound Key Reader 1.20.6-(65) Beta1.0 2024-12-15.zip
15 Dec 2024
Looking for an older file? The official Modrinth project page is in Resources.