Started by
CtrlFnAlt
on
Topic category: Help with Minecraft modding (Java Edition)
I created a texture for this custom sword with the top and bottom being different, but when I went to try it out, the inventory texture was fine but its held item texture was upside down, does anyone know how to fix this?
Can anyone help me pls?
Can you send an image of the texture? This sounds odd.
You will need to edit the .json display code of the item and replace it with the following:
You will then need to replace modid with your mod's id, and item_texture with the internal name of your item's texture file.
Lastly, you will need to edit the rotation values, and possibly the middle translation values, of thirdperson_righthand, thirdperson_lefthand, firstperson_righthand, and firstperson_lefthand.
I'm not sure what exact values you will need, but you should be able to experiment with the provided code to figure it out.
Lastly, be sure to save and lock your code.
Which number rotated in which direction?
I know that they correspond to X, Y, Z rotations, but I can't remember exactly where each axis is located in terms of built-in item model rotations. As I mentioned in my previous comment, I would just recommend experimenting, maybe create three copies of the item and have each copy rotated 90 degrees on a different axis to find out what axis does what.