2D tile for 3D item

Started by Sir_sassypants on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Sep 2019
Points:
791

User statistics:

  • Modifications: 0
  • Forum topics: 22
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 61
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.

Active 3 years ago
Joined Mar 2020
Points:
1275

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1145
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.

Active 2 years ago
Joined Sep 2019
Points:
791

User statistics:

  • Modifications: 0
  • Forum topics: 22
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 61
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

Active 4 years ago
Joined Jan 2021
Points:
590

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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.

Active 4 years ago
Joined Mar 2017
Points:
707

User statistics:

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

i want to know too please

Active 1 year ago
Joined Aug 2021
Points:
539

User statistics:

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

Yeah, i also wanna know

Active 2 years ago
Joined May 2019
Points:
672

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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?

Active 2 weeks ago
Joined Dec 2017
Points:
824

User statistics:

  • Modifications: 0
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 128
(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.)

Active 3 months ago
Joined Jan 2022
Points:
634

User statistics:

  • Modifications: 0
  • Forum topics: 26
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 67
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.

Active 1 day ago
Joined May 2022
Points:
1256

User statistics:

  • Modifications: 14
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1142
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"
        }
    ]
}
Active 1 month ago
Joined Jul 2022
Points:
468

User statistics:

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

anything else known?