General Custom Data

模组

· 作者 CookedSeafood

提供自定义数据标签等功能的数据组件的接口注入 API。

0 本站下载 0 关注 更新于 5 个月前

需要前置:Fishbone Trehalose、Generic Registry

最新 2.0.0-beta.10 · 26.1.2 · Fabric

一键开服(送7天)

通用自定义数据

通用自定义数据(General Custom Data)是一个提供数据组件的库,用于支持自定义数据标签的功能。

目前功能尚不完整。

命令

  • /custom effect list [<entity>] 打印实体上的自定义效果列表。
  • /custom effect give <entity> <effect> [<duration|infinite>] [<amplifier>] 为实体添加自定义效果。
  • /custom effect clear [<entity>] [<effect>] 从实体中移除自定义效果。

数据结构

Compound custom_data: 父级标签。
 |- String id: namespace:path。
 |- List modifiers
 |  - Compound 一个修饰符。
 |    |- String attribute: namespace:path。
 |    |- Double base: 任意值。
 |    |- String id: 任意值。
 |    |- String operation: add_value, add_multiplied_base, add_multiplied_total。
 |    - String slot: mainhand, offhand, feet, legs, chest, head。
 |- String rarity: 任意值。
 - List status_effects
  - Compound 一个状态效果。
    |- String id: namespace:path。
    - List episodes: 无序的事件序列。
     - Compound 一个事件。
       |- Int amplifier: 任意值。
       - Int duration: 任意值。单位为刻(ticks)。

Compound data:父标签。
 |- Byte explosion_radius:任意值。
 |- Short fuse:任意值。
 |- String id:namespace:path。
 |- List modifiers
 |  - Compound 一个修饰器。
 |    |- String attribute:namespace:path。
 |    |- Double base:任意值。
 |    |- String id:任意值。
 |    |- String operation:add_value、add_multiplied_base、add_multiplied_total。
 |    - String slot:mainhand、offhand、feet、legs、chest、head。
 |- String owner:UUID。
 - List status_effects
  - Compound 一个状态效果。
    |- String id:namespace:path。
    - List episodes:实体上的状态效果按放大倍数降序排列,同时 ticking。
     - Compound 一个阶段(episode)。
       |- Int amplifier:任意值。
       - Int duration:任意值。以刻(ticks)为单位。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源