Compound Key Reader

Compound Key Reader

Read the keys of nbt compounds easily!

by
314 Downloads
datapackfabricforgeneoforgequiltlibrary
Rent Server with this Mod

Screenshots

Use In The Game

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+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

Available Versions

Compound Key Reader Beta 2.2beta
MC 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4fabric, forge, neoforge, quilt
December 18, 2024
Compound Key Reader Beta 2.2beta
MC 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4datapack
December 18, 2024
Compound Key Reader Beta 2.1beta
MC 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4fabric, forge, neoforge, quilt
December 16, 2024
Compound Key Reader Beta 2.1beta
MC 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4datapack
December 16, 2024
Compound Key Reader Beta 2.0beta
MC 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4fabric, forge, neoforge, quilt
December 16, 2024

How to Install Compound Key Reader on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set datapack Loader

In the panel under "Egg", select the datapack loader and matching Minecraft version (1.21.4).

3

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

datapackfabricforgeneoforgequilt

Minecraft Versions

1.21.4, 1.21.3, 1.21.2 (+2 more)

Server-side

Required

Recommended 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.

Rent Modded Server

Install Compound Key Reader with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
BSD 2-Clause "Simplified" License
Server-side
Required

Supported Versions

1.21.41.21.31.21.21.21.11.21