Jump to content

Recommended Posts

Posted

  I am adding a glaive weapon which uses a 32x32 texture, which I found doesn't match the look of the other items in th e inventory so I designed a secondary 16x16 texture to be used in the invent ory,  dropped, and item frame states.
Although after looking into the control given to the modeller in the json format I've found no ability to change the texture in these other states.
 

Is this possible using JSON? or is there any other methods of rendering the model differently in the hand/item states?
 

Scaled up textures and JSON:


iron_glaive_tiny.png.56bed2c1181c4e2c8e2af7fcde373b1f.pngiron_glaive.png.9baa0f059daf63d4fffb5eab60951d56.png



large_handheld.json

{
    "parent": "item/generated",
    "display": {
        "thirdperson_righthand": {
            "rotation": [ -5, 90, 55 ],
            "translation": [ 0, 5.0, 3.14],
            "scale": [ 1.7, 1.7, 0.85 ]
        },
        "thirdperson_lefthand": {
            "rotation": [ 5, -90, -55 ],
            "translation": [ 0, 5.0, 3.14],
            "scale": [ 1.7, 1.7, 0.85 ]
        },
        "firstperson_righthand": {
            "rotation": [ -5, 90, 25 ],
            "translation": [ 1.13, 3.5, 1.13 ],
            "scale": [ 1.36, 1.36, 0.68 ]
        },
        "firstperson_lefthand": {
            "rotation": [ 5, -90, -25 ],
            "translation": [ 1.13, 3.5, 1.13 ],
            "scale": [ 1.36, 1.36, 0.68 ]
        }
    }
}


iron_glaive.json

{
    "parent": "tsbase:item/large_handheld",
    "textures": {
        "layer0": "tsbase:items/iron_glaive"
    }
}

 

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.