
Compound Key Reader
Read the keys of nbt compounds easily!
Screenshots

About this Mod
Read the keys of nbt compounds easily
Command Format
function compound_key_reader:get {data-blocked:{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
Available Versions
How to Install Compound Key Reader on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set datapack Loader
In the panel under "Egg", select the datapack loader and matching Minecraft version (1.21.4).
Install Mod
Open the mod browser in the dashboard and search for "Compound Key Reader". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.4, 1.21.3, 1.21.2 (+2 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Compound Key Reader server crashes on startup – what to do?
Most common cause: wrong datapack version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.4). You can switch loaders with one click in the panel.
Is Compound Key Reader compatible with datapack and fabric and forge and neoforge and quilt?
Compound Key Reader officially supports datapack, fabric, forge, neoforge, quilt for Minecraft 1.21.4, 1.21.3, 1.21.2. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Compound Key Reader – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Compound Key Reader consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Compound Key Reader with just one click on your server.