#import model into minecraft
99 messages · Page 1 of 1 (latest)
Please make sure to read #1029373817119838218 as it may answer your question!
Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.
show what you have tried
In steps:
-
First I downloaded the default texture pack template from 1.20.4 (I want the model in this version) on this website https://texture-packs.com/download/1-20-4-default-template/ I extracted this zip-file. It looks like the first image.
-
I open assets/minecraft and in that folder I create a new folder "cit". In cit I create a new folder "weapons". In weapons I create a new folder "axe1".
-
In the folder axe1 I place the json file from the blockbench model. I also make a notepad file that has the text in the second image in it.
-
I then rename the default texture pack name and icon. I drag it into the resource packs folder.
-
I open the game and rename a diamond pickaxe "axe1" and I don't get my model like it happens in the tutorial I was watching.
After this I also tried just going to the resource pack folder and then making a resource pack by creating folders -> [Resource pack name]/assets/minecraft/cit/weapons/axe1
I then placed the json and properties file in there, but this didnt even show me a resource pack to click on ingame
what game version is this
also NEVER use texture-packs.com
also NEVER download the vanilla assets / template packs from online. extract them properly
!faq default pack
Disclaimer: Use these packs as REFERENCE, don't put your models inside them, it just increases your pack needlessly. Also don't put any of the unedited files from it into your own pack. The distribution of default assets in your pack is illegal.
For Java Edition:
Simple Method
Use the Pack Creator utility from the Resource Pack Utilities Blockbench plugin. Make sure to enable the Import vanilla assets option.
Manual Method
(This works the same for all versions, 1.21 is just used as an example here)
Go to .minecraft/versions/1.21 and open the 1.21.jar file with a zip program.
Alternativley you can copy the .jar file and change the file extension to .zip, then double click it.
Extract/copy the "assets" folder from inside the jar. This folder contains all the default models and textures.
For Bedrock Edition:
Go to the bedrock resource pack documentation and scroll to "Building the Resource Pack". The download for the vanilla resource pack can be found right above that title. You can also use this Direct download link.
thats how you do it properly
Thank you very much! I’m really terrible at these kind of things
can you send the pack
With or without the model I put into it
are you trying to upload a folder
yes
when making packs, do not do it inside the vanilla assets
can you make a new pack, and put ONLY the stuff you made inside that
then send that one
so not the minecraft default textures
no, never include those in a pack you make
only use the vanilla assets as a guide of how to structure a pack
"AliveRPG" is the name of the resource pack
Currently the only thing inside the pack should be the blockbench model of an axe "axe1". I have a total of 4 models I want to import, but I want to see if 1 works first
@velvet marsh found your problem
oh shit
Do you think the model works if I remove the extra .json and .properties and add this extracted file to my resource packs?
Im not using optifine
what are you using then
CIT is an optifine feature
So I dont even need the cit folder if I dont use optifine
this is not possible without optifine or similar mods
the tutorial you watched was a CIT tutorial
I thought it would apply still if you weren't using optifine
if you want to replace the diamond pickaxe model completely, then you just replace its model file in the assets/minecraft/models/item folder
if you want to do it based on the item name, that is an optifine feature, and you need optifine to do that
ohh okay
Is remodelling existing minecraft models for items the only way to get your model into the game using vanilla minecraft?
depends. is this for survival mode usage
how will they get the custom item
They can't craft. It will be given to them through plugins
ok then yes this is simple
Disclaimer: This only works for items (not placed blocks!) and only if you are in Java Edition 1.14 or later!
Example
To give, for example, a stick more models you would have something like this in YourResourcePack/assets/minecraft/models/item and call it stick.json.
stick.json
{
"parent": "item/generated",
"textures": {
"layer0": "item/stick"
},
"overrides": [
{ "predicate": {"custom_model_data": 1}, "model": "item/custom_stick"},
{ "predicate": {"custom_model_data": 2}, "model": "custom/branch"},
{ "predicate": {"custom_model_data": 3}, "model": "block/stone"}
]
}```
That would give the stick 3 additional models it could have.
If you use something else than a stick replace the parts before "overrides" with the exact same information the default model has (The one in models/**item**, not the one in models/block!)
If the default model also has override entries put them before your custom ones in the "overrides" section (don't forget commas between entries).
Type `!faq default-pack` if you don't know how to get the default assets.
# But can I do it without editing .json manually?
Well, good for you Blockbench can actually add overrides to model files.
So copy the default model of the item you wanna add models to into your pack, then load it into Blockbench.
In Blockbench go to Tools > Edit Override Predicates.
There you can add overrides and define the custom_model_data predicates you wanna add.
See the _General knowledge/tips_ section further down if you don't know how to set the model path here.
After you are done, save/export the .json model again.
# Ingame use
To get the item with a custom model use: `/give <player> stick[custom_model_data=X]`
_(`/give <player> stick{CustomModelData:X}` for 1.20.5 and older)_
# General knowledge/tips
- A model path is **always** relative to the "models" folder of your pack.
So `"item/custom_stick"` will load the model in `YourPack/assets/minecraft/models/`**`item`** called **custom_stick**.json;
while `"custom/branch"` will load the model in `YourPack/assets/minecraft/models`**`custom`** called **branch**.json;
and so on.
- The predicates have to be ordered from lowest to highest! This is because Minecraft reads the predicates as "this value or higher" and uses the last entry whose predicate checks are fullfilled.
not trying to 3rd wheel but didnt mojang add that feature to vanilla with custom item data in 1.20 or sumn
So if I make the folder AliveRPG/assets/minecraft/models/item and add the stick.json to it with the code that is in the explanation, where would I put my models json files
idk where you got that idea, it was added in 1.14
not sure i just saw something on reddit proclaiming its new
well you wouldnt use stick.json, you would use diamond_pickaxe.json because thats the item you want to base it off
and that guide above tells you exactly where to put all your stuff
I think 1.20 added the option to add item components to crafting outputs, which wasn't possible before
(or maybe it was 1.21, haven't looked into it in a while tbh).
No "change model based on name" or anything like that hough
yeah thats what i meant
Well, with how much more modular items are becoming it's only a matter of a couple updates until we get fully data driven items we can add via datapacks I guess.
Im so sorry to bother again
I've gotten the model into the game (I think) with your guide. However the model now seems to be purple and black
Is it because I havent correctly exported the model?
you have an excess , at the end there and are missing a ]
also, I think you meant to write "item/axe_1"? or is your model literally called item_axe1.json and is directly in the models folder?
No it is named item_axe1
But I noticed it was in a folder named item as well
Im going to retry with the feedback you’ve given me
It works! thank you
its now still ike this, but Ive seen someone examples of other people having this problem so I'll look into that
!faq textures
Jokes aside, textures need to be anywhere inside the "YourPack/assets/minecraft/textures" folder inside your pack. If you are in 1.19.3 or newer they need to be in textures/item or textures/block.
If you are using the downloaded version of Blockbench, make sure you also load the textures from the correct location into Blockbench (or save textures from BB directly there), or the relative texture path inside the model will break.
If you are using the web version you need to rightclick every texture and specify the folder path (after "textures") and name of every texture manually instead.
If you wanna use custom subfolders in 1.19.3 or newer use !faq java-1.19.3-textures
How do I refer to the texture that I have
^ this is the model with all textures at #0
after this Im done completely! Im sure of it
specifically this "If you are using the downloaded version of Blockbench, make sure you also load the textures from the correct location into Blockbench (or save textures from BB directly there), or the relative texture path inside the model will break."