Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

Everything posted by Nyanar

  1. /** * BiomeSize is fired when vanilla Minecraft attempts to generate biomes.<br> * This event is fired during biome generation in * {@link GenLayer#initializeAllBiomeGenerators(long, WorldType, ChunkProviderSettings)}. <br> * <br> * {@link #originalSize} the original size of the Biome. <br> * {@link #newSize} the new size of the biome. Initially set to the {@link #originalSize}. <br> * If {@link #newSize} is set to a new value, that value will be used for the Biome size. <br> * <br> * This event is not {@link Cancelable}.<br> * <br> * This event does not have a result. {@link HasResult} <br> * <br> * This event is fired on the {@link MinecraftForge#TERRAIN_GEN_BUS}.<br> **/ This is the comment on the event on net.minecraftforge.event.terraingen.WorldTypeEvent.BiomeSize. To me it does seem like the proper event to go with, but again I feel that I'm missing something...
  2. Well, according to this documentation, BiomeSize is fired when vanilla Minecraft attempts to generate biomes, so it sounds quite fine to me... Also, what do you mean by the wrong way to do it? What trouble could it cause? Thank you very much for your assistance, by the way ;)
  3. Oh, yes, sure. This is my GitHub Repository. Plus, I have managed to solve it (by solving it I mean that the ore does generate as intended without any issue) by changing WorldTypeEvent.BiomeSize to FMLLoadCompleteEvent, but I still don't know why the former did not work. Also, what I meant by not working was that everything ran fine, except the ore did not generate at all. I'm sorry for being so vague. However all that, I have two questions: why does WorldTypeEvent.BiomeSize not work and what do the values for bottomOffset and topOffset (the two zeroes in the WorldFeatures class) mean?
  4. This is my take now, IntelliJ desn't point out any syntax errors, but it is still not working for some reason: @SubscribeEvent public static void onInitBiomesGen(WorldTypeEvent.BiomeSize event) { for (Biome biome : ForgeRegistries.BIOMES) { biome.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, ModBlocks.LYNITE_ORE.getDefaultState(), 17)).withPlacement(Placement.COUNT_RANGE.configure(new CountRangeConfig(20, 0, 0, 128)))); } } I have taken a look at Minecraft's source code and can't figure out what's wrong in the above code.
  5. Thank you; I had also tried that, but Forge 1.15.2 (latest) does not recognise the method Biome.createDecoratedFeature(Feature, OreFeatureConfig) in net.minecraft.world.biome.Biome. I'm guessing it has been changed in the 1.15 update, but can't find any info on that.
  6. Hi, I am new to modding and was testing a very basic mod where a custom ore drops a custom item. However, I can't find a way to make it generate naturally in the overworld. Some posts I have been looking into point to the following method: @SubscribeEvent public static void onInitBiomesGen(WorldTypeEvent.BiomeSize event) { for (Biome biome : ForgeRegistries.BIOMES) { biome.addFeature( GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.func_225566_b_( new OreFeatureConfig( OreFeatureConfig.FillerBlockType.NATURAL_STONE, ModBlocks.LYNITE_ORE, 8 ) ) .func_227228_a_(Placement.COUNT_RANGE.func_227446_a_(new CountRangeConfig(1, 0, 0, 16)) ) ); } } However, the function func_225566_b_ and the function func_227446_a_ don't seem to exist for Forge. They might have gotten a proper name in the last updates, but I can't find any way to know which. What I'm asking for is somewhere to find updated documentation and some help with ore generation. Thank you. PS.: I know that my code is terrible; I'm not new to Java but I know nothing about modding.
  7. Thank you, diesieben07, for your attention, but I reinstalled everything and everything seems to work now.
  8. Hello. I am writing this post after trying to import the file build.gradle as a project in IntelliJ IDEA and getting the following error: I use JDK 8u241 and Forge MDK 1.15.2 - 31.1.19. I would be thankful to receive some help because I'm new to modding. If you require any further information, ask me.
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.