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.

starvingslvt

Members
  • Joined

  • Last visited

  1. starvingslvt joined the community
  2. I've been following a modding tutorial made for 1.16, and I've already come across my fair share of functions with name changes and whatnot. But, for the life of me I cannot seem to figure out ore generation. The issue is with .withPlacement, which the person in the tutorial uses, however, it's no longer a thing. I can't find anything that does the same function as .withPlacement. I had already had to replace .withFeature, which the person in the tutorial uses, with .addFeature as well as .withConfiguration with .configured. import net.minecraft.block.BlockState; import net.minecraft.world.gen.GenerationStage; import net.minecraft.world.gen.feature.Feature; import net.minecraft.world.gen.feature.OreFeatureConfig; import net.minecraft.world.gen.feature.template.RuleTest; import net.minecraft.world.gen.placement.Placement; import net.minecraft.world.gen.placement.TopSolidRangeConfig; import net.minecraftforge.event.world.BiomeLoadingEvent; public class FeatureInit { public static void addOre(final BiomeLoadingEvent event, RuleTest rule, BlockState state, int veinSize, int minHeight, int maxHeight, int amount) { event.getGeneration().addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.configured(new OreFeatureConfig(rule, state, veinSize), new OreFeatureConfig(Placement.RANGE.configured(new TopSolidRangeConfig(minHeight, 0, maxHeight))))); } } Edit 1: .withPlacement is now .decorated, and func_242731_b is .count

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.