Jump to content

Item model is displaying in the ground


DrEinsteinium

Recommended Posts

Hi everyone, I have a strange problem where the models that I add to the game are showing up too low when dropped on the ground.

 

width=389 height=282http://img.prntscr.com/img?url=http://i.imgur.com/DlsgosQ.png[/img]

 

Here is my model

{
    "parent":"builtin/generated",
    "textures": {
        "layer0":"backpacks:items/backpack"
    },
    "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 ]
        }
    }
}

 

Any insight on this would be great!

 

Thanks in advance.

Follow me on twitter! @keepablock

Read up on whats new! www.catacombs.co

width=700 height=60http://electronic-chronic.com/assets/keep-a-block/wikilink/wikilink_logo.png[/img]

Link to comment
Share on other sites

  • 1 month later...

I think you need to add the "ground" section to your item. A full display method in a json looks like this:

 

"display": {
        "thirdperson": {
            "rotation": [0, 90, -45],
            "translation": [0, 1.25, -3.5],
            "scale": [2, 2, 2]
        },
        "head": {
            "rotation": [0, 0, 180],
            "translation": [0, 7, 0],
            "scale": [1, 1, 1]
        },
        "ground": {
            "rotation": [0, 0, 0],
            "translation": [0, 0, 0],
            "scale": [2, 2, 2]
        },
        "fixed": {
            "rotation": [0, 0, 0],
            "translation": [0, 0, 0],
            "scale": [1.5, 1.5, 1.5]
        },
        "firstperson": {
            "rotation": [0, -135, 25],
            "translation": [0, 4, 2],
            "scale": [2, 2, 2]
        },
        "gui": {
            "rotation": [0, -135, 25],
            "translation": [0, 4, 2],
            "scale": [2, 2, 2]
        }
      }

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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