OvenLib 是 Polymerized Bakery 团队用于多个模组的基础库,旨在减少重复代码。该库主要作为 Polymerlib 的辅助工具。
目前它包含两个功能:ToolMaterialFactory 和 ToolFactory。
- ToolMaterialFactory 让自定义工具材质的制作变得轻松便捷。
- ToolFactory 允许你基于指定的材质和名称,轻松构建整套工具(斧头、锄头、镐子、铲子和剑)。你只需调用
ToolMaterialFactory.Generate(挖掘等级, 耐久度<int>, 挖掘速度<float>, 攻击伤害<float>, 附魔能力<int>, 修复材料),它便会自动在注册表中生成对应的工具。(请注意,你仍需自行提供纹理和合成表;我尚未掌握如何通过 DataGen 自动生成合成表。)
目前这就是它的全部功能,但未来我计划让它能够根据配置文件为你生成物品,方便服务器管理员使用!
OvenLib is a library that we at Polymerized Bakery will be using for alot of our mods to help with repition, the library is primarily an Polymerlib helper.
Currently it as two functions, ToolMaterialFactory and ToolFactory
ToolMaterialFactory makes it easy to build custom tool materials.
ToolFactory makes it easy to build entire toolsets (axe, hoe, pickaxe, shovel, and sword) with a specified material and name! This makes it so you just need to call ToolMaterialFactory.Generate(mining level, durability<int>, mining speed<float>, attack damage<float>, enchantability<int>, repairIngredient), and it will automatically generate the tools in the registry. (do note you will need to provide textures and recipies yourself, I have yet to learn how to DataGen for recipies)
Thats about all it does for now, but later I plan on making it able to generate items from a config file for you server owners!
下载 ovenlib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ovenlib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ovenlib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ovenlib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ovenlib
完整更新日志:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