跳到正文

Resistance Formulation

作者:TysonTheEmber

A mod that allow you to set custom a formula for the resistance potion effect

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Resistance Formula

THIS MOD DOESN’T REQUIRE SINYTRA CONNECTOR, UNLIKE RESISTANCE BALANCER

Lightweight, server-side-only mod that lets you define a custom formula for the Resistance effect’s damage reduction.
Tweak Resistance to be weaker, stronger, or anything in between—without touching armor math or other mods.


Features

  • Replace vanilla’s fixed 20% per level with your formula.
  • Add an extra flat bonus per level (e.g., +5% per level).
  • Works serverside only (clients don’t need it installed).
  • Prevents Resistance V+ invincibility by enforcing a minimum final damage.
  • Compatible with armor, Protection enchants, attributes, and most combat mods.

Configuration
A config file is generated at config/resistanceformula-common.toml.

Keys:

  • formula → math expression, using a variable level (default "0.20 * level")
  • flatReductionPerLevel → additional flat % per level (default 0.00)
  • maxReduction → caps damage reduction (default 0.00)

Examples:

  • Weaker than vanilla: formula = "0.05 * level"
  • Stronger than vanilla: formula = "0.10 + 0.15 * level"
  • Curved scaling: formula = "0.10 * (level ^ 1.25)", flatReductionPerLevel = 0.02

How It Works

  • Captures raw incoming damage before vanilla mitigation.
  • Adjusts the final damage so the net reduction matches your formula.
  • Guarantees you still take damage even at very high Resistance levels.

Testing

Try Resistance II with /effect give @s minecraft:resistance 99999 1 true.

  • Vanilla: 40% reduction
  • Config formula = "0.05 * level" → 10% reduction
  • Config formula = "0.25 * level" → 50% reduction

Permissions

  • Modpacks: Allowed
  • Servers: Allowed
  • Forks/ports: Ask me first

常见问题

Resistance Formulation 支持哪些 Minecraft 版本?

Resistance Formulation 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Resistance Formulation 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

TysonTheEmber 的其他作品

查看全部 →