Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.