#How to transfer a model into the game?
41 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.
I apologize in advance for my English, it is not my native language.
!faq export-vanilla-java-model
IMPORTANT:
-Any missing folders need to be created if they aren't there yet!
-Do the steps in this exact order!
Step 0: Setup
**-In Blockbench: **
Use the Java Block/Item format. (Check atFile > Project...in Blockbench).
If it's not convert it viaFile > Convert Project. ATTENTION: This can break the model due to format specific restrictions! (see!faq java-rotationand!faq java-sizelimit)
-Setting up your pack:
Create a folder inside Minecraft's resource pack folder (aka "YourPack" for the rest of this guide). It is usually at C:\Users\INSERT_YOUR_PC_USER_HERE\AppData\Roaming\.minecraft\resourcepacks. Put this file https://cdn.discordapp.com/attachments/883449189533638777/899224109869846558/pack.mcmeta in YourPack.
Optionally: Edit it in a text editor and adjust the value of "pack_format" (see https://minecraft.fandom.com/wiki/Pack_format). This only affects whether your pack is shown as "outdated" ingame or not.
Step 1: Saving Textures
Save all your textures first.
To do that either:
-Ctrl+S, or
-click ๐พ next to the texture(s), or
-rightclick the texture(s) and click "Save As"
Save them directly withinYourPack/assets/minecraft/textures/block/...or/item/....
Reason: If you don't do that or move/rename the files later your model won't find the textures anymore.
(For custom subfolders check!faq java-1.19.3-textures)
Don't use capital letters nor spaces in file/folder names. The model will be invalid ingame!.
Step 2: Exporting the Model
After saving the textures useFile > Export > Block/Itemexport it toYourPack/assets/minecraft/models/item(or/block, but only for placed down blocks.).
Name the file based on the id of the thing you wanna replace (totem_of_undying for a Totem of Undying for example). Check the default pack if you are not sure what the exact name is (see!faq default-packfor more information)
Was it possible? Thanks@prime salmon
Thank you, this is some kind of result, but it's still not what I want. What am I doing wrong?
What block or item are we looking at here?
I'm sorry, I don't quite understand.
What is the source block in the plan?
The tutorial was for how to get your model onto a block or item ingame.
What block or item did you put your model on?
I took the plush toy model that the mod adds. Or is that not allowed?
k, in that case it very much depends on how the mod handles the block.
If it uses a normal Block/Item model then it should load your model if you named it correctly and placed it in the right folders inside your pack.
If it uses an entity model it will completely ignore your model, use your texture (if you overwrote the mod's texture) and apply it to their model.
So, should I try installing the model on something simpler? Since I was able to at least do that.
For debugging purposes, try replacing, for example, a poppy with your model just to see if that works fine.
Alternatively double check the model location and name of the mod's plush and if you named/positioned your model file in your pack properly.
Okay, I'll try now. If possible, I'd like to send both the model and the resource pack.
I tried it on vanilla blocks, and now nothing happens at all. Maybe I'm just not cut out for it?๐
I just changed the name of the files to the desired block, then checked
Can I send files so that everything would be much clearer?
sure
in the minecraft namespace?
-# so assets/minecraft/models/block/the_block_you_tried_to_replace.json
I've already tried placing a totem, but it didn't work.
and so yes, the structure is like this
should work with item/totem_of_undying.json ๐ค
but unfortunately, something doesn't want to
but you need to rename the namespace to "minecraft", instead of "plushy_buddies"
cause totem_of_undying is a minecraft item, not an item added by the plushy_buddies mod
Here is the model itself
Is there an extra postmark somewhere?
postmark?
?
if you rename this folder to minecraft it should work
Okay, I'll try.
Well, and you'd need to adjust the texture paths inside the .json model file to minecraft: as well.
Okay, I'll try it. I'll tell you the result later
Thank you! I've been struggling with this for 2 days. It turns out to be so simple. So, the principle is the same for changing the block?
Yup, just that it is in models/block instead.
Though most full blocks will cull neighboring's block's faces, so if you, for example, replace an oak plank with your model you'd see through the floor or wall next to it.
Okay, I'll keep an eye on it, all that's left is to experiment. I think it turned out pretty good for a first try.