#import model into minecraft

99 messages · Page 1 of 1 (latest)

velvet marsh
#

Someone made a blockbench model of an axe for me. I followed a tutorial from MrXuiryusGaming to get it into a resource pack for minecraft. However this doesn't work. Does anyone know how I can easily get 4 different blockbench models into a resource pack so I can have them in minecraft?

supple doveBOT
#
Welcome to the help forum!

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.

warm mortar
#

show what you have tried

velvet marsh
#

In steps:

  1. 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.

  2. 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".

  3. 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.

  4. I then rename the default texture pack name and icon. I drag it into the resource packs folder.

  5. 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

warm mortar
#

also NEVER use texture-packs.com
also NEVER download the vanilla assets / template packs from online. extract them properly

#

!faq default pack

supple doveBOT
# warm mortar !faq default pack
FAQ
Minecraft: 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.

warm mortar
#

thats how you do it properly

velvet marsh
#

Thank you very much! I’m really terrible at these kind of things

warm mortar
#

what game version is this

velvet marsh
#

You mean minecraft version?

#

1.20.4

warm mortar
#

can you send the pack

velvet marsh
#

With or without the model I put into it

warm mortar
#

with

#

otherwise i cant test it myself

velvet marsh
#

Hold on a second, I deleted it

#

It says invalid filetype

warm mortar
#

are you trying to upload a folder

velvet marsh
#

yes

warm mortar
#

a folder is not a file

#

you need to zip it

velvet marsh
#

ooooh mb Ill zip it

warm mortar
#

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

velvet marsh
#

so not the minecraft default textures

warm mortar
#

no, never include those in a pack you make

#

only use the vanilla assets as a guide of how to structure a pack

velvet marsh
#

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

warm mortar
#

@velvet marsh found your problem

velvet marsh
#

oh shit

warm mortar
#

you have file extensions hidden in windows

#

unhide them

velvet marsh
warm mortar
#

try it and see

#

you are also missing the optifine folder

velvet marsh
#

Im not using optifine

warm mortar
#

what are you using then

velvet marsh
#

Vanilla minecraft

warm mortar
#

CIT is an optifine feature

velvet marsh
#

So I dont even need the cit folder if I dont use optifine

warm mortar
#

this is not possible without optifine or similar mods

#

the tutorial you watched was a CIT tutorial

velvet marsh
#

I thought it would apply still if you weren't using optifine

warm mortar
#

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

velvet marsh
#

ohh okay

#

Is remodelling existing minecraft models for items the only way to get your model into the game using vanilla minecraft?

warm mortar
#

depends. is this for survival mode usage

velvet marsh
#

It will be used on a server where players are playing an rpgmmo

#

in survival mode

warm mortar
#

how will they get the custom item

velvet marsh
#

They can't craft. It will be given to them through plugins

warm mortar
#

ok then yes this is simple

supple doveBOT
#
FAQ
Java: Custom Model Data

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.
warm mortar
#

you need to use custom model data

#

read that

buoyant sorrel
velvet marsh
#

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

warm mortar
buoyant sorrel
#

not sure i just saw something on reddit proclaiming its new

warm mortar
#

and that guide above tells you exactly where to put all your stuff

velvet marsh
#

ahh I see it now

#

thanks

worthy gust
worthy gust
#

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.

velvet marsh
#

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?

worthy gust
#

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?

velvet marsh
#

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

velvet marsh
#

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

supple doveBOT
# velvet marsh !faq textures
FAQ
Java: Textures Folder

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

velvet marsh
#

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

velvet marsh
# supple dove

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."

velvet marsh
#

I got it!