Jump to content

Recommended Posts

Posted

Good days

 

i speend all the afternoon resolving issues whith json files from mi mod and stuck whith this feature

 

normaly I used in mi json files for mi items this kind of code


    "display": {

        "thirdperson": {
            "rotation": [ 0, 0, 45 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 0.5, 0.5, 0.5 ]
        },
        "firstperson": {
            "rotation": [ 0, 0, 45 ],
            "translation": [ 0, 16, 0 ],
            "scale": [ 0.125, 0.125, 0.125 ]
        },
        "gui": {
            "rotation": [ 45, 22.5, 0 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 1.0, 1.0, 1.0 ]
        }
   }

 

to adjust the position and rotation of the item in the diferents modes, thirdperson, firstperson, and the way the item looks in the Inventory

 

but in this case the changes i made has no efect on position scale|translation|rotation for thirdperson and firstperson

 

only the gui values seems to work  to adjust the inventory icon rotation and position

 

 

#############################

they change this behaveour there is no other explanation, but now

¿ how do you adjust the scale|translation|rotation  of an item in this new schemme?

 

 

full json

{
    
    "textures": {

        "particle": "blocks/blocks/blocks/blocks/modmercenario:items/materiales/acero",
        "0": "modmercenario:items/materiales/aceroi",
        "1": "modmercenario:items/materiales/transparencia",
        "2": "modmercenario:items/materiales/acerob"

    },
   
    "elements": [
        {
            "name": "Element",
            "from": [ 2.0, 6.0, 6.0 ], 
            "to": [ 14.0, 10.0, 10.0 ], 
            "faces": {
                "north": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "south": { "texture": "#0", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "west": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "up": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "down": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }
            }
        },
    
        {
            "name": "Element",
            "from": [ 4.0, 6.0, 6.0 ], 
            "to": [ 12.0, 10.0, 10.0 ], 
            "faces": {
                "north": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "south": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "west": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "up": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "down": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }
            }
        },
    
        {
            "name": "Element",
            "from": [ 2.0, 6.0, 6.0 ], 
            "to": [ 14.0, 8.0, 10.0 ], 
            "faces": {
                "north": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "east": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "south": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "west": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "up": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "down": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }
            }
        },
    
        {
            "name": "Element",
            "from": [ 2.0, 6.0, 6.01 ], 
            "to": [ 4.82, 8.0, 9.99 ], 
            "rotation": { "origin": [ 2.0, 8.0, 8.0 ], "axis": "z", "angle": 45.0 },
            "faces": {
                "north": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "south": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "west": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "up": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "down": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }
            }
        },
    
        {
            "name": "Element",
            "from": [ 11.18, 6.0, 6.01 ], 
            "to": [ 14.0, 8.0, 9.99 ], 
            "rotation": { "origin": [ 14.0, 8.0, 8.0 ], "axis": "z", "angle": -45.0 },
            "faces": {
                "north": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "east": { "texture": "#1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "south": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "west": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "up": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] },
                "down": { "texture": "#2", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }
            }
        }
    ],

    
    "display": {

        "thirdperson": {
            "rotation": [ 0, 0, 45 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 0.5, 0.5, 0.5 ]
        },
        "firstperson": {
            "rotation": [ 0, 0, 45 ],
            "translation": [ 0, 16, 0 ],
            "scale": [ 0.125, 0.125, 0.125 ]
        },
        "gui": {
            "rotation": [ 45, 22.5, 0 ],
            "translation": [ 0, 0, 0 ],
            "scale": [ 1.0, 1.0, 1.0 ]
        }
   }



   
}

 

thanks for readng

 

 

 

 

 

Posted

sorry a found an example in vainilla bow json

 

 

    "display": {

        "thirdperson_righthand": {

            "rotation": [ -80, 260, -40 ],

            "translation": [ -1, -2, 2.5 ],

            "scale": [ 0.9, 0.9, 0.9 ]

        },

        "thirdperson_lefthand": {

            "rotation": [ -80, -280, 40 ],

            "translation": [ -1, -2, 2.5 ],

            "scale": [ 0.9, 0.9, 0.9 ]

        },

        "firstperson_righthand": {

            "rotation": [ 0, -90, 25 ],

            "translation": [ 1.13, 5.2, 1.13],

            "scale": [ 0.5, 0.5, 0.5 ]

        },

        "firstperson_lefthand": {

            "rotation": [ 0, 90, -25 ],

            "translation": [ 1.13, 5.2, 1.13],

            "scale": [ 0.5, 0.5, 0.5 ]

        },

 

        "gui": {

            "rotation": [ 45, 22.5, 0 ],

            "translation": [ 0, 0, 0 ],

            "scale": [ 1.0, 1.0, 1.0 ]

        }

  }

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.