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.

chrisoliver345

Members
  • Joined

  • Last visited

  1. So I was wondering, how do I create a custom FillerBlockType for OreFeautureConfig so that I can generate this into the biomes. I am wanting it to be endstone if that helps. This is my code so far: public static void generateOre() { for (Biome biome : ForgeRegistries.BIOMES) { if (biome == Biomes.END_BARRENS || biome == Biomes.THE_END || biome == Biomes.END_HIGHLANDS || biome == Biomes.END_MIDLANDS || biome == Biomes.SMALL_END_ISLANDS) { ConfiguredPlacement customConfig = Placement.COUNT_RANGE.configure(new CountRangeConfig(20, 5, 5, 25)); biome.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, ModBlocks.END_ONYX_ORE.getDefaultState(), 10)).withPlacement(customConfig)); } } }
  2. yeah but how do i find all blocks with that hardness?
  3. So I'm trying to check if a block is unbreakable but I can't figure out how to do this. Can anyone help?
  4. How would I then use reflection here?
  5. So I'm trying to change the code in minecraft's PlayerController class to make currentBlock and isHittingBlock public, but Intellij just tells me that the file is just read only. How do I go about changing this, as I know it should be possible as I have seen it in other mods source code. Thanks

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.