Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Solved] [1.13.2] Porting blockstates files to 1.13.2


DavidM
 Share

Recommended Posts

Down below is a json blockstate file I used in my mod back in 1.12.2.

{
	"forge_marker": 1,
	"defaults": {
		"model": "forge:multi-layer",
		"transform": "forge:default-block"
	},
	"variants": {
		"normal": [{
			"custom": {
				"base": "tinymobfarm:ultimate_farm#base",
				"Solid": "tinymobfarm:ultimate_farm#base",
				"Cutout": "tinymobfarm:ultimate_farm#glass"
			}
		}],
		"base": [{
			"model": "tinymobfarm:ultimate_farm"
		}],
		"glass": [{
			"model": "tinymobfarm:glass_panel"
		}],
		"inventory": [{
			"custom": {
				"base": "tinymobfarm:ultimate_farm#base",
				"Solid": "tinymobfarm:ultimate_farm#base",
				"Cutout": "tinymobfarm:ultimate_farm#glass"
			}
		}]
	}
}

However, multiple errors are thrown when I use this blockstate file in 1.13.2.

[17:19:44.920] [Client thread/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'tinymobfarm:blockstates/ultimate_farm.json' in resourcepack: 'main' for variant: 'base': Unknown blockstate property: 'base'
[17:19:44.920] [Client thread/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'tinymobfarm:blockstates/ultimate_farm.json' in resourcepack: 'main' for variant: 'glass': Unknown blockstate property: 'glass'
[17:19:44.920] [Client thread/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'tinymobfarm:blockstates/ultimate_farm.json' in resourcepack: 'main' for variant: 'inventory': Unknown blockstate property: 'inventory'

I'm interpreting that blockstates are defined differently in 1.13.2 with a new variants system? Or is it just because the keywords changed?

How would I fix it?

Edited by DavidM

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Link to comment
Share on other sites

Due to my block is rendered on both the Solid layer and the Cutout layer, I used two different models (base and glass), one on each layer.

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Link to comment
Share on other sites

Update:

[18:22:24.990] [Client thread/ERROR] [ne.mi.fm.ModLoader/]: Skipping lifecycle event ENQUEUE_IMC, 1 errors found.
[18:22:24.990] [Client thread/FATAL] [ne.mi.fm.ModLoader/]: Failed to complete lifecycle event ENQUEUE_IMC, 1 errors found

What does this error mean and how would I fix it?

Edited by DavidM

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Link to comment
Share on other sites

Forge blockstates are in the latest (and only the latest) 1.13.2 beta. 

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

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.