Compound Key Reader

⭐ — (1 endorsements) 📥 363 downloads 📌 vBeta2.2+mod 📅 12/19/2024
🟠 Updated over a year ago

By NullSu · datapack

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 12/18/2024 📅 Created: 12/19/2024
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 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:''} ``` + Result: Save the compound as a list in `storage compound_key_reader:result keys` + + Like `key+value+seq` format: ```json [ { "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()` 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

🤖 AI-enhanced — based on mod data

📊 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

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More datapack 👤 More by NullSu 🔎 Similar Mods 🌐 Best datapack (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods