Compound Key Reader 图标

Compound Key Reader

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 Beta2.2+mod
本资源为搬运资源,原资源地址: https://modrinth.com/mod/compound-key-reader
资源信息

Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4

平台: fabric forge neoforge quilt

标签: library

资源介绍

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+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
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Wathe Extra Items

价格:0 墨喵币
下载量:0

查看详情
Gamemode Detector

价格:0 墨喵币
下载量:0

查看详情
All The Horrors Core

价格:0 墨喵币
下载量:0

查看详情
Yume Artifacts

价格:0 墨喵币
下载量:0

查看详情