Resource Provider Lib
本库专为 Fabric 编写。该库的核心功能包括:
- 允许用户通过 Java 代码向 Minecraft 添加自定义资源包提供程序。
- 提供用于以编程方式生成资源包和数据包的 Java API。
什么是资源包提供程序?
它是一个组件、函数和对象,用于将数据包追加到资源包选择屏幕以及数据选择屏幕的数据包中。
此 API 中的资源包、资产包和数据包是什么?
- 资产包(Asset pack):包含客户端资源的包,例如方块和物品模型及纹理。
- 数据包(Data pack):包含客户端和服务端资源的包,例如合成、烹饪等配方,以及函数和战利品表。
- 资源包(Resource pack):资产包和数据包的组合。
支持生成资产包和数据包的 API?
ResproRegistry.registerAssetPack 和 ResproRegistry.registerDataPack 是生成和注册自定义资源包的入口点。资产包生成器允许你生成自定义物品模型、方块状态、设置包图标、名称和描述。数据包生成器允许你为 Custre 模组生成配方。
未来的开发计划?
我将持续为新版本的 Minecraft 更新此模组,并实现数据包生成器的功能,例如自定义配方生成、战利品表生成以及其他模组支持的自定义数据生成。并将以与数据包生成器相同的方式更新其功能。同时制作 Wiki 页面,提供如何使用此模组和库的指南。
Resource Provider Lib
This library is written for Fabric. Core functionalities for this library:
- To provide users the ability to append custom resource pack providers to Minecraft using Java code.
- Give user API in Java to generate resource and data packs programmatically.
What is a resource pack provider?
It is a component, function, and object that appends packs to the resource pack selection screen and data packs at the data pack selection screen.
Resource, Asset, and Data packs in this API?
- Asset pack. Pack that contains resources for clients. Like block and item models, and textures.
- Data pack. Pack that contains resources for clients and servers. Recipes for crafting, cooking, etc. Functions, loot tables.
- Resource pack. Combination of asset and data packs.
API that allows generating Asset and Data packs?
ResproRegistry.registerAssetPack and ResproRegistry.registerDataPack are entry points for generating and registering custom resource pack. Asset pack generator allows you to generate custom item models, block states, set pack icon, name, and description. Datapack generator allows you to generate recipes for Custre mod.
Development future?
I will keep this mod updated for new Minecraft releases, and implement functionality for the data pack generator, like custom recipe generation, loot table generation, and custom data generation for other mod support. And update functionality the same way as with the data pack generator. Make a wiki page with a guide on how to use this mod, library.
评论 0
登录后参与评分
还没有评论,来抢沙发吧