I need help with making an item's gui icon be different than the model in players hand

Started by Deadly_Golem on

Topic category: Help with modding (Java Edition)

Last seen on 03:38, 30. Dec 2023
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help with making an item's gui icon be different than the model in players hand

I want to have my custom weapons model be different when the player holds it than it is in the gui. The trident in vanilla minecraft is a good example of what i want. In the gui its just flat sprite work, but when held by the player it is given it's own 3d model. I would like to know if anyone knows how to recreate this in the mcreator software with custom weapons.

I have already tried looking at the item json models but I found nothing of use. There were no lines saying if the item is in someone's hand use this model instead. I also tried looking at the trident's .java item file in minecraft's source code but found nothing mentioning either json model, or when to use them. 

I know they did it somehow, but i am lost on how i could recreate this. I don't want to resort to having a script that changes out the item whenever it is held to recreate this do to that fact that it could cause multiple problems that i'd rather just not deal with.

If you can help, please do. I would appreciate it.

Last seen on 17:11, 27. Dec 2020
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For weapon set normal…
Sun, 12/13/2020 - 18:32

For weapon set normal texture but 3D entity model make for bullet.

Model must be faced down (sharp side) I recomend BlockBench

Last seen on 03:38, 30. Dec 2023
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Im not trying to make a…
Mon, 12/14/2020 - 02:12

Im not trying to make a ranged weapon. Im trying to make it so a weapon looks different when being held by a player than it does if you were looking at it in your inventory.

I want to be able to recreate what the image is showing below. Item in hotbar is different than when in hand

You can make custom model in…
Mon, 12/14/2020 - 07:54

You can make custom model in BlockBench and in this software, specifiy different render modes

Last seen on 10:04, 4. Sep 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah I have the same problem…
Mon, 09/20/2021 - 13:01

Yeah I have the same problem! I made the model with blockbench and the item texture was normal just the item in hand had the model. But it was too high in first person view so I moved it a little down in blockbench in the display tab. but it automatically sets the model as the texture in inventory slots, chest, etc. I have the same problem now I don't know what to do

Last seen on 21:12, 10. Jun 2023
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
any update on how to do this…
Sat, 10/22/2022 - 22:55

any update on how to do this because I cant seem to figure it out

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need this as well
Mon, 01/30/2023 - 19:18

I need this as well

Last seen on 20:08, 17. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Similar issue. Blockbench…
Thu, 03/16/2023 - 23:27

Similar issue. Blockbench allows editing of scaling and rotation and what not- but I'm assuming you need to use custom predicate overrides, which are found in the tool menu, to change the model when certain conditions are met. ...I have no idea how to do this, and would really like to know how, but that's the best I've got at the moment.

Last seen on 16:04, 14. Oct 2023
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't seem to find a…
Mon, 09/18/2023 - 19:41

I can't seem to find a solution for this issue so I just did it the tougher way. In blockbench, make a 16x16 flat texture for the item icon texture you want to use. Add a seperate texture for that icon. Have the normal displays scale down the flat texture while the gui displays scale down the actual item revealing your flat texture. A bit tougher to do, but still feasible.

Last seen on 16:04, 14. Oct 2023
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind, I thought I had…
Mon, 09/18/2023 - 19:58

Nevermind, I thought I had found a solution without even testing it. I realised you can't edit blockbench model groups seperately. So instead I made 2 separate JSON models, one for the display icon item that doesn't appear in third or first person. And another model for the actual 3d model which only appears on the player when it detects the player is holding it.

Last seen on 20:08, 17. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How, exactly, did you…
Tue, 01/02/2024 - 22:56

How, exactly, did you accomplish this? I understand the idea of using both a custom 3d model and a standard item model, but how are you specifically replacing the first/third person renders without changing the GUI render?

Last seen on 20:08, 17. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Turns out this is possible…
Wed, 01/03/2024 - 01:53

Turns out this is possible by editing the JSON files, forge apparently has a built in loader for separate gui textures. (Just took me several hours to realize they changed the name in 1.20.) Here's a decent tutorial on how to do it, I was able to get it working pretty quick:

[TUTORIAL] 2d Texture In GUI and 3d Texture In Hand 👾 | MCreator ~