Jump to content

Recommended Posts

Posted

Just made a quick test, and yes, you can use variants for the grass textures.

 

[
	{
		"enabled": true,
		"side": "universal",
		"file": "game:blocktypes/plant/tallgrass.json",
		"op": "addmerge",
		"path": "/texturesByType/*-free/north",
		"value": { "alternates": [ { "base": "block/plant/tallgrass/{cover}/{tallgrass}1-north" } ] }
	},
	{
		"enabled": true,
		"side": "universal",
		"file": "game:blocktypes/plant/tallgrass.json",
		"op": "addmerge",
		"path": "/texturesByType/*-free/south",
		"value": { "alternates": [ { "base": "block/plant/tallgrass/{cover}/{tallgrass}1-south" } ] }
	}
]

 

This will patch the vanilla tallgrass.json, and insert alternative textures for each variant.

Just make the textures and place them inside "assets/game/textures/block/plant/free/" inside your mod. Remember to also make textures for snow cowered versions.

Have the above patch inside "assets/your-mod-id/patches/" and you should be golden.

 

Hope that helps 🙂

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.