Custom Item model size and position on hand

Started by Sebakool on Sat, 02/01/2020 - 08:06

Topic category: Help with modding

Last seen on 20:39, 10. Mar 2020
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
Custom Item model size and position on hand
Sat, 02/01/2020 - 08:06

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.

0Upvote this forum topic
Last seen on 16:59, 5. Apr 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
Downsize the model in your…
Sat, 02/01/2020 - 17:56

Downsize the model in your modeler before importing it.

0Upvote this forum topic
Last seen on 20:39, 10. Mar 2020
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
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

0Upvote this forum topic
Last seen on 15:48, 5. Apr 2020
Joined Nov 2018
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
"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!!!

0Upvote this forum topic
Last seen on 20:39, 10. Mar 2020
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
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

0Upvote this forum topic
Last seen on 20:39, 10. Mar 2020
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
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.

0Upvote this forum topic