Jump to content

[1.8] Json display options not working with "ground" and "fixed"


pifou92000

Recommended Posts

Hello!

I'm trying to configure my custom block's render options in its json file. It works fine with "thirdperson", "firstperson" and "gui", but "ground" and "fixed" (for dropped items and items displayed in item frames) don't work, I can set any values and nothing seems to change when I run Minecraft.

 

Here is the "display" section from my json file:

"display":
{
"thirdperson":
{
	"rotation": [0, 0, 170],
	"translation": [-0.75, -0.35, -1.5],
	"scale": [0.5, 0.5, 0.5]
},
"firstperson":
{
	"rotation": [35, 0, 35],
	"translation": [-4, 6, 4],
	"scale": [1.6, 1.6, 1.6]
},
"gui":
{
	"rotation": [-5, 0, -5],
	"translation": [0, 3, 0],
	"scale": [1.5, 1.5, 1.5]
},
"ground":
{
	"rotation": [0, 0, 0],
	"translation": [0, 0, 0],
	"scale": [0.1, 4, 0.1]
},
"fixed":
{
	"rotation": [-45, 0, -45],
	"translation": [0, 0, 0],
	"scale": [0.1, 4, 0.1]
}
}

 

Have the names changed? Am I doing something wrong?

Thanks in advance for your help.

Link to comment
Share on other sites

Hi

 

I've never heard of "ground" and "fixed" before.  Where did you get those from?

 

The last time I reviewed the rendering code, dropped items and items in frames use no translation at all (see ItemCameraTransforms.Deserializer and ForgeHooksClient.handleCameraTransforms, RenderItem.renderItemModel, RenderEntityItem and RenderItemFrame )

 

In order to change those, you should change your model so that it looks right without any rotation, translation, or scale at all.

 

-TGG

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.

Announcements



×
×
  • Create New...

Important Information

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