1.20.1-forge-TinkersKubeJSArsenal-0.2.0
Curse Maven Snippet
What's new
0.2.0
新增:材料三围与属性公式的 KubeJS 写法(需要 HPTlib 1.1.0 及以上)
- 材料:
.properties(硬度, 密度, 韧性)或.properties({...})填写三围,.excludeFormula(...)排除属性类型,.replaceStats()开启替换模式(只用公式结果)。 event.statFormula(属性类型):.field()、.levels()、.tiers()、.trait()按三围生成材料数值与特性。event.partFormula(部件):.stat()、.trait()按部件材料三围为工具额外加成。- 三围写入材料属性文件的
properties字段,与数据包写法结果完全一致。
修复
- 数据事件中某个脚本报错时,不再中断其余脚本的执行。
其他
- 现在强制依赖 HPTlib;许可证改为 MIT。
New: KubeJS support for material properties and stat formulas (requires HPTlib 1.1.0+)
- Materials:
.properties(hardness, density, toughness)or.properties({...}),.excludeFormula(...)to exclude stat types,.replaceStats()for replace mode (formula results only). event.statFormula(statType):.field(),.levels(),.tiers()and.trait()generate material stats and traits from properties.event.partFormula(part):.stat()and.trait()add extra tool bonuses based on the part material's properties.- Properties are written to the
propertiesfield of the material stats file, giving the same result as a data pack.
Fixes
- An error in one data event script no longer stops the remaining scripts.
Other
- HPTlib is now a required dependency; the license is now MIT.
This mod has no additional files