ItemsAdderAdditionsItemsAdderAdditions

配置

插件 config.yml 键、功能开关、动作开关、behaviour 开关和重载行为。

ItemsAdderAdditions 使用 config.yml 管理插件级功能开关。实际的动作、behaviours、配方、进度、画、标签和世界生成条目仍由 ItemsAdder 内容 YAML 定义。

默认配置

features:
  creative_inventory_integration: true
  custom_paintings: true
  item_model_definitions: true

behaviours:
  bed: true
  connectable: true
  contact_effect: true
  stackable: true
  storage: true
  text_display: true

worldguard:
  enabled: true
  flags:
    storage_open: true
    contact_damage: true
    stackable_place: true
    bed_use: true
    custom_painting_place: true
    actions: true

actions:
  actionbar: true
  clear_item: true
  ignite: true
  message: true
  mythic_mobs_skill: true
  open_inventory: true
  open_trade_machine: true
  play_animation: true
  play_emote: true
  replace_biome: true
  replace_item: true
  shoot_fireball: true
  swing_hand: true
  teleport: true
  title: true
  toast: true
  veinminer: true

update-checker:
  enabled: true
  on-join: true

开关行为

缺失的 toggle key 默认视为启用。这也适用于默认配置中不存在的可选节。

WorldGuard 区域检查可在 worldguard 下配置;请见 WorldGuard 兼容性

Components 也可以用同样方式禁用:

components:
  rarity: false

重载行为

运行:

/itemsadderadditions reload

或:

/iaa reload

该命令会重载 config.yml,并重新应用插件级功能、动作、behaviour 和 component 开关。它不会重载 ItemsAdder 内容 YAML 文件。

修改 ItemsAdderAdditions 内容 YAML 节后,请使用 /iareload,例如动作、behaviours、自定义标签、配方、进度、自定义画、Valhalla 元数据或世界生成条目。

修改 components 节或资源包资源后,请使用 /iazip/iareload 会重载 components 以外的 ItemsAdderAdditions 内容。

常见错误

  • 将 toggle 设为 false,却期望已有内容在重载后继续工作。
  • actionsbehavioursfeaturescomponents 下写错键名;未知 toggle key 不会禁用目标功能。
  • 期望 /itemsadderadditions reload 重载 ItemsAdder 内容 YAML 或重建资源包。内容 YAML 使用 /iareload,components 或资源使用 /iazip

On this page