#how do i turn my .png into a java model?

27 messages · Page 1 of 1 (latest)

tender haven
#

I chose "convert project" into "java block/item" and when it entered the rendering space i couldnt make my png texture into a model. Im really new btw so will need some guidance. Couldnt find any useful tutorials

late sparrowBOT
#
Conflicting tags detected

It looks like you have applied tags to this post that conflict. Please only apply the tags that are relevant to your post. We can only help you if we know the context of your question, and applying incorrect tags makes this confusing.

You can refer to #1029373817119838218 for a description of what each tag is for!

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.

mighty imp
#

!faq texture-to-3D

late sparrowBOT
# mighty imp !faq texture-to-3D
FAQ
Blockbench: 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:
java 1. Letting the game generate it from a texture (vanilla Java)
bedrock 2. Directly adding a new item (Bedrock Edition)
blockbench 3. Letting Blockbench generate it (ONLY use this if the other options are not applicable!!!)

** java 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.

** ![bedrock](https://cdn.discordapp.com/emojis/526419810272149526.webp?size=128 "bedrock") 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>

** ![blockbench](https://cdn.discordapp.com/emojis/340506781111549957.webp?size=128 "blockbench") 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.
tender haven
tender haven
mighty imp
#

if you just use Method 1 that's what the default game uses and the cleanest way to turn an icon texture into a basic model if you mean that.

tender haven
#

i see

#

aite trying that out rn then

#

do i convert this file into a java item first?

#

or i can use this png and somehow add a .json

mighty imp
#

You copy the text snipped in the bot message, put it in a new text file, adjust the texture path to point to your custom texture there and and change the .txt extension to .json
-# alternatively copy some .json file, edit it in a text editor and replace the text with the bot message snippet
And that's the whole model.

tender haven
#

mmm

#

when i generate the texture pack will it look like a square with the thing in it or it'll leave out the blank space and just make a clean texture of this quiver in the picture

mighty imp
tender haven
#

Ok bet

tender haven
#

hey my friend

#

do i put all the files i see in here to minecraft to make it work?

#

or only the one where i listed as quiver

mighty imp
#

and you cannot use capital letters in file names for a resourcepack

tender haven
tender haven
#

U wanna tell me what it is?