Custom Item Model
作者:rebot | 分类:模组
价格:0 墨喵币
下载量:0
点赞:0
版本 0.1.0b
本资源为搬运资源,原资源地址:
https://modrinth.com/mod/custom-item-model
资源信息
Minecraft 版本: 1.21.1
平台: fabric
标签: decoration
资源介绍
CIM | Custom Item Model
English **Adds support for fully-custom animated item models using simple vanilla-style 'JSON'** --- Requires mods - [owo-lib](https://modrinth.com/mod/owo-lib) - [GeckoLib](https://modrinth.com/mod/geckolib) --- How it works #1 Model registration Create the file `cim_models.json` in your resource pack namespace at `assets//cim_models.json` (**Do not use the `cim` namespace!**) Then write the following content: ```json { "entries": [ // List of entries ] } ``` Add a new element to entries with the following structure: ```json { "items": [ /* List of `item_id`'s */ ], "components": { /* Components filter */ }, "mode": /* Component filter mode: any | all | only */, "model": /* Model ID */ } ``` > Where: > - `items` — A list of item IDs used to filter items. > - To apply the model to all items, use "*all*". > - `components` — A J`SON object used to filter items by components. > - To apply the model regardless of components, omit this field. > - `mode` — Controls how the components filter is applied. > - `any` — The item must contain at least one of the listed components. > - `all` — The item must contain all listed components. Other components are ignored. > - `only` — The item must contain only the listed components and no others. > - `model` — The model location. > - Format: namespace:folder_name, where folder_name is a directory inside cim_models. #2 Model properties setup If you only need to replace the model and/or animations, the following files must be present in the `folder_name` directory: ``` /cim_models// |- model.geo.json | Item model file |- texture.png | Texture for model |- animations.json | Animations for model (optional) \- display.json | Display transform for model (optional) ``` You **must use these exact file names**. Otherwise, if you need more detailed model configuration, you must create a `properties.json` file at `/cim_models//properties.json` with the following content: ```json { "name": /* Model name (currently unused) */, "authors": /* List of authors (currently unused) */, "disable_ground_bobbing": true, // Disables item floating (up-down movement) "disable_ground_spinning": true, // Disables item spinning on the ground "display_context": { /* Mapping between item_display_context and cim_profile */ } } ``` The display_context field defines the default `profile` for the `item_display_context` equal to none: ```json "none": { // You can overwrite it "model": "./model.geo.json", "texture": "./texture.png", "animations": "./animations.json", "display": "./display.json" } ``` > Where: > - model — Path to the model resource. Use the ./ prefix for local resources. > - texture — Path to the model texture. Use the ./ prefix for local resources. > - animations — Path to the animations file. Optional. Use the ./ prefix for local resources. > - display — Path to the display transform file. Optional. Use the ./ prefix for local resources. For other contexts, it is not necessary to rewrite the profile exactly, it is enough to specify only the necessary parameters in the profile. The rest will be taken from the `none` context.
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
请 登录 后发表评论。
举报此资源
请登录后举报
暂无评论,抢个沙发吧~