盔甲

盔甲

自定义盔甲配置可以在 plugins/EcoArmor/sets 文件夹中找到,它的文件名称即为 盔甲id,其一般配置如下:

conditions: []
effects:
  - id: bonus_health
    args:
      health: 10
  - id: damage_multiplier
    args:
      multiplier: 0.9
    triggers:
      - melee_attack
  - id: permanent_potion_effect
    args:
      effect: regeneration
      level: 1
advancedEffects:
  - id: bonus_health
    args:
      health: 20
  - id: hunger_multiplier
    args:
      multiplier: 0.5
  - id: permanent_potion_effect
    args:
      effect: regeneration
      level: 1
sounds:
  equip:
    enabled: false
    sound: ""
    volume: 1
    pitch: 1
  advancedEquip:
    enabled: false
    sound: ""
    volume: 1
    pitch: 1
  unequip:
    enabled: false
    sound: ""
    volume: 1
    pitch: 1
advancedLore:
  - ''
  - "<gradient:f12711>&lADVANCED BONUS</gradient:f5af19>"
  - "&8» &dGet 20 more hearts"
  - "&8» &dReduce hunger loss by 50%"
  - "&8&oRequires full set to be worn"
shard:
  item: prismarine_shard unbreaking:1 hide_enchants
  name: "<GRADIENT:f12711>Advancement Shard:</GRADIENT:f5af19> &5Angelic"
  lore:
    - "&8Drop this onto &5Angelic Armor"
    - "&8to make it <GRADIENT:f12711>Advanced</GRADIENT:f5af19>."
  craftable: false
  recipe:
    - prismarine_shard
    - ecoarmor:set_angelic_helmet
    - prismarine_shard
    - ecoarmor:set_angelic_chestplate
    - nether_star
    - ecoarmor:set_angelic_leggings
    - prismarine_shard
    - ecoarmor:set_angelic_boots
    - prismarine_shard
helmet:
  item: leather_helmet color:#bd15a9 hide_dye
  name: "&5Angelic Helmet"
  advancedName: "<GRADIENT:f12711>Advanced</GRADIENT:f5af19>&5 Angelic Helmet"
  effectiveDurability: 768
  effects: []
  advancedEffects: []
  conditions: []
  lore:
    - "&5&lANGELIC SET BONUS"
    - "&8» &dGain 10 more hearts"
    - "&8» &dPermanent regeneration"
    - "&8» &dDeal 10% less melee damage"
    - "&8&oRequires full set to be worn"
    - ''
    - "&fTier: %tier%"
    - "&8&oUpgrade with an Upgrade Crystal"
  craftable: true
  defaultTier: default
  recipe:
    - netherite_block
    - ecoitems:enchanted_ender_eye ? netherite_ingot
    - diamond_block
    - air
    - golden_helmet
    - air
    - gold_block
    - ecoitems:armor_core ? enchanted_book mending:1
    - gold_block
chestplate:
  item: leather_chestplate color:#bd15a9 hide_dye
  name: "&5Angelic Chestplate"
  advancedName: "<GRADIENT:f12711>Advanced</GRADIENT:f5af19>&5 Angelic Chestplate"
  effectiveDurability: 1024
  effects: []
  advancedEffects: []
  conditions: []
  lore:
    - "&5&lANGELIC SET BONUS"
    - "&8» &dGain 10 more hearts"
    - "&8» &dPermanent regeneration"
    - "&8» &dDeal 10% less melee damage"
    - "&8&oRequires full set to be worn"
    - ''
    - "&fTier: %tier%"
    - "&8&oUpgrade with an Upgrade Crystal"
  craftable: true
  defaultTier: default
  recipe:
    - netherite_block
    - ecoitems:enchanted_ender_eye ? netherite_ingot
    - diamond_block
    - air
    - golden_chestplate
    - air
    - gold_block
    - ecoitems:armor_core ? enchanted_book mending:1
    - gold_block
elytra:
  item: elytra
  name: "&5Angelic Elytra"
  advancedName: "<GRADIENT:f12711>Advanced</GRADIENT:f5af19>&5 Angelic Elytra"
  effectiveDurability: 1024
  effects: []
  advancedEffects: []
  conditions: []
  lore:
    - "&5&lANGELIC SET BONUS"
    - "&8» &dGain 10 more hearts"
    - "&8» &dPermanent regeneration"
    - "&8» &dDeal 10% less melee damage"
    - "&8&oRequires full set to be worn"
    - ''
    - "&fTier: %tier%"
    - "&8&oUpgrade with an Upgrade Crystal"
  craftable: true
  defaultTier: default
  recipe:
    - netherite_block
    - ecoitems:enchanted_ender_eye ? netherite_ingot
    - diamond_block
    - air
    - elytra
    - air
    - gold_block
    - ecoitems:armor_core ? enchanted_book mending:1
    - gold_block
