Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

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

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

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

❤️

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.