Posted January 26, 20205 yr I'm trying to make a biome where the top layer is snow blocks, but of course, no trees are spawning. My immediate solution is just to copy one of the existing tree classes and modify it so it can spawn on snow blocks. How do I do that? Where are the blocks it can spawn on set?
January 28, 20205 yr Looking at SaplingBlock from Minecraft, it extends BushBlock what has a function: protected boolean isValidGround(BlockState state, IBlockReader worldIn, BlockPos pos) { Block block = state.getBlock(); return block == Blocks.GRASS_BLOCK || block == Blocks.DIRT || block == Blocks.COARSE_DIRT || block == Blocks.PODZOL || block == Blocks.FARMLAND; } would suggest, override this method...
January 29, 20205 yr Author Worked like a charm, thanks! Fancy trees are a little more complicated but I worked them out the same way and looking at the defaultbiomefeatures.java if anyone's curious.
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.