Jump to content

Recommended Posts

Posted

I can get the texture to load, but the item is rotated incorrectly and is sized strangely.

 

Here's the item .json:

{

"parent":"testmod:item/standard_item",

    "textures": {

    "layer0":"testmod:items/test_item"

    } 

}

 

and the parent:

{

    "parent":"builtin/generated",

    "display": {

        "thirdperson": {

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

            "translation": [ 0, 1, -3 ],

            "scale": [ 0.55, 0.55, 0.55 ]

        },

        "firstperson": {

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

            "translation": [ 0, 4, 2 ],

            "scale": [ 1.7, 1.7, 1.7 ]

        }

    }

}

 

 

I'm not getting any errors, but it even seems as if no change I make in the parent file is reflected in-game. Using IntelliJ.

 

EDIT: Think I figured it out, 1.9's format changed a bit. If anyone else has this issues, here's 1.9:

 

{

    "parent": "builtin/generated",

    "display": {

        "ground": {

            "rotation": [ 0, 0, 0 ],

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

            "scale":[ 0.5, 0.5, 0.5 ]

        },

        "head": {

            "rotation": [ 0, 180, 0 ],

            "translation": [ 0, 13, 7],

            "scale":[ 1, 1, 1]

        },

        "thirdperson_righthand": {

            "rotation": [ 0, 0, 0 ],

            "translation": [ 0, 3, 1 ],

            "scale": [ 0.55, 0.55, 0.55 ]

        },

        "firstperson_righthand": {

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

            "translation": [ 1.13, 3.2, 1.13],

            "scale": [ 0.68, 0.68, 0.68 ]

        }

    }

}

 

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.