Jump to content

My Nether Ore isnt generating


MGHader

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.