#How to put your weapon into blockbench

1 messages · Page 1 of 1 (latest)

dull elm
#

I'd like to import my custom weapon into blockbench to be able to adjust it onto my skin but I haven't figured out how to import it properly.

leaden pivot
#

Like, do you just want to adjust the display settings of how a player in general holds it or do you want it to be part of your play skin specifically in some way?

dull elm
#

Like display the sword on the alex/steve skin to adjust it and to implement it into minecraft

leaden pivot
#

K, in that case you just load in the .json model (or .bbmodel, whichever you have), then you click on "Display" in the top right, then you can select which display you wanna edit in the top left (head, left hand firstperson etc.)

dull elm
#

Also what do you mean .json of the weapon? I'm relatively new to Blockbench

leaden pivot
#

Well, you said you have a custom weapon, so I assumed you mean you have a .json model of it.

#

or is it just a texture atm?

dull elm
#

Yeah

#

I assume I need to make it into a model. How would I do that?

leaden pivot
#

Do you just want it to be held/sized like a sword or do you want completely custom display settings?

dull elm
#

Sized like a sword

leaden pivot
#

K, then all you need to do is make a file like in method 1 of this faq (doesn't require Blockbench):

#

!faq texture-to-3D

sudden cedarBOT
# leaden pivot !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.
leaden pivot
#

In your case you want the "parent" value to be "item/handheld" (basically does the same thing as item/generated, but has the display settings for tools and weapons)