Jump to content

Recommended Posts

Posted

Not with bonemeal or anything

 

My custom sapling block

 

  Reveal hidden contents

 

 

My custom tree worldgen class

 

  Reveal hidden contents

 

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Posted

Is it cause I need to register something? Maybe tree worldgen needs registering??

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Posted
  On 11/1/2016 at 6:35 PM, trollworkout said:

Is it cause I need to register something? Maybe tree worldgen needs registering??

Yes you need to register WorldGenerators.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

But how do I register it?

 

The GameRegistry.RegisterWorldGenerator only registers IWorldGenerator and not WorldGenerator for my custom tree gen.

 

Seems other mods don't register their custom tree gen.

 

I'm thinking my problem may be somewhere else maybe my grow function in my sapling is broken.

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Posted
  On 11/1/2016 at 7:18 PM, trollworkout said:

But how do I register it?

 

The GameRegistry.RegisterWorldGenerator only registers IWorldGenerator and not WorldGenerator for my custom tree gen.

 

Seems other mods don't register their custom tree gen.

 

I'm thinking my problem may be somewhere else maybe my grow function in my sapling is broken.

Doesn't WorldGenAbstractTree implement IWorldGenerator and you never call the generation method you just create a new instance then never do anything.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

WorldGenAbstractTree extends WorldGenerator

 

Nope it implements WorldGenerator not IWorldGenerator.

 

 

Whatever code I have up there it does not bonemeal and will not grow ever. There's some issue somewhere. I have a feeling the sapling is broken.

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Posted
  On 11/1/2016 at 7:29 PM, trollworkout said:

WorldGenAbstractTree extends WorldGenerator

 

Nope it implements WorldGenerator not IWorldGenerator.

And WorldGenerator implements IWorldGenerator

 

  Quote

Whatever code I have up there it does not bonemeal and will not grow ever. There's some issue somewhere. I have a feeling the sapling is broken.

 

  Quote

you never call the generation method you just create a new instance then never do anything.

Here I meant in your growTreeMethod(...).

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 11/1/2016 at 8:00 PM, diesieben07 said:

  Quote
And WorldGenerator implements IWorldGenerator
No, it doesn't.

Really? Wow, is IWorldGenerator just provided by forge as a better alternative? I have never looked at WorldGenerator as I have not needed it.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
IWorldGenerator

is added by Forge to make custom world generation easier. Vanilla code is generated in

BiomeDecorator

, and the custom generation is called from

Chunk#populateChunk

.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted
  On 11/1/2016 at 10:04 PM, larsgerrits said:

IWorldGenerator

is added by Forge to make custom world generation easier. Vanilla code is generated in

BiomeDecorator

, and the custom generation is called from

Chunk#populateChunk

.

Good to know. Still shows that I have much more to learn.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

WorldGenerator does not implements or extends anything. IWorldGenerator and WorldGenerator are not compatible.

 

 

So how do I fix my custom tree?

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

Posted

I figured it out guys.  I was right my sapling was incorrect.

 

Gen tree was wrong. I fixed it like so

 

  Reveal hidden contents

 

 

Note the

        IBlockState iblockstate2 = Blocks.AIR.getDefaultState();

        worldIn.setBlockState(pos, iblockstate2, 4);

       

        if (!worldgenerator.generate(worldIn, rand, pos.add(0, 0, 0)))

        {

        worldIn.setBlockState(pos, state, 4);

        }

 

seems like you need to set the state of air block to 4 before you can spawn the tree.

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

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.