Jump to content
Sign in to follow this  
Aira

Help: Modding in new types of cobble/brick?

Recommended Posts

I went ahead and made some textures for bauxite cobblestone and bricks. They're not perfect but they'll do. But I can't figure out how to get them into the game. There is a bauxite texture for each type in the texture folders, lined up with the other stone types. I looked in the blocktypes files and I don't see anything that I would need to change to add the blocks, it seems to just direct to the folder with the textures, where the bauxite textures are. In the grid recipe files for cobble, cobble stairs, slab, etc., I added "bauxite" to the allowedVariants section. But the blocks don't show up in the creative inventory, and I can't make them with a recipe.

I'm sure I'm missing something, since I've never modded in a block before. Is there a kind modder out there who will help me figure out what I'm missing? Thanks so much!

Share this post


Link to post
Share on other sites

In survival\blocktypes\stone\cobble\cobblestone.json change

"variantgroups": [
		{ "loadFromProperties": "block/rock" }
	],

into

"variantgroups": [
		{ code: "rock", states: ["bauxite"], "loadFromProperties": "block/rock" }
	],

 

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Sign in to follow this  

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