← Назад к ресурсам
O

ovenlib

Library for Polymerized Bakery, handles alot of repetition in our development and you might find it useful as well!

Modrinth

Описание

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](https://modrinth.com/mod/polymer) 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, mining speed, attack damage, enchantability, 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!