Jump to content

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


SuperHB

Recommended Posts

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

 

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.