介绍
TKR Lib
TKR Lib is a library mod. It adds a Strength attribute usable by all living entities, and item components that let weapons scale their damage with the wielder’s Strength. It provides the mechanics; the content that grants Strength is meant to come from datapacks, other mods, or the included commands.
What it provides
tkr:strength — a standard Minecraft attribute carried by every living entity, so any mod or datapack can raise it through the vanilla attribute_modifiers component or /attribute.
tkr:strength_damage — put it on a weapon and that weapon deals extra damage based on the attacker’s Strength. Works on melee and ranged weapons alike. The coefficient and the damage threshold are stored per item, so each weapon can behave differently. Bonus damage rises, then bends smoothly toward a cap of twice the threshold.
tkr:min_strength — a Strength requirement for using an item. Attacks are cancelled while the requirement is unmet.
It also raises the maximum value of all attributes, so large values are no longer silently clamped by the vanilla caps.
Items carrying these components show their values in the tooltip.
Commands
All commands start with /tkr. Run /tkrlist in game to list them with their current syntax.
Requirements
- Minecraft 1.21.1 with NeoForge
License
LGPL-3.0-only. You may depend on it, including from closed-source projects; redistributed derivative works must stay under the LGPL or GPL.
常见问题
TKR Lib 支持哪些 Minecraft 版本?
TKR Lib 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
TKR Lib 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分