本模组的唯一官方上传渠道是 Curse 网络(Curse、CurseForge、Twitch 启动器等)以及 GitHub!
现已支持设置最低附魔值和最大等级!
LootingVI 使得可以为所有原版附魔设置最大等级和附魔值,适用于那些可以拥有更高等级的附魔。
你可以在配置文件中为每种附魔设置最高可达 10 的等级上限。
这些附魔包括:
- 锋利,
- 亡灵杀手,
- 节肢杀手,
- 保护,
- 火焰保护,
- 弹射物保护,
- 爆炸保护,
- 摔落保护,
- 呼吸,
- 饵钓,
- 荆棘,
- 火焰附加,
- 引灵,
- 击退,
- 穿刺,
- 穿透,
- 冲击,
- 横扫之刃,
- 快速装填,
- 效率,
- 耐久,
- 水下速掘,
- 冰霜行者(仅限等级),
- 掠夺,
- fortune(幸运),
- 海之眷顾,
- 力量,
- 灵魂疾行.
这是通过重写附魔的 getMaxLevel 和 getMinEnchantability 方法来实现的,使其返回自定义值!
此模组还添加了一种“苦力怕杀手”附魔,使你对苦力怕造成近乎无限的伤害。
配置说明
LootingVI 的配置文件的结构如下:
每种附魔对应三个整数字段。
其中一个是 EnchantmentLvl 字段,用于设置该附魔存在的最大等级。
这适用于 /enchant 命令、创造模式物品栏、铁砧合成等场景。
另外还有 BaseEnchantability(基础附魔值)和 EnchantabilityMultiplier(附魔值倍率)两个字段。
这两个字段结合目标等级,可以转换为附魔值。
计算公式为:“baseEnchantability + (enchantmentLevel - 1) * enchantabilityMultiplier”。
例如,对于等级 5 的掠夺附魔,计算结果为 “15 + (5 - 1) * 9 = 51”。
这个附魔值用于确定你在附魔台上能获得多少级的附魔。
具体做法是:检查附魔台提供的附魔等级加上一个随机值(该随机值部分取决于要附魔的物品),判断其是否介于上述计算出的附魔值与附魔的最大附魔值 maxEnchantability 之间。
maxEnchantability 目前不可配置,它通常是上述附魔值加上一个硬编码的值,该值在大多数情况下取决于具体的附魔类型。
因此,在上述示例中(使用默认配置的掠夺附魔),你在附魔台上能获得的最高掠夺等级为 2 或 3,具体取决于随机值。
欢迎在免费整合包中使用本模组。
THE ONLY OFFICIAL UPLOADS OF THIS MOD ARE ON THE CURSE NETWORK(CURSE, CURSEFORGE, TWITCH LAUNCHER, ETC) AND GITHUB!
Now allows setting the min enchantability and max level!
LootingVI makes it possible to set the max level and enchantability for all vanilla enchantments, where higher levels work.
You can set the max level for each enchantment up to 10 in the config file.
These Enchantments are:
- Sharpness,
- Smite,
- Bane of Arthropodes,
- Protection,
- Fire Protection,
- Projectile Protection,
- Blast Protection,
- Feather Falling
- Respiration,
- Lure,
- Thorns,
- Fire Aspect,
- Riptide,
- Knockback,
- Impaling,
- Piercing,
- Punch,
- Sweeping Edge,
- Quick Charge,
- Efficiency,
- Unbreaking,
- Depth Strider,
- Frost Walker(Level only),
- Looting,
- Fortune,
- Luck of the Sea,
- Power,
- and Soul Speed.
This is achived by overriding the getMaxLevel and getMinEnchantability methods of the enchantments to return a custom value!
This mod also adds a Creeper Kill enchantment that makes you deal almost infinite amounts of damage to creepers.
Configuration
The LootingVI config file works like this:
There are three integer fields per enchantment.
One of them is the EnchantmentLvl field, which sets the max level of the enchantment that can exist.
This applies to the enchant command, the creative inventory, anvil combiming, etc.
There are also the BaseEnchantability and EnchantabilityMultiplier fields.
These two, combined with the target level, can be converted to the enchantability value.
The equation for this is "baseEnchantability + (enchantmentLevel - 1) * enchantabilityMultiplier".
For example for level 5 looting this would be "15 + (5 - 1) * 9 = 51".
This enchantability value is used to determine what level of the enchantment you can get in the enchanting table.
This is done by checking the enchanting level from the enchanting table plus some random value that partially depends on the item to enchant is between the enchantability calculated above, and the enchantments maxEnchantability.
The maxEnchantability currently can not be configured, but is the enchantability from above plus some hardcoded value which depends on the enchantment in most cases.
So in the example from above(looting with the default config) the max looting level you can get in an enchanting table is 2 or 3, depending on the random value.
Feel Free to use this mod in Free Modpacks.
评论 0
登录后参与评分
还没有评论,来抢沙发吧