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 want to update my mod from 1.16.1 to 1.16.2. But now the ore gen part is completely broken.

 

This code worked on 1.15.2 and 1.16.1:

public class OreGen {
	
	public static void generateEmoulriteOre() {
		for(Biome biome : ForgeRegistries.BIOMES) {
			ConfiguredPlacement<DepthAverageConfig> genPlacementConfig = Placement.COUNT_DEPTH_AVERAGE.configure(new DepthAverageConfig(1, 20, 10));
			biome.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE
					.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, RegisterBlocks.EMOULRITE_ORE.get().getDefaultState(), 6))
					.withPlacement(genPlacementConfig));
		}
	}
	
	
	public static void generateTeleriteOre() {
		
		for(Biome biome : ForgeRegistries.BIOMES) {
			ConfiguredPlacement<CountRangeConfig> genPlacementConfig = Placement.COUNT_RANGE.configure(new CountRangeConfig(2, 0, 0, 256));
			biome.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE
					.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType
							.create("END_STONE", "end_stone", new BlockMatcher(Blocks.END_STONE)), RegisterBlocks.TELERITE_ORE.get().getDefaultState(), 6))
					.withPlacement(genPlacementConfig));
		}

	}

}

 

But like I said, now it is very broken. I know that 1.16.2 has added experimental support for custom biomes in datapacks, and that there were probably some backend changes, but I didn't know that there were so much. And everything that has changed is obfuscated :(

Can somebody help me please: What do I have to change?

Ore generation and all features will be handled through jsons now. Forge is currently working on a system to implement appendages to json files for all users to add their features to. When they actually finish and implement, there will probably be an announcement about it.

10 hours ago, ChampionAsh5357 said:

Forge is currently working on a system to implement appendages to json files for all users to add their features to.

So no. You can google something on dimension/biome jsons in general though.

  • Author

I'm actually a datapack programmer, but this is too much work for me. I will stick with 1.16.1 until forge has a better system.

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.