r/MinecraftCommands • • 20d ago

Help | Java 1.21-1.21.3 Would it be possible to use custom model data with mods like create and models from blockbench?

So, ive made a custom model for wrench from create mod, in blockbench and ive been wondering if i can use custom model data to replace original model with my custom one.

3 Upvotes

4 comments sorted by

1

u/GalSergey Datapack Experienced 20d ago

Yes, of course. You need to find the model file in the mod files in the assets/create/models/item folder and create a model with the same name and path in your resource pack.

1

u/Gabiminecraft 19d ago

Ooooh, so like normal custom model data but with mod name instead Minecraft? I can do that

Also hello again, thanks for help!

1

u/Gabiminecraft 19d ago

Could you elaborate further on the file Structure though?

1

u/GalSergey Datapack Experienced 19d ago

Minecraft uses models from the assets/<namespace>/models/item/ folder for items. In vanilla, without mods, items are read only from the minecraft namespace, but mods add their own namespace and define models for items there. You can open it.The jar file of the mod is archived and you will see the "assets" folder there with all the assets that the mod uses. So using the resource pack, you can substitute both vanilla and mod models of items.

Using the example of the vanilla item minecraft:stick, you can replace assets/minecraft/models/item/stick.json with such content:

{
  "parent": "minecraft:item/generated",
  "textures": {
    "layer0": "minecraft:item/apple"
  }
}

So this will replace the minecraft:stick model with the minecraft:apple model.