先看一段配置文件 配置文件为1.12.2版本的持久能力

ability {

    # Adds absorbtion hearts          该条是这个能力会不会在游戏内启用

    B:absorbtion=true                      true是启用false是禁用 absorbtion是能力名为伤害吸收


    # The maximum ability level.      该条是该能力在游戏中可升到的最大等级

    I:absorbtion.maxLevel=10           这个10级是我修改后的等级


    # Rarity of this ability.            这个等级是他的稀有等级也就是品质该能力为二级稀有      

    I:absorbtion.rarity=2


    # The xp required per level.    这个是该能力升级所需的经验为75点

    I:absorbtion.xpPerLevel=75

core {

    # If totems should spawn in loot chests.  能力是否在废弃矿道和下界要塞的箱中生成

    B:ability_totem.lootChests=true


    # This many totems combined in a crafting grid produces a new random totem (0 to disable)

    I:ability_totem.totemCraftingCount=3   这个是你要用多少个能力进行无序合成来获得新的能力

# When combining totems, percentage chance of getting one higher rarity than normal.

    I:ability_totem.totemCraftingRarityIncreasePercent=15   你在无序合成时获得高等级能力的概率

# true: Abilities drop when players die; false: Abilities drop when players die by the hand of other players.

    B:general.alwaysDropAbilities=false    玩家死亡时是否掉落能力 false为不掉落true为掉落


    # How many abilities should be dropped on player death.

    I:general.dropAbilitiesOnPlayerDeath=1  玩家死亡时掉多少能力 1为掉一个能力

# These mobs will not be affected by hostile area potion effects such as poison or weakness. (Java regular expressions are allowed)

    S:general.friendlyMobs <   哪些生物不会受到玩家的范围能力攻击例如中毒

        minecraft:armor_stand

        minecraft:villager

        minecraft:villager_golem

        minecraft:cow

        minecraft:sheep

        minecraft:pig

        minecraft:chicken

        minecraft:rabbit

        minecraft:mooshroom

        minecraft:horse

        minecraft:donkey

        minecraft:mule

        minecraft:llama

        minecraft:ocelot

        minecraft:parrot

        minecraft:wolf

        minecolonies:.*

# If the magnetize ability should move xp.  磁性能力是否会吸引经验值

    B:general.magnetizeMoveXp=true


    # The maximum amount of abilities a player can have, -1 is infinite.

    I:general.maxPlayerAbilities=-1   一个玩家可以拥有的能力量 -1为无限个能力


    # 1/x chance for mobs to have abilities. 生物拥有能力的几率是多少 默认情况下是50也就是五十分之一

    I:general.mobAbilityChance=50              I:general.mobAbilityChance=x

# Mobs that won't have abilities that can be dropped via totems. You can add things like 'minecraft:pig'.

    S:general.mobDropBlacklist < 这里是黑名单 可以设置不能拥有能力的生物

     >

    # The maximum rarity of totems to spawn when a player first logs in. [0-3], -1 disables totem spawning.

    I:general.totemMaximumSpawnRarity=1  这里为玩家在出生时获得的能力的稀有等级 -1是在出生时不给能力图腾