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.

[1.11.2] Display GUI Transform doens't affect OBJ Items

Featured Replies

Posted

I have a block that uses a OBJ model that is visible with the model also as the ItemBlock. The issue I'm having right now is that the model seems to ignore the display transformations. It did however work with the "transform": "forge:default-block" (or whatever is called). But I can't seem to get it to work with my own display values.

 

This is my current Blockstate file. I've tried putting the display outside of the defaults, in the game values of the game variant, and inside the default.

{
	"forge_marker": 1,
	"defaults": {
		"model": "arcademod:generic_machine.obj",
		"custom": { "flip-v": true },
		"display": {
	        "gui": {
	            "rotation": [ 30, 225, 0 ],
	            "translation": [ 0, 0, 0],
	            "scale":[ 0.2, 0.2, 0.2 ]
	        },
	        "ground": {
	            "rotation": [ 0, 0, 0 ],
	            "translation": [ 0, 3, 0],
	            "scale":[ 0.25, 0.25, 0.25 ]
	        },
	        "fixed": {
	            "rotation": [ 0, 0, 0 ],
	            "translation": [ 0, 0, 0],
	            "scale":[ 0.5, 0.5, 0.5 ]
	        },
	        "thirdperson_righthand": {
	            "rotation": [ 75, 45, 0 ],
	            "translation": [ 0, 2.5, 0],
	            "scale": [ 0.375, 0.375, 0.375 ]
	        },
	        "firstperson_righthand": {
	            "rotation": [ 0, 45, 0 ],
	            "translation": [ 0, 0, 0 ],
	            "scale": [ 0.40, 0.40, 0.40 ]
	        },
	        "firstperson_lefthand": {
	            "rotation": [ 0, 225, 0 ],
	            "translation": [ 0, 0, 0 ],
	            "scale": [ 0.40, 0.40, 0.40 ]
	        }
	    }
	},
	"variants": {
        "game": {
			"snake": {
				"textures": {
					"#Back": "arcademod:blocks/generic_machine"
				}
			},
            "tetrominoes": {
                "model": "arcademod:tetris.obj"
            },
            "pacman": {
            	"textures": {
            		"#Back": "arcademod:blocks/generic_machine"
            	}
            }
		},
		"facing": {
			"south": {
				"y": 0
			},
			"west": {
				"y": 90
			},
			"north": {
				"y": 180
			},
			"east": {
				"y": 270
			}
		}
	}
}

 

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.