#How do I create a 2d item

32 messages · Page 1 of 1 (latest)

bright hemlock
#

Hello y’all! I’m curious on how to create a 2d item like Minecraft’s default ones that are actually 1 pixel wide, I have my texture ready but idk how to make it so it’s filled up in the interior

I’m new to this pls help me 😄

opal acorn
#

its really simple . but if you want it in blockbench then

#

file>import>extrudedtexture

bright hemlock
#

Mmm I’m using oraxen on my server, and the normal texture thing doesn’t allow you to position it correctly so I need to depend on blockbench models

opal acorn
bright hemlock
#

Omg omg

#

You a magician

#

I owe u everything rn

#

I’ve been trying for so long

opal acorn
bright hemlock
#

🥹🥹🥹

#

Thanks so luchhhhh

opal acorn
bright hemlock
#

Muchhh*

opal acorn
#

😂

bright hemlock
opal acorn
bright hemlock
#

This is easier now xd

opal acorn
steel mist
#

@opal acorn and @bright hemlock there is a better way for ingame use:

#

!faq texture-to-3D

torpid valveBOT
# steel mist !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:
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.
steel mist
#

(Method 1)

opal acorn
steel mist
#

nowhere did they say they want it in Blockbench only
in fact they mentioned they are using it ingame, which is the opposite of "Blockbench only"

steel mist
#

yeah, they are saying they aren't just retexturing existing items but add "new" ones via the Oraxen plugin (which just uses CustomModelData internally to "add" new items)

#

And Method 1 can still be put in Blockbench to adjust display settings

bright hemlock
#

Thanks y’all

#

Being so kind ❤️