Custom Item model size and position on hand

Started by Sebakool on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Item model size and position on hand

Hi everyone, I'm not an English speaker, sorry for my bad language, but I need your help.
I am new to the creation of mods and coding, but I managed to add custom models for my weapons.
Melee and range (with blender, great tool).
Achieve after many attempts that fit the size and correct position of the hand for melee weapons and partially for range.
But they are very large in the hot bar and in the inventory.
Thats the problem.
I tried modifying the Json file of the item with what I found in other posts, but nothing worked.

This is what i tried:

{
  "parent": "builtin/try6ham",
  "forge_marker": 1,
  "defaults": {
    "model": "xp_orb:try6ham.obj",
    "transform":{
      "firstperson_lefthand":{
        "rotation":[0,0,0],
        "scale":[1,1,1],
        "translation":[0,0,0]},
      "firstperson_righthand":{
        "rotation":[0,0,0],
        "scale":[1,1,1],
        "translation":[0,0,0]},
      "fixed":{
        "rotation":[0,0,0],
        "scale":[1,1,1],
        "translation":[0,0,0]},
      "ground":{
        "rotation":[0,0,0],
        "scale":[1,1,1],
        "translation":[0,0,0]},
      "gui":{
        "rotation":[0,0,0],
        "scale":[0.1,0.1,0.1],
        "translation":[0,0,0]},
      "head":{
        "rotation":[0,0,0],
        "scale":[1,1,1],
        "translation":[0,0,0]},
      "thirdperson_lefthand":{
        "rotation":[0,0,0],
        "scale":[1,1,1],
        "translation":[0,0,0]},
      "thirdperson_righthand":{
        "rotation":[0,0,0],
        "scale":[1,1,1],
        "translation":[0,0,0]}
      }
  },
  "variants": {
    "inventory": [
      {
        "transform": "forge:default-tool"
      }
    ]
  }
}

Do i have any error in the code or should it be modified in another way?

Thank you very much for your help.

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The model has the correct…
Sun, 02/02/2020 - 01:25

The model has the correct size in hand but not in hud, thats the problem

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"gui":{ "rotation":[0,0,0], …
Sun, 02/02/2020 - 14:48

"gui":{ "rotation":[0,0,0], "scale":[0.1,0.1,0.1], "translation":[0,0,0]}, if it's 0.1 of course the sizing would be wrong. Set it to one!!!

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i am trying to reduce the…
Tue, 02/11/2020 - 10:51

i am trying to reduce the item size in gui but doesn't work, thats why i need help

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the code that i show here…
Tue, 02/11/2020 - 10:51

the code that i show here doesn't change anything of the item.