
Compound Key Reader
Read the keys of nbt compounds easily!
- Загрузки
- 322
- Подписчики
- 1
- Обновлён
- 18 декабря 2024 г.
- Лицензия
- BSD-2-Clause
Опубликован 14 декабря 2024 г.
Read the keys of nbt compounds easily
Command Format
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+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
Ченджлог
Beta2.2+modБета1.21.2, 1.21.3, 1.21.4 · 18 декабря 2024 г.
Function
- Add
keyargument to the result function
Beta2.2Бета1.21.2, 1.21.3, 1.21.4 · 18 декабря 2024 г.
Function
- Add
keyargument to the result function
Beta2.1+modБета1.21.2, 1.21.3, 1.21.4 · 16 декабря 2024 г.
- Set the data swap dimension to
by_redstoneore:dataswap
Beta2.1Бета1.21.2, 1.21.3, 1.21.4 · 16 декабря 2024 г.
- Set the data swap dimension to
by_redstoneore:dataswap
Beta2.0+modБета1.21.2, 1.21.3, 1.21.4 · 16 декабря 2024 г.
Debug
- Fix: Sometimes the keys with
:are read incorrectly.
Description
- Added
compound_key_reader:result_preset/alland foreach inREADME.md
Functions
- Add result preset function
compound_key_reader:result_preset/all
Beta2.0Бета1.21.2, 1.21.3, 1.21.4 · 16 декабря 2024 г.
Debug
- Fix: Sometimes the keys with
:are read incorrectly.
Description
- Added
compound_key_reader:result_preset/alland foreach inREADME.md
Functions
- Add result preset function
compound_key_reader:result_preset/all
Beta1.0+modБета1.21.2, 1.21.3, 1.21.4 · 15 декабря 2024 г.
Functions
- Add
compound_key_reader:get - Add preset
compound_key_reader:result_preset/keyandcompound_key_reader:result_preset/key-value
Beta1.0Бета1.21.2, 1.21.3, 1.21.4 · 15 декабря 2024 г.
Functions
- Add
compound_key_reader:get - Add preset
compound_key_reader:result_preset/keyandcompound_key_reader:result_preset/key-value
Комментарии
Загружаем…