Started by
Sir_sassypants
on
Topic category: Help with Minecraft modding (Java Edition)
I have made a item with a 3D model, and when rendered in the inventory it appears as the flat version of itself, causing it to break the bounds if it's slot
I would like to make it look like a 16x16 texture in the inventory, while still maintaining the handheld 3D model. I've tried messing around with the model file, but that didn't work. Anyone got any ideas or answers? If it requires coding that is ok.
If you used Blockbench you can use the “display” feature to change how it looks in game, no coding required.
It took me a bit to find it, but it worked! Thank you so much
Could you please tell me how you did that? I can't find out how to do it.
i want to know too please
Yeah, i also wanna know
ok I have sort of the same issue, but on Blockbench I can only edit the 3d model for the GUI display option, but I want to show a 2d texture I made, how can I do that?
(For anyone who is curious on how to fix this issue.)
Because of the way Minecraft works, the GUI will display the 3D model over the 2D texture you choose. So if you want your item to appear 2D in GUI's, you will have to set the item to be rotated by intervals of 90 degrees in the Display tab on Blockbench.
Make sure the item is scaled down to fit into the GUI slot. (I usually use 0.5, 0.5, 0.5 on blockbench to scale it to fit, all depends on preferences of appearance.)
Let me explain why this happens:
All of Minecrafts 3D items (to my knowledge) are blocks where Items are 2D by nature, so when you add an item with a 3D model, Minecraft will display it as if it were a block rather than an item and thus it will look for a 3D display rather than the 2D display you gave it.
(So make use of blockbenches display options before you export your .json file in order to position the item in the GUI to APPEAR 2D.)
The thing is, my model looks different from my 2D sprite that I've created. I even built the 2D sprite out of cubes and textured it in Blockbench in the hopes that I could make it invisible for third person sprites and visible for the GUI. Is there really no way to make a different 2D GUI sprite for a model that's 3D when held? I am willing to attempt some coding if anyone has a solution.
I've been trying to study the trident code to figure this out; looking at the data on Github, there are seperate files for the GUI trident and Handheld trident, with the GUI version just using the regular item preset. I'm starting to suspect this is hard coded into the trident specifically, as I literally cannot think of any other item in the game that has an entirely different handheld texture.
Incidentally, here's the code for the Handheld Trident. There's a seperate file for throwing, but it's basically identical:
anything else known?