You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I haven't tested it but under https://minecraft.wiki/w/Items_model_definition it says now:
So I guess the resource location must have changed with 1.24.4, which means you need to move your models/item/ to the new source.
But as I said I haven't tested this so it also may be that this wont work. Nevertheless give it a try
EDIT (important)
So now I tested it and found out how it works
Let the model files (e.g. the .json from blockbench) within "assets/<your_mod_id>/models/item"
In addition to that do the following:
Every model you added will need a new file under "assets/<your_mod_id>/items" That file is also a JSON and looks like this:
{
"model": {
"type": "minecraft:model",
"model": "your_mod_id:item/custom_item"
}
}
- "type" can be minecraft:model, minecraft:composite, minecraft:condition, minecraft:select, minecraft:range_dispatch, minecraft:empty, minecraft:bundle/selected_item or minecraft:special. (In most cases you would need minecraft:model)
- "model" is the path to your actual model for this item. For example the value above would point to "assets/your_mod_id/models/item/custom_item"
public ExampleMod(FMLJavaModLoadingContext context) {
var modEventBus = context.getModEventBus();
}
Refer to the javadocs and MDK for more pointers and examples.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.