Compound Key Reader
Read the keys of nbt compounds easily!
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
Compound Key Reader
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 [ { "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
+ You _CANNOT_ use `compound_key_reader:get` in the result function! + You _CANNOT_ use `compound_key_reader:get` in the result function! + + 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 | |Substr curs|`compound_key_reader:result_preset/key` |key+seq | |Substr curs|`compound_key_reader:result_preset/key-value`|key+value+seq| |Substr curs|`compound_key_reader:result_preset/all` |(all) | + Substr curs:Use `string storage compound_key_reader:result str $(l) $(r)` to get the key