leggings:
  item: leather_leggings color:#bd15a9 hide_dye
  name: "&5Angelic Leggings"
  advancedName: "<GRADIENT:f12711>Advanced</GRADIENT:f5af19>&5 Angelic Leggings"
  effectiveDurability: 1024
  effects: []
  advancedEffects: []
  conditions: []
  lore:
    - "&5&lANGELIC SET BONUS"
    - "&8» &dGain 10 more hearts"
    - "&8» &dPermanent regeneration"
    - "&8» &dDeal 10% less melee damage"
    - "&8&oRequires full set to be worn"
    - ''
    - "&fTier: %tier%"
    - "&8&oUpgrade with an Upgrade Crystal"
  craftable: true
  defaultTier: default
  recipe:
    - netherite_block
    - ecoitems:enchanted_ender_eye ? netherite_ingot
    - diamond_block
    - air
    - golden_leggings
    - air
    - gold_block
    - ecoitems:armor_core ? enchanted_book mending:1
    - gold_block
boots:
  item: leather_boots color:#bd15a9 hide_dye
  name: "&5Angelic Boots"
  advancedName: "<GRADIENT:f12711>Advanced</GRADIENT:f5af19>&5 Angelic Boots"
  effectiveDurability: 1024
  effects: []
  advancedEffects: []
  conditions: []
  lore:
    - "&5&lANGELIC SET BONUS"
    - "&8» &dGain 10 more hearts"
    - "&8» &dPermanent regeneration"
    - "&8» &dDeal 10% less melee damage"
    - "&8&oRequires full set to be worn"
    - ''
    - "&fTier: %tier%"
    - "&8&oUpgrade with an Upgrade Crystal"
  craftable: true
  defaultTier: default
  recipe:
    - netherite_block
    - ecoitems:enchanted_ender_eye ? netherite_ingot
    - diamond_block
    - air
    - golden_boots
    - air
    - gold_block
    - ecoitems:armor_core ? enchanted_book mending:1
    - gold_block

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

  • 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 的内容。

盔甲品质

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

自定义盔甲品质配置可以在 plugins/EcoArmor/tiers 文件夹中找到,它的文件名称即为 盔甲配置id,其一般配置如下

id: ancient
display: "&6&k!!&r <GRADIENT:ffb347>&lANCIENT</GRADIENT:ffcc33>&r &6&k!!&r"
requiresTiers: []
crystal:
  item: end_crystal
  name: "<GRADIENT:ffb347>Ancient Upgrade Crystal</GRADIENT:ffcc33>"
  craftable: false
  recipe:
    - air
    - netherite_block
    - air
    - netherite_block
    - ecoarmor:upgrade_crystal_cobalt
    - netherite_block
    - air
    - netherite_block
    - air
  giveAmount: 1
  lore:
    - "&8Drop this onto an armor piece"
    - "&8to set its tier to:"
    - "&6&k!!&r <GRADIENT:ffb347>&lANCIENT</GRADIENT:ffcc33>&r &6&k!!&r"
properties:
  helmet:
    armor: 3
    toughness: 5
    knockbackResistance: 0
    speedPercentage: 5
    attackSpeedPercentage: 5
    attackDamagePercentage: 0
    attackKnockbackPercentage: 0
  chestplate:
    armor: 8
    toughness: 5
    knockbackResistance: 0
    speedPercentage: 5
    attackSpeedPercentage: 5
    attackDamagePercentage: 0
    attackKnockbackPercentage: 0
  elytra:
    armor: 3
    toughness: 5
    knockbackResistance: 0
    speedPercentage: 5
    attackSpeedPercentage: 5
    attackDamagePercentage: 0
    attackKnockbackPercentage: 0
  leggings:
    armor: 6
    toughness: 6
    knockbackResistance: 0
    speedPercentage: 5
    attackSpeedPercentage: 5
    attackDamagePercentage: 0
    attackKnockbackPercentage: 0
  boots:
    armor: 3
    toughness: 6
    knockbackResistance: 0
    speedPercentage: 5
    attackSpeedPercentage: 5
    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 上查看。

最后更新于