Jump to content

Recommended Posts

Posted

I have a block 2 properties (facing,style)   In the inventory i put the 4 styles using getSubBlocks.  It works, but i don't like the way the items look in the inventory.  I have tried creating a .json in the items asset

 

{
	"parent": "yabm:block/yb_M_stair_left_bot",
	    "textures": {
        "0": "blocks/planks_big_oak",
        "1": "yabm:blocks/stair",
        "2": "yabm:blocks/board_dark_oak_stain"
    },
	"display": {
	    "gui": {
	        "rotation": [ 16,328, 0 ],
	        "translation": [ 0.0, 0.0, 0.0 ],
	        "scale": [ 0.6, 0.6, 0.6 ]
	    },
	    "firstperson_righthand": {
	        "rotation": [ 0, 0, 0 ],
	        "translation": [ 0.0, 0.0, 0.0 ],
	        "scale": [ 0.7, 0.7, 0.7 ]
	    },
	    "firstperson_lefthand": {
	        "rotation": [ 0, 0, 0 ],
	        "translation": [ 0.0, 0.0, 0.0 ],
	        "scale": [ 1.0, 1.0, 1.0 ]
	    }
    }
}

Since the block model has no textures (its done in the blockstate) i had to include the textures in the item.json . But this will only work for the style with those textures, the other 3 styles would have different textures based on block state.  And even, then i found if i put textures that differ from the blockstate.json , it actual uses the those textures in the block the is set in the game.  Why would it use the textures  from the inventory item on the actual block?

 

thanks for any help.

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.