物品 Lore
物品描述格式决定了物品描述的外观。你可以在 languages
文件夹中找到默认的 lore-format.yml
文件。可以在languages
文件夹内的 lore-formats
文件夹中添加其他格式。这些格式会在你启动服务器或重新加载插件时加载。
此外,MMOItems支持 MiniMessage!你现在可以在物品描述中使用MiniMessage颜色代码和文本装饰。
创建和使用物品描述格式
要创建新的物品描述格式,只需将默认的 lore-format.yml
文件复制粘贴到对应文件夹中并开始编辑。新格式的ID等同于文件夹内的文件名。使用这个ID将新描述格式分配给物品。
默认物品描述格式
yaml
lore-format:
# - '{bar}&8&m--------&f&l &nGeneral&8 &m--------------'
- '#item-type#'
- '{bar}'
- '#required-class#'
- '#required-level#'
- '#required-dexterity#'
- '#required-strength#'
- '#required-intelligence#'
- '#success-rate#'
- '{bar}'
- '#soulbound#'
# - '{bar}&8&m--------&f&l &nProfessions&8 &m--------------'
- '#profession-alchemy#'
- '#profession-enchanting#'
- '#profession-farming#'
- '#profession-fishing#'
- '#profession-mining#'
- '#profession-smelting#'
- '#profession-smithing#'
- '#profession-woodcutting#'
# - '{bar}&8&m--------&f&l &nStatistics&8 &m-------------'
- '{bar}'
- '#custom-myluck#'
- '#can-identify#'
- '#can-deconstruct#'
- '#can-deskin#'
- '#attack-damage#'
- '#knockback#'
- '#recoil#'
- '#note-weight#'
- '#attack-speed#'
- '#arrow-velocity#'
- '#critical-strike-chance#'
- '#critical-strike-power#'
- '#skill-critical-strike-chance#'
- '#skill-critical-strike-power#'
- '#range#'
- '#pvp-damage#'
- '#pve-damage#'
- '#blunt-power#'
- '#blunt-rating#'
- '#weapon-damage#'
- '#magic-damage#'
- '#skill-damage#'
- '#physical-damage#'
- '#projectile-damage#'
- '#defense#'
- '#damage-reduction#'
- '#fall-damage-reduction#'
- '#fire-damage-reduction#'
- '#magic-damage-reduction#'
- '#projectile-damage-reduction#'
- '#physical-damage-reduction#'
- '#pve-damage-reduction#'
- '#pvp-damage-reduction#'
- '#undead-damage#'
- '#faction-damage-undead#'
- '#block-power#'
- '#block-rating#'
- '#dodge-rating#'
- '#parry-rating#'
- '#block-cooldown-reduction#'
- '#dodge-cooldown-reduction#'
- '#parry-cooldown-reduction#'
- '#armor#'
- '#armor-toughness#'
- '#knockback-resistance#'
- '#max-health#'
- '#max-mana#'
- '#max-stamina#'
- '#health-regeneration#'
- '#mana-regeneration#'
- '#stamina-regeneration#'
- '#movement-speed#'
- '#staff-spirit#'
- '#lute-attack-effect#'
- '#two-handed#'
- '#handworn#'
- '#autosmelt#'
- '#bouncing-crack#'
- '#pickaxe-power#'
- '#restore-health#'
- '#restore-food#'
- '#restore-saturation#'
- '#restore-mana#'
- '#restore-stamina#'
- '#soulbinding-chance#'
- '#soulbound-break-chance#'
- '#soulbound-level#'
- '#repair#'
- '#repair-percent#'
- '#item-cooldown#'
- '#lifesteal#'
- '#spell-vampirism#'
- '#additional-dexterity#'
- '#additional-strength#'
- '#additional-intelligence#'
- '#additional-experience#'
- '#additional-experience-alchemy#'
- '#additional-experience-enchanting#'
- '#additional-experience-farming#'
- '#additional-experience-fishing#'
- '#additional-experience-mining#'
- '#additional-experience-smelting#'
- '#additional-experience-smithing#'
- '#additional-experience-woodcutting#'
- '#cooldown-reduction#'
- '#mana-cost#'
- '#stamina-cost#'
- '#max-consume#'
# - '{bar}&8&m--------&2&l &nElements&8 &m--------------'
- '{bar}'
- '#elements#'
# - '{bar}&8&m--------&b&l &nEffects&8 &m---------------'
- '{bar}'
- '#effects#'
# - '{bar}&8&m--------&b&l &nAbilities&8 &m--------------'
- '{bar}'
- '#abilities#'
- '{bar}'
- '#commands#'
# - '{bar}&8&m--------&b&l &nEffects&8 &m---------------'
# - '#perm-effects#'
# - '#arrow-potion-effects#'
# - '{bar}&8&m--------&e&l &nGem Stones&8 &m-----------'
- '{bar}'
- '#gem-stones#'
# - '{sbar}&8&m--------------------------------'
- '{bar}'
- '#lore#'
- '#gem-stone-lore#'
- '{bar}'
- '#set#'
- '{bar}'
- '#tier#'
- '#durability#'