Posted July 18, 20205 yr 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. 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, 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
July 18, 20205 yr 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 July 18, 20205 yr by Dzuchun Everything said above may be absolutely wrong. No rights reserved.
July 18, 20205 yr 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.