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.

Kexibq

Members
  • Joined

  • Last visited

Everything posted by Kexibq

  1. public static void generateOres(final BiomeLoadingEvent event) { for (OreType ore : OreType.values()) { OreFeatureConfig oreFeatureConfig = new OreFeatureConfig( OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, ore.getBlock().get().getDefaultState(), ore.getMaxVeinSize()); // bottomOffset -> minimum height for the ore // maximum -> minHeight + maximum = top level (the vertical expansion of the ore, it grows x levels from bottomOffset) // topOffset -> subtracted from the maximum to give actual top level // ore effectively exists from bottomOffset to (bottomOffset + maximum - topOffset) ConfiguredPlacement<TopSolidRangeConfig> configuredPlacement = Placement.RANGE.configure( new TopSolidRangeConfig(ore.getMinHeight(), ore.getMinHeight(), ore.getMaxHeight())); ConfiguredFeature<?, ?> oreFeature = registerOreFeature(ore, oreFeatureConfig, configuredPlacement); RegistryKey<Biome> key = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, event.getName()); Set<BiomeDictionary.Type> types = BiomeDictionary.getTypes(key); if(types.contains(BiomeDictionary.Type.MAGICAL.HOT.DRY.RARE)) event.getGeneration().withFeature(GenerationStage.Decoration.UNDERGROUND_ORES, oreFeature); } } I tried to use BiomeDictionary from my code about FlowersGeneration but this didnt work and ore spawn also in savanna for example. (My biome has type Magical, Hor, Dry, Rare and it is Forest Biome) i have only 5 days experience of modding) Can someone help me with ore gen pls

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.