Jump to content

Ore Generation


poalqo

Recommended Posts

I am really close to finishing the basics of my mod but am having issues with ore generation.

Since Forge doesn't have much documentation on world generation I looked on YouTube to see what they've done, and it seems that all block generation is dependent on the biome.

So I essentially copied their code word for word (attempting to understand it along the way) and it seems not to be working.

image.png.f79d7f976311416194ba642c9413f8e7.png 

Here's my code for ore generation.

I put the debug there in order to see when the Forge actually ran this generateOre method, but to my surprise I found nothing in my "debug.txt" file.

So my current guess as to why the code isn't working is because Forge isn't actually running this method,

image.png.d4a1bf915aff2f4ef39b610347c35fe9.png

but according to the video, it should. I don't know the difference between 1.15 and 1.16 is a lot but I believe it should still be quite similar.

Anyways, I would appreciate all the help :D

Link to comment
Share on other sites

1) Class names were decided to start from a capital letter. Please, change your mod class name to "Testmod".

2) If you found nothing in debug.txt it means, that forge does not recognize your mod at all, because at least 1 message you log in you mod class constructor.

3) You did not subscribe your mod class with Mod.EventBusSubscriber annotation. Put "@Mod.EventBusSubscriber(bus = Bus.MOD, modid = Testmod.MODID)" before your main class.

Edited by Dzuchun
  • Like 1

Everything said above may be absolutely wrong. No rights reserved.

Link to comment
Share on other sites

1 minute ago, Dzuchun said:

1) Class names were decided to start from a capital letter. Please, change your main mod class name to "Testmod".

2) If you found nothing in debug.txt it means, that forge does not recognize your mod at all.

3) You did not subscribe your main mod class with Mod.EventBusSubscriber annotation. Put "@Mod.EventBusSubscriber(bus = Bus.MOD, modid = Testmod.MODID)" before your main class.

Ayy, thanks for the sols and tip!!!!

Yeh still not as used to the Java conventions lmao.

❤️

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.