7.106.0 版本以前

自定义盔甲配置可以在 plugins/EcoArmor/ecoarmor.yml 中找到,它的一般配置如下:

sets:
  - <第一个盔甲的配置>
  - <第二个盔甲的配置>
tiers:
  - <第一个盔甲品质的配置>
  - <第二个盔甲品质的配置>

盔甲

其中,sets 为一个 List 类型的自定义盔甲的键,所有自定义盔甲的一般配置如下:

- id: slayer
  conditions: []
  effects:
    - id: damage_multiplier
      args:
        multiplier: 1.5
      triggers:
        - melee_attack
        - bow_attack
        - trident_attack
      filters:
        onlyBosses: true
    - id: damage_multiplier
      args:
        multiplier: 0.9
      triggers:
        - take_damage
  advancedEffects:
    - id: damage_multiplier
      args:
        multiplier: 0.8
      triggers:
        - take_damage
    - id: damage_multiplier
      args:
        multiplier: 2
      triggers:
        - melee_attack
        - bow_attack
        - trident_attack
      filters:
        onlyBosses: true
  advancedLore:
    - ''
    - "<gradient:f12711>&l高级增益</gradient:f5af19>"
    - "&8» &4减少 20% 伤害"
    - "&8» &4对 Boss 造成双倍伤害"
    - "&8&o需要穿戴全套套装"
  shard:
    item: prismarine_shard unbreaking:1 hide_enchants
    name: "<GRADIENT:f12711>高级碎片:</GRADIENT:f5af19> &4屠戮者"
    lore:
      - "&8将该物品拖拽到 &4屠戮者盔甲"
      - "&8以让其 <GRADIENT:f12711>高级化</GRADIENT:f5af19>."
    craftable: false
    recipe:
      - prismarine_shard
      - ecoarmor:set_slayer_helmet
      - prismarine_shard
      - ecoarmor:set_slayer_chestplate
      - nether_star
      - ecoarmor:set_slayer_leggings
      - prismarine_shard
      - ecoarmor:set_slayer_boots
      - prismarine_shard
  helmet:
    item: leather_helmet color:#750909 hide_dye
    name: "&4屠戮者头盔"
    advancedName: "<GRADIENT:f12711>Advanced</GRADIENT:f5af19>&4 Slayer Helmet"
    effectiveDurability: 768
    effects: []
    advancedEffects: []
    conditions: []
    lore:
      - "&4&l屠戮增益"
      - "&8» &4对 Boss 造成 50% 额外伤害"
      - "&8» &4减少 10% 外来伤害"
      - "&8&o需要穿戴全套套装"
      - ''
      - "&f品质: %tier%"
      - "&8&o可以使用升级水晶升级盔甲品质"
    craftable: true
    defaultTier: default
    recipe:
      - air
      - netherite_helmet
      - air
      - ecoitems:boss_core ? heart_of_the_sea
      - air
      - ecoitems:boss_core ? heart_of_the_sea
      - obsidian
      - ecoitems:armor_core ? nether_star
      - obsidian
  chestplate:
    item: leather_chestplate color:#750909 hide_dye
    leatherColor: "#750909"
    name: "&4屠戮者胸甲"
    advancedName: "<GRADIENT:f12711>Advanced</GRADIENT:f5af19>&4 Slayer Chestplate"
    effectiveDurability: 1024
    effects: []
    advancedEffects: []
    conditions: []
    lore:
      - "&4&l屠戮增益"
      - "&8» &4对 Boss 造成 50% 额外伤害"
      - "&8» &4减少 10% 外来伤害"
      - "&8&o需要穿戴全套套装"
      - ''
      - "&f品质: %tier%"
      - "&8&o可以使用升级水晶升级盔甲品质"
    craftable: true
    defaultTier: default
    recipe:
      - air
      - netherite_chestplate
      - air
      - ecoitems:boss_core ? heart_of_the_sea
      - air
      - ecoitems:boss_core ? heart_of_the_sea
      - obsidian
      - ecoitems:armor_core ? nether_star
      - obsidian
  elytra:
    item: elytra
    name: "&4屠戮者鞘翅"
    advancedName: "<GRADIENT:f12711>Advanced</GRADIENT:f5af19> &4Slayer Elytra"
    effectiveDurability: 1024
    effects: []
    advancedEffects: []
    conditions: []
    lore:
      - "&4&l屠戮增益"
      - "&8» &4对 Boss 造成 50% 额外伤害"
      - "&8» &4减少 10% 外来伤害"
      - "&8&o需要穿戴全套套装"
      - ''
      - "&f品质: %tier%"
      - "&8&o可以使用升级水晶升级盔甲品质"
    craftable: true
    defaultTier: default
    recipe:
      - air
      - elytra
      - air
      - ecoitems:boss_core ? heart_of_the_sea
      - air
      - ecoitems:boss_core ? heart_of_the_sea
      - obsidian
      - ecoitems:armor_core ? nether_star
      - obsidian
  leggings:
    item: leather_leggings color:#750909 hide_dye
    name: "&4屠戮者护腿"
    advancedName: "<GRADIENT:f12711>Advanced</GRADIENT:f5af19>&4 Slayer Leggings"
    effectiveDurability: 1024
    effects: []
    advancedEffects: []
    conditions: []
    lore:
      - "&4&l屠戮增益"
      - "&8» &4对 Boss 造成 50% 额外伤害"
      - "&8» &4减少 10% 外来伤害"
      - "&8&o需要穿戴全套套装"
      - ''
      - "&f品质: %tier%"
      - "&8&o可以使用升级水晶升级盔甲品质"
    craftable: true
    defaultTier: default
    recipe:
      - air
      - netherite_leggings
      - air
      - ecoitems:boss_core ? heart_of_the_sea
      - air
      - ecoitems:boss_core ? heart_of_the_sea
      - obsidian
      - ecoitems:armor_core ? nether_star
      - obsidian
  boots:
    item: leather_boots color:#750909 hide_dye
    name: "&4屠戮者靴子"
    advancedName: "<GRADIENT:f12711>Advanced</GRADIENT:f5af19>&4 Slayer Boots"
    effectiveDurability: 1024
    effects: []
    advancedEffects: []
    conditions: []
    lore:
      - "&4&l屠戮增益"
      - "&8» &4对 Boss 造成 50% 额外伤害"
      - "&8» &4减少 10% 外来伤害"
      - "&8&o需要穿戴全套套装"
      - ''
      - "&f品质: %tier%"
      - "&8&o可以使用升级水晶升级盔甲品质"
    craftable: false
    defaultTier: default
    recipe:
      - air
      - netherite_boots
      - air
      - ecoitems:boss_core ? heart_of_the_sea
      - air
      - ecoitems:boss_core ? heart_of_the_sea
      - obsidian
      - ecoitems:armor_core ? nether_star
      - obsidian

我们可以看出它由以下部分组成:

  • id:盔甲的 id

  • conditions/effects:The Effect System(自定义技能系统)的内容,将在后文介绍。这里的选项只会在玩家穿戴 全套盔甲 后才会被激活。

  • advancedEffects:同上。这个选项只会在玩家穿戴全套 升级后的盔甲 才会被激活。

  • advancedLore:升级后的盔甲的 Lore 末尾补充的 Lore 的内容。往往填写升级效果即可。

  • helmet/chestplate/elytra/leggings/boots:分别为 头盔、胸甲、鞘翅、护腿、靴子 的内容,不能删减。

头盔、胸甲、鞘翅、护腿、靴子 的键下又由以下子键组成:

  • item:盔甲的物品语法。

  • name:盔甲的物品名称,玩家能够看到的。

  • advancedName:升级后的盔甲的物品名称。

  • effectiveDurability:盔甲的耐久次数。

  • effects/advancedEffects/conditions:见上,不再赘述。这里是单个盔甲激活的选项。套装和单个不冲突,激活套装时单个的效果不会消失。

  • lore:盔甲的 Lore

  • craftable:该盔甲是否可以合成。

  • recipe:盔甲的合成配方。

  • defaultTier:盔甲的品质,具体信息见下。

盔甲升级

盔甲升级通过升级碎片进行,可以获得 advancedEffect 所设置的效果,并在物品 Lore 末尾添加 advancedLore 的内容。

盔甲品质

盔甲品质通过升级水晶进行,可以获得对应品质下所设置的盔甲属性,具体见下:

  - id: manyullyn
    display: "&d&k!!&r <GRADIENT:f953c6>&lMANYULLYN</GRADIENT:b91d73>&r &d&k!!&r"
    requiresTiers:
      - netherite
    crystal:
      item: end_crystal
      name: "<GRADIENT:f953c6>Manyullyn Upgrade Crystal</GRADIENT:b91d73>"
      craftable: true
      recipe:
        - ecoarmor:upgrade_crystal_netherite
        - enchanted_golden_apple
        - ecoarmor:upgrade_crystal_netherite
        - enchanted_golden_apple
        - ecoarmor:upgrade_crystal_netherite
        - enchanted_golden_apple
        - ecoarmor:upgrade_crystal_netherite
        - enchanted_golden_apple
        - ecoarmor:upgrade_crystal_netherite
      giveAmount: 1
      lore:
        - "&8Drop this onto an armor piece"
        - "&8to set its tier to:"
        - "&d&k!!&r <GRADIENT:f953c6>&lMANYULLYN</GRADIENT:b91d73>&r &d&k!!&r"
        - ''
        - "&8&oRequires the armor to already have Netherite tier"
    properties:
      helmet:
        armor: 3
        toughness: 5
        knockbackResistance: 2
        speedPercentage: 0
        attackSpeedPercentage: 0
        attackDamagePercentage: 0
        attackKnockbackPercentage: 0
      chestplate:
        armor: 8
        toughness: 5
        knockbackResistance: 2
        speedPercentage: 0
        attackSpeedPercentage: 0
        attackDamagePercentage: 0
        attackKnockbackPercentage: 0
      elytra:
        armor: 3
        toughness: 0
        knockbackResistance: 2
        speedPercentage: 0
        attackSpeedPercentage: 0
        attackDamagePercentage: 0
        attackKnockbackPercentage: 0
      leggings:
        armor: 6
        toughness: 5
        knockbackResistance: 2
        speedPercentage: 0
        attackSpeedPercentage: 0
        attackDamagePercentage: 0
        attackKnockbackPercentage: 0
      boots:
        armor: 3
        toughness: 5
        knockbackResistance: 2
        speedPercentage: 0
        attackSpeedPercentage: 0
        attackDamagePercentage: 0
        attackKnockbackPercentage: 0
  • id:盔甲品质的 id

  • display:盔甲品质显示给玩家的名称。

  • requiresTiers:该盔甲品质升级前盔甲至少达到的盔甲品质。

  • crystal:为升级水晶物品的相关设置,与上面盔甲本身对应选项近乎一样,不再赘述。其中 giveAmount 是升级消耗的水晶物品数量。

  • properties:该盔甲品质给盔甲的属性。下面的 helmet/chestplate/elytra/leggings/boots 子选项分别为 头盔、胸甲、鞘翅、护腿、靴子 的具体属性,不能删减。

其中:

  • armor:盔甲属性。

  • toughness:盔甲韧性属性。

  • knockbackResistance:抗击退属性。

  • speedPercentage:速度加成百分比。

  • attackSpeedPercentage:攻击速度加成百分比。

  • attackDamagePercentage:攻击伤害加成百分比。

  • attackKnockbackPercentage:攻击击退加成百分比。

有关盔甲的原版属性相关知识,你可以在 Minecraft Wiki 上查看。

最后更新于