urabaros Posted November 1, 2021 Posted November 1, 2021 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" } Quote
Luis_ST Posted November 1, 2021 Posted November 1, 2021 is the file in the correct folder of your datapack, show the SurfaceBuilder (mymode:miracle) Quote
urabaros Posted November 1, 2021 Author Posted November 1, 2021 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); } } } Quote
Luis_ST Posted November 1, 2021 Posted November 1, 2021 your code looks okay, can you post a git repo so i can debug this? Quote
ImpoliteSand868 Posted November 4, 2021 Posted November 4, 2021 Is "mymode" the same as your modid? Quote
Recommended Posts
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.