Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.15] How to Control What Blocks a Tree Can Spawn On


Recommended Posts

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?

Link to comment
Share on other sites

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


  • Thanks 1
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.

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.


  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.