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

14 minutes ago, MGHader said:

Hello, im creating a Titanium Ore that is planned to generate in the nether, but it seems to not generate, this is my main class and ore generation class.

@EventBusSubscriber and @SubscribeEvent are missing in the Ore generation class

  • Author
1 hour ago, Luis_ST said:

@EventBusSubscriber and @SubscribeEvent are missing in the Ore generation class

Added it, but it isnt generating.
The Overworld ore, works, but the Nether one no.

Vein sizes using OreFeatureConfig should never be below 6. Otherwise, the ore might not spawn. Vein sizes of 2 and below will most likely never spawn. This is not to mention an ore that spawns at the lowest levels of the nether will probably never spawn because lava is not a valid candidate block to replace.

  • Author
6 hours ago, ChampionAsh5357 said:

Vein sizes using OreFeatureConfig should never be below 6. Otherwise, the ore might not spawn. Vein sizes of 2 and below will most likely never spawn. This is not to mention an ore that spawns at the lowest levels of the nether will probably never spawn because lava is not a valid candidate block to replace.

Changed that, but i dont see any difference.

OreGeneration.java

Edited by MGHader

Ah wait, I just saw the if statement. You're checking if the world is not the nether or end when executing the code. And then you check within that if you are not in the nether. So basically you're just saying spawn both of these in the overworld.

  • Author

So, i deleted the event.getCategory().equals(Biome.Category.NETHER), but sadly this didnt solved it.

Yep, the logic of your if statements is pretty flawed. I think you should clarify a bit your ideas about some programming basics. So, the logical flow of the code you need here is very simple:

"is the current biome an End one?" ---> do nothing.

"or is the current biome a Nether one?" ----> generate you Nether ore.

"or (no End or Nether so the biome belongs to the Overworld)" ----> generate your Overworld ore.

I leave it up to you to translate this into java code.

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

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.