Jump to content

[1.12.2] Custom dimensions spawn overworld mobs, are seen as "Plains" biome


Dizzlepop12

Recommended Posts

After porting from 1.8.9 to 1.12.2, it's apparent that something has changed with dimension biomes. Each of my custom dimensions only has one biome in it, but apparently it's setting the biome to plains instead of the specified dimension biome, which is causing overworld mobs to spawn and no modded mobs to spawn. Any ideas? All help is greatly appreciated.

 

Dimension example: https://github.com/TheSlayerMC/Journey-1.12/tree/master/main/java/net/journey/dimension/terrania

Dimension registry: https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/dimension/DimensionHelper.java

Link to comment
Share on other sites

25 minutes ago, jabelar said:

I don't have time at the moment to look at your code, but I would suspect it would be an issue with your BiomeProvider. Did you associate instances of BiomeProviderSingle to your dimensions and do they properly point to your custom biome?

Yep. These are the main areas where the biome is supposed to be registered and mobs are set to spawn in the specific dimension:

https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/dimension/terrania/WorldProviderTerrania.java#L18

https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/dimension/DimensionHelper.java#L124

https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/journey/dimension/DimensionHelper.java#L218

 

Link to comment
Share on other sites

Okay, in that case I would add a bunch of console statements throughout your code and then trace what happens. Like add a statement in each method and then you can confirm that every method is being called as expected. Of course in your print statements you can print out any values of interest as well to aid the tracing. It should be quickly obvious what the problem is once you trace it.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.