Compound Key Reader
🟠 Updated over a year ago⚠️ Install Order · 2 steps
Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.
🖼️ Gallery (1 images)
🔍 Analysis
- 🏆 #19 of 119 datapack mods in this game by downloads
📋 About This Mod
## Read the keys of nbt compounds easily ## Command Format ```mcfunction 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: ```json ``` ## 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
## Read the keys of nbt compounds easily
## Command Format
```mcfunction
function compound_key_reader:get {data:{from/value:...},result:'
## 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(
|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
📊 Mod Details
- Game
- Minecraft Mods
- Author
- NullSu
- Version
- Beta2.2+mod
- Downloads
- 363
- Endorsements
- 1
- Category
- datapack
- Created
- 12/19/2024
- Updated
- 12/18/2024
- Game Versions
- 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4
- Tags
- library
🔧 How to Install Minecraft Mods Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Mods →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Mods versions does Compound Key Reader support?
The author lists 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4. Other versions may work but are untested by the author.
What is the latest version of Compound Key Reader?
Version Beta2.2+mod, published 2024-12-18 with 363 downloads recorded at the source.
Keep browsing — more Minecraft Mods mods await
