Jump to content

Custom biome generation (where is my stone)


urabaros

Recommended Posts

Hi!

I'm currently making my biome (i'm using json files). Everything is alright, but only top layer appears. Stone IS in the game, but just don't go to the biome. What should I do?


{
    "config": {
        "top_material":{
            "Name": "mymode:miracle_grass"
        },
        "under_material":{
            "Name": "mymode:miracle_stone"
        },
        "underwater_material":{
            "Name": "mymode:miracle_stone"
        }
    },
    
    "type": "mymode:miracle"
}

 

 

Link to comment
Share on other sites

Yes, it's in the correct place, because the top layer is generated correctly. 

public class MiracleSurfaceBuilder extends SurfaceBuilder<SurfaceBuilderConfig> {

	
	public static final BlockState MIRACLE_GRASS = BlockInit.MIRACLE_GRASS.get().getDefaultState();
	
	public static final SurfaceBuilderConfig MIRACLE_GRASS_CONFIG = new SurfaceBuilderConfig(MIRACLE_GRASS, MIRACLE_GRASS, MIRACLE_GRASS);

	public MiracleSurfaceBuilder(Codec<SurfaceBuilderConfig> codec) {
		super(codec);
		// TODO Auto-generated constructor stub
	}

	@Override
	public void buildSurface(Random random, IChunk chunkIn, Biome biomeIn, int x, int z, int startHeight, double noise,
			BlockState defaultBlock, BlockState defaultFluid, int seaLevel, long seed, SurfaceBuilderConfig config) {
			SurfaceBuilder.DEFAULT.buildSurface(random, chunkIn, biomeIn, x, z, startHeight, noise, defaultBlock, 
					defaultFluid, seaLevel, seed, MIRACLE_GRASS_CONFIG);
	
		}
		
	}

}

 

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.