#What is it?
17 messages · Page 1 of 1 (latest)
This is just blockbench displaying buultin generated so you know what's going on, you aren't suppose to edit anything other that displays or switching the display texture
!faq texture-to-3D
(Result for "texture-to-3D")
Depending on where you wanna have the model there are different ways to turn a texture into a (default-item like) model:
1. Letting the game generate it from a texture (vanilla Java)
2. Directly adding a new item (Bedrock Edition)
3. Letting Blockbench generate it (ONLY use this if the other options are not applicable!!!)
**
1. Letting the game generate it from a texture:**
Create a .json file somewhere inside your models folder and put this code inside of it:
{
"parent": "item/generated",
"textures": {
"layer0": "custom/example"
}
}``` This will tell the game to generate a model based on the texture `YourPack/assets/minecraft/textures/custom/example.png`.
(Use `item/handheld` as parent instead if you want it to be held like a weapon).
It can be used just like any other model, so you can either replace an existing item with it or "add" it with custom_model_data. You can also load it into Blockbench to edit the display settings.
**  2. Directly adding a new item in Bedrock Edition:**
Please follow the steps described in here:
Default like items: <https://wiki.bedrock.dev/items/items-intro.html>
Custom 3D model items: <https://wiki.bedrock.dev/items/3d-items.html>
**  3. Generating it in Blockbench:**
ONLY use this approach if you plan on editing it more than what the other option allows you to do!!!
You need to make sure to use per-face uv (_not_ box-uv!) and then do `File > Import > Extruded Image` and select your texture. Then, pick the way it should generate the texture. You can chose between pixel by pixel, line by line (horizontal/vertical) or in as little chunks as possible (area).
I suggest to always use area for performance. If you wanna edit each pixel/line choose one of the other options.
It looks terrible, only the model in the program is needed here
And how to create one yourself? The instance that I have works crookedly as it is torn from the resource pack
What looks terrible?
If you use the first method, then my weapon looks very small. This method does not suit me. My weapon should be long and only the model editor in the program will help me with this. I certainly have a model that I have already shown that will help me in my plans. But it does not work very stably since it is torn from the textures of the pack. Therefore, I will ask again how to do this yourself in the program, or is it just programming?
If you'd continue reading method 1 and not just stop after the "code" you'd see the part where it says you can load it into Blockbench and adjust the display settings
I see perfectly well that it is possible to configure this via "Extracted Image". But I am interested in exactly what I have shown. Based on this, I can conclude that what I have shown cannot be done just like that in the program...
that's not what I'm talking about
I didn't say "read Method 2"
I said continue reading after the .json text snippet
which states that you can load that .json file into Blockbench and adjust the display settings just fine
Oh, sorry. My misunderstanding is to blame for everything. I didn't immediately understand what the speech was about