2D tile for 3D item

Started by Sir_sassypants on

Topic category: Help with modding (Java Edition)

Last seen on 05:50, 2. Jun 2023
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
2D tile for 3D item

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

The item breaking out of it's tile

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.

Last seen on 22:41, 29. Dec 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you used Blockbench you…
Wed, 05/13/2020 - 12:06

If you used Blockbench you can use the “display” feature to change how it looks in game, no coding required.

Last seen on 05:50, 2. Jun 2023
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It took me a bit to find it,…
Wed, 05/13/2020 - 21:49

It took me a bit to find it, but it worked! Thank you so much

Last seen on 15:42, 29. Jan 2021
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you please tell me how…
Mon, 01/25/2021 - 19:50

Could you please tell me how you did that? I can't find out how to do it.

Last seen on 08:41, 4. Apr 2021
Joined Mar 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i want to know too please
Sun, 04/04/2021 - 08:24

i want to know too please

Last seen on 14:16, 6. Oct 2023
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah, i also wanna know
Mon, 08/30/2021 - 19:18

Yeah, i also wanna know

Last seen on 23:12, 30. Jan 2023
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok I have sort of the same…
Tue, 11/22/2022 - 21:45

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?

Last seen on 17:34, 2. Oct 2023
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(For anyone who is curious…
Sat, 11/26/2022 - 21:35

(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.)

Last seen on 12:02, 20. Mar 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The thing is, my model looks…
Tue, 01/31/2023 - 15:19

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.

Last seen on 00:55, 28. Mar 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've been trying to study…
Fri, 03/17/2023 - 04:15

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:

{
    "parent": "builtin/entity",
    "gui_light": "front",
    "textures": {
        "particle": "item/trident"
    },
    "display": {
        "thirdperson_righthand": {
            "rotation": [ 0, 60, 0 ],
            "translation": [ 11, 17, -2 ],
            "scale": [ 1, 1, 1 ]
        },
        "thirdperson_lefthand": {
            "rotation": [ 0, 60, 0 ],
            "translation": [ 3, 17, 12 ],
            "scale": [ 1, 1, 1 ]
        },
        "firstperson_righthand": {
            "rotation": [ 0, -90, 25 ],
            "translation": [ -3, 17, 1],
            "scale": [ 1, 1, 1 ]
        },
        "firstperson_lefthand": {
            "rotation": [ 0, 90, -25 ],
            "translation": [ 13, 17, 1],
            "scale": [ 1, 1, 1 ]
        },
        "gui": {
            "rotation": [ 15, -25, -5 ],
            "translation": [ 2, 3, 0 ],
            "scale": [ 0.65, 0.65, 0.65 ]
        },
        "fixed": {
            "rotation": [ 0, 180, 0 ],
            "translation": [ -2, 4, -5],
            "scale":[ 0.5, 0.5, 0.5]
        },
        "ground": {
            "rotation": [ 0, 0, 0 ],
            "translation": [ 4, 4, 2],
            "scale":[ 0.25, 0.25, 0.25]
        }
    },
    "overrides": [
        {
            "predicate": {
                "throwing": 1
            },
            "model": "item/trident_throwing"
        }
    ]
}
Last seen on 05:58, 27. Mar 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
anything else known?
Tue, 01/16/2024 - 01:25

anything else known?