Jump to content

Tree Creation Forge 1.19.2


Recommended Posts

I am creating a simple minecraft mod to help me learn coding but I wanted to create a tree with more than one kind of leaves here is the code of thre actual Tree

SUCCINIFERA_LOG is the actual log of the tree meanwhile SUCCINIFERA_LEAVES are the leaves, but I wanted to add FLOWERING_SUCCINIFERA_LEAVES aswell, is there a way to do so?

...

public static final RegistryObject<ConfiguredFeature<?,?>> SUCCINIFERA =
CONFIGURED_FEATURES.register("succinifera", ()->
new ConfiguredFeature<>(Feature.TREE, new TreeConfiguration.TreeConfigurationBuilder(
BlockStateProvider.simple(ModBlocks.SUCCINIFERA_LOG.get()),
new ForkingTrunkPlacer(
17,
7,
1),
BlockStateProvider.simple(ModBlocks.SUCCINIFERA_LEAVES.get()),
new SpruceFoliagePlacer(
ConstantInt.of(12),
ConstantInt.of(9),
ConstantInt.of(13)),
new TwoLayersFeatureSize(3,
4,
5))
.build()));
...

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.