Jump to content

Error Loading Json Model


Javisel

Recommended Posts

I'm at a loss, I don't know how to fix this error.

I'm creating a custom model for my block through Json. I used blockbench json editor to do it. But when i get in game the block has no texture or custom model. 

Console Output

Json File

 

{
	"forge_marker": 1,
	"credit": "Made with Blockbench",
	"textures": {
		"2": "blocks/gold",
		"3": "blocks/glass",
		"quartz_block_side": "blocks/quartz",
		"trappedmoon": "blocks/trappedmoon"
	},
	"elements": [
		{
			"name": "bottom",
			"from": [0, 0, 0],
			"to": [16, 1, 16],
			"faces": {
				"north": {"uv": [0, 0, 16, 1], "texture": "#2"},
				"east": {"uv": [0, 0, 16, 1], "texture": "#2"},
				"south": {"uv": [0, 0, 16, 1], "texture": "#2"},
				"west": {"uv": [0, 0, 16, 1], "texture": "#2"},
				"up": {"uv": [0, 0, 16, 16], "texture": "#quartz_block_side"},
				"down": {"uv": [0, 0, 16, 16], "texture": "#2"}
			}
		},
		{
			"name": "top",
			"from": [0, 15, 0],
			"to": [16, 16, 16],
			"faces": {
				"north": {"uv": [0, 0, 16, 1], "texture": "#2"},
				"east": {"uv": [0, 0, 16, 1], "texture": "#2"},
				"south": {"uv": [0, 0, 16, 1], "texture": "#2"},
				"west": {"uv": [0, 0, 16, 1], "texture": "#2"},
				"up": {"uv": [0, 0, 16, 16], "texture": "#2"},
				"down": {"uv": [0, 0, 16, 16], "texture": "#quartz_block_side"}
			}
		},
		{
			"name": "northwestpillar",
			"from": [0, 1, 0],
			"to": [1, 15, 1],
			"faces": {
				"north": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"east": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"south": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"west": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"up": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"down": {"uv": [0, 0, 1, 14], "texture": "#2"}
			}
		},
		{
			"name": "northeastpillar",
			"from": [15, 1, 0],
			"to": [16, 15, 1],
			"faces": {
				"north": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"east": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"south": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"west": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"up": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"down": {"uv": [0, 0, 1, 14], "texture": "#2"}
			}
		},
		{
			"name": "southeastpillar",
			"from": [15, 1, 15],
			"to": [16, 15, 16],
			"faces": {
				"north": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"east": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"south": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"west": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"up": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"down": {"uv": [0, 0, 1, 14], "texture": "#2"}
			}
		},
		{
			"name": "soutwestpillar",
			"from": [0, 1, 15],
			"to": [1, 15, 16],
			"faces": {
				"north": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"east": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"south": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"west": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"up": {"uv": [0, 0, 1, 14], "texture": "#2"},
				"down": {"uv": [0, 0, 1, 14], "texture": "#2"}
			}
		},
		{
			"name": "westglasswall",
			"from": [0, 1, 1],
			"to": [1, 15, 15],
			"faces": {
				"north": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"east": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"south": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"west": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"up": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"down": {"uv": [0, 0, 14, 14], "texture": "#3"}
			}
		},
		{
			"name": "trappedmoon",
			"from": [6, 6, 6],
			"to": [10, 10, 10],
			"faces": {
				"north": {"uv": [0, 0, 4, 4], "texture": "#trappedmoon"},
				"east": {"uv": [0, 0, 4, 4], "texture": "#trappedmoon"},
				"south": {"uv": [0, 0, 4, 4], "texture": "#trappedmoon"},
				"west": {"uv": [0, 0, 4, 4], "texture": "#trappedmoon"},
				"up": {"uv": [0, 0, 4, 4], "texture": "#trappedmoon"},
				"down": {"uv": [0, 0, 4, 4], "texture": "#trappedmoon"}
			}
		},
		{
			"name": "northglasswall",
			"from": [1, 1, 0],
			"to": [15, 15, 1],
			"faces": {
				"north": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"east": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"south": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"west": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"up": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"down": {"uv": [0, 0, 14, 14], "texture": "#3"}
			}
		},
		{
			"name": "southglasswall",
			"from": [1, 1, 15],
			"to": [15, 15, 16],
			"faces": {
				"north": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"east": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"south": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"west": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"up": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"down": {"uv": [0, 0, 14, 14], "texture": "#3"}
			}
		},
		{
			"name": "eastglasswall",
			"from": [15, 1, 1],
			"to": [16, 15, 15],
			"faces": {
				"north": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"east": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"south": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"west": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"up": {"uv": [0, 0, 14, 14], "texture": "#3"},
				"down": {"uv": [0, 0, 14, 14], "texture": "#3"}
			}
		}
	],
	"display": {
		"thirdperson_righthand": {
			"rotation": [75, 315, 0],
			"translation": [0, 2.5, 0],
			"scale": [0.375, 0.375, 0.375]
		},
		"firstperson_righthand": {
			"rotation": [0, 315, 0],
			"translation": [0, 2.5, 0],
			"scale": [0.4, 0.4, 0.4]
		},
		"ground": {
			"translation": [0, 3, 0],
			"scale": [0.25, 0.25, 0.25]
		},
		"gui": {
			"rotation": [30, 45, 0],
			"scale": [0.625, 0.625, 0.625]
		},
		"head": {
			"rotation": [0, 180, 0]
		},
		"fixed": {
			"rotation": [0, 180, 0]
		}
	},
	"groups": [
		{
			"name": "light_nexus",
			"children": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
		}
	],
	"variants": {
    "normal": {
			"model": "cube_all"
		},
		"inventory": {
			"model": "cube_all"
		}
    }
}


Here's what it should look like.

themodel.thumb.png.e64be75496e7bd6e842d44206d5d9542.png

What am i doing wrong? 

Link to comment
Share on other sites

Why do you have “forge marker in there”

Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException

show your BlockState json

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

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.