Jump to content

[SOLVED][1.10.2] Modifying a vanilla dimension's World Generation


Recommended Posts

Posted

Good day everyone. First of all, thank you for opening this topic and taking the time to assist me in my coding experience. That being said, I do ask for patience and for you to be ready for possibly low IQ questions.

 

Moving on to the matter at hand:

 

My goal is to make my new block, End Dirt (or Endirt) generate on End Islands, ranging from a Y thickness of 1 to 3 blocks. The block is made and is ready for generating. However, I have no idea how to override the world generation to make the top block of the islands endirt.

 

I started frying my brain and I'm stuck. I've tried all types of searches and YouTube video tutorials to get a general idea, but I failed to find anything that's not related to ore generation. I can't possibly figure out how to do this other than overriding the End's biome decoration, which I also have failed to do. Maybe I should have a clear understanding on how World Generation works entirely.

 

So, rounding up: how do I make the top 1-3 layers of the End Islands' blocks be my blocks?

 

I only have one file related to WorldGeneration, but it's for my ores and I doubt it will come into play here. I will post it if asked for, though. (If you do need me to post a file, remind me which internet domain was the most comfourtable to do so and I'll gladly upload it)

 

Thank you very much for your time and I hope you have a fantastic day.

 

UPDATE #1 at 19:42, 25/08/16:

 

I've created all the files necessary to override the End's world generation: the WorldProvider, the ChunkProvider, the MapGenEndCity (vanilla one requires the original ChunkProvider), and the WorldGenEndIsland(I believe the Obsidian Pillars and things related to the Dragon fight are handled by the DragonFightManager files). The thing is, I registered the WorldProvider and the dimension with the vanilla End dimension's ID (1) using

DimensionType.register(name, suffix, id, provider, keepLoaded);

but my version of the End isn't generating. I think I have to unregister the original End dimension before registering my new End dimension, but I have no idea how.

 

Any ideas?

 

SOLUTION

 

To modify an existing dimension, since you cannot edit base files, you need to create equal files to override them:

- WorldProvider class

- ChunkProvider class

- Extra classes used by these two classes.

 

Note: the ChunkProvider class is the one that handles the actual generation. So if you want to add or stuff, they should be handled there.

 

In my case, I just wanted to generate dirt in the End, so I just copied the vanilla files (ChunkProviderEnd & WorldProviderEnd), renamed them and modified them slightly.

 

Once you have these done, you need to unregister the the vanilla dimension, and register your new version of the dimension in its place. In your main mod file, where you have your initialization events, you add some lines of code in the preInit:

 

DimensionType.register(name, suffix, id, provider, keepLoaded);
DimensionManager.unregisterDimension(id);
DimensionManager.registerDimension(id, type);

 

And that's it! There might be some more depth to this, but this is working for me. Thanks everyone!

 

I make sure to "thank" everyone who helps me <3

Posted

If i am correct your goal would be achived through overriding the vanilla end generation mainly the world provider. And if you were to post your code in bulk i recommend github. Though i am not asking you to post your code.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

If i am correct your goal would be achived through overriding the vanilla end generation mainly the world provider. And if you were to post your code in bulk i recommend github. Though i am not asking you to post your code.

 

Adding to Animefan, you should look at ChunkProviderEnd, specifically ChunkProviderEnd#buildSurfaces(ChunkPrimer), when considering what to override

Posted

If i am correct your goal would be achived through overriding the vanilla end generation mainly the world provider. And if you were to post your code in bulk i recommend github. Though i am not asking you to post your code.

 

Aaaah! That was what I missed. I completely forgot about the ChunkProvider files. I've been reading and understanding all the rest but I somehow completely missed these. Thanks for pointing me in the right direction. And for remining me the web page was Github.

 

 

 

Adding to Animefan, you should look at ChunkProviderEnd, specifically ChunkProviderEnd#buildSurfaces(ChunkPrimer), when considering what to override

 

Exactly what I needed. If I manage to do this, I'll update the topic with my solution for people to see. Thank you!

I make sure to "thank" everyone who helps me <3

Posted

Why not simply subscribe to the DecorateBiomeEvent.Post event? Check if the event#getWorld()#provider#getDimension returns 1 (end dimension), and then get the top solid block from event#getWorld()#getTopSolidOrLiquidBlock(pos) (getTopSolidOrLiquidBlock only goes after x & z, and iterates from top to bottom for the first solid block, for you).

Then simply change that block, if it is endstone (there's obsidian & bedrock in vanilla End's, modded can add much more) to your End Dirt block.

 

It'd be quite more simplistic with this approach:

  • Only requires an Event-Handler
  • Don't need to override chunkprovider
  • Don't need to worry about other mod's doing the same thing and overriding your chunkprovider (Last one wins the race, here)

 

If you want a "natural" looking dirt depth, like normal dirt over stone in the overworld, you might want to lookup NoiseGeneratorOctaves, or NoiseGeneratorPerlin. You can find some examples in the various vanilla chunkproviders for those.

Also previously known as eAndPi.

"Pi, is there a station coming up where we can board your train of thought?" -Kronnn

Published Mods: Underworld

Handy links: Vic_'s Forge events Own WIP Tutorials.

Posted

Why not simply subscribe to the DecorateBiomeEvent.Post event? Check if the event#getWorld()#provider#getDimension returns 1 (end dimension), and then get the top solid block from event#getWorld()#getTopSolidOrLiquidBlock(pos) (getTopSolidOrLiquidBlock only goes after x & z, and iterates from top to bottom for the first solid block, for you).

Then simply change that block, if it is endstone (there's obsidian & bedrock in vanilla End's, modded can add much more) to your End Dirt block.

 

It'd be quite more simplistic with this approach:

  • Only requires an Event-Handler
  • Don't need to override chunkprovider
  • Don't need to worry about other mod's doing the same thing and overriding your chunkprovider (Last one wins the race, here)

 

If you want a "natural" looking dirt depth, like normal dirt over stone in the overworld, you might want to lookup NoiseGeneratorOctaves, or NoiseGeneratorPerlin. You can find some examples in the various vanilla chunkproviders for those.

 

This could also be the easiest way to do it, and probably the most compatible like you said, but I'm probably going to further "edit" and add more content than just dirt to the End, so using my own World and Chunk providers would, I think, prove to be more effective this way.

 

I'll definitely keep it in mind though. Thanks!

I make sure to "thank" everyone who helps me <3

Posted

UPDATE #1 at 19:42, 25/08/16:

 

I've created all the files necessary to override the End's world generation: the WorldProvider, the ChunkProvider, the MapGenEndCity (vanilla one requires the original ChunkProvider), and the WorldGenEndIsland(I believe the Obsidian Pillars and things related to the Dragon fight are handled by the DragonFightManager files). The thing is, I registered the WorldProvider and the dimension with the vanilla End dimension's ID (1) using

DimensionType.register(name, suffix, id, provider, keepLoaded);

but my version of the End isn't generating. I think I have to unregister the original End dimension before registering my new End dimension, but I have no idea how.

 

Any ideas?

DimensionManager.unregisterDimension(id);

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

UPDATE #1 at 19:42, 25/08/16:

 

I've created all the files necessary to override the End's world generation: the WorldProvider, the ChunkProvider, the MapGenEndCity (vanilla one requires the original ChunkProvider), and the WorldGenEndIsland(I believe the Obsidian Pillars and things related to the Dragon fight are handled by the DragonFightManager files). The thing is, I registered the WorldProvider and the dimension with the vanilla End dimension's ID (1) using

DimensionType.register(name, suffix, id, provider, keepLoaded);

but my version of the End isn't generating. I think I have to unregister the original End dimension before registering my new End dimension, but I have no idea how.

 

Any ideas?

DimensionManager.unregisterDimension(id);

Thank you!!

 

I'll update this post with the solution and a proper title. Many thanks to everyone who pitched in!

I make sure to "thank" everyone who helps me <3

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Unlock an Instant $100 OFF with the Exclusive Temu Coupon Code ALF401700! Whether you're a first-time shopper or a loyal returning customer, this verified Temu promo code ALF401700 is your gateway to incredible savings on thousands of products. By applying code ALF401700 at checkout, you’ll receive a guaranteed $100 discount on your purchase, plus enjoy additional savings of up to 50% OFF on selected items. This special coupon is designed to maximize your discounts, making your shopping experience at Temu more affordable than ever. Why Choose Temu Coupon Code ALF401700 in 2025? First-Time Shoppers: Score a massive 50% off your first order plus a flat $100 OFF using promo code ALF401700. Returning Customers: Don’t miss out! Use ALF401700 to claim a generous $100 OFF on your next purchase. Massive Clearance Sales: With Temu’s ongoing 2025 clearance events, this code unlocks up to 90% OFF on select deals. Global Reach: Whether you shop from the USA, Canada, Europe, Asia, or beyond, Temu coupon ALF401700 works worldwide. 2025’s Top Temu Discounts Powered by ALF401700: Temu $100 OFF New User Promo — ALF401700 Temu Exclusive Discount for Returning Shoppers — ALF401700 Memorial Day Special: $100 OFF Using ALF401700 Country-Specific Offers: USA, Japan, Mexico, Chile, Colombia, Malaysia, Philippines, South Korea, Saudi Arabia, Qatar, Germany, France, Israel — all accept code ALF401700 Free Gift Unlocks — Apply ALF401700 Without Referrals Stackable Bundles: Combine ALF401700 for $100 OFF with up to 50% sitewide discounts 100% OFF Flash Deals during Temu Events with ALF401700 How to Redeem Your Temu Coupon Code ALF401700: Visit the official Temu website or open the Temu app. Select your favorite products and add them to your cart. Enter the promo code ALF401700 in the discount code field at checkout. Watch your total instantly drop by $100 and enjoy any additional percentage discounts automatically applied. Complete your order and enjoy huge savings! Key Benefits of Using ALF401700 Temu Promo Code: Verified and Tested: This code is active and guaranteed to work for 2025. Applicable for All Users: New or existing customers get to enjoy the perks. Works Across Multiple Countries: Perfect for international shoppers. No Minimum Purchase Required: Use it anytime to save $100. Perfect for Big and Small Orders: Whether buying essentials or splurging, save big with ALF401700. Temu Coupon Code ALF401700 by Region: 🇺🇸 United States — Save $100 OFF 🇨🇦 Canada — Instant $100 Discount 🇬🇧 United Kingdom — Exclusive $100 OFF 🇯🇵 Japan — Hot $100 OFF Deal 🇲🇽 Mexico — Get $100 OFF 🇨🇱 Chile — 2025 Special Discount 🇰🇷 South Korea — Massive Savings 🇵🇭 Philippines — Extra $100 OFF 🇸🇦 Saudi Arabia — Verified Promo 🇶🇦 Qatar — Top Discount 🇩🇪 Germany — Exclusive Savings 🇫🇷 France — Coupon Works 🇮🇱 Israel — Huge Discount Final Words: Make 2025 your year of unbeatable savings with the Temu coupon code ALF401700. Act now to claim your $100 OFF plus unlock additional discounts on thousands of products. Whether shopping for fashion, electronics, home essentials, or gifts, this is the best Temu promo code to maximize your budget. Download the Temu app today, enter ALF401700 at checkout, and watch the savings roll in!
    • Verified users can now unlock a $100 OFF Temu Coupon Code using the verified promo code [ALF401700]. This Temu $100 OFF code works for both new and existing customers and can be used to redeem up to 50% off your next order. Our exclusive Temu coupon code [ALF401700] delivers a flat $100 OFF on top of existing deals. First-time customers using code ALF401700 can save an extra 100% off select items. Returning users also qualify for an automatic $100 OFF discount just by applying this code at checkout. But wait—there’s more. With our Temu coupon codes for 2025, users can score up to 90% OFF on clearance items. Whether you’re shopping in the USA, Canada, UK, or elsewhere, Temu promo code ALF401700 unlocks extra discounts tailored to your account. Some users are saving 100% on items using this 2025 Temu promo code. 🔥 Temu Coupon Highlights Using Code [ALF401700]: Temu new user code – ALF401700: Save 50% off your first order + $100 OFF. Temu promo for existing customers – ALF401700: Enjoy flat $100 OFF instantly. Global availability: Works in the USA, UK, Canada, Germany, France, Japan, Chile, Colombia, Malaysia, Mexico, South Korea, Philippines, Saudi Arabia, Qatar, Pakistan, and more. Top 2025 Coupon Deal: Get $200 OFF plus 100% bonus discounts using code ALF401700. Top-Ranked Temu Deals for 2025 (Coupon Code: ALF401700): ✅ Temu $100 OFF Memorial Day Sale — Use ALF401700 ✅ Temu First Order Coupon — Use ALF401700 for 50% + $100 OFF ✅ Temu USA Coupon Code — Save $100 instantly with ALF401700 ✅ Temu Japan, Germany, Chile Codes — All support ALF401700 ✅ Temu Reddit Discount – $100 OFF: Valid for both new and old users ✅ Temu Coupon Bundle 2025 — $100 OFF + up to 50% slash ✅ 100% OFF Free Gift Code — Use ALF401700, no invite needed ✅ Temu Sign-Up Bonus Promo — Get a welcome $100 OFF instantly ✅ Free Temu Code for New Users — Use ALF401700, no referral required  Temu Clearance Codes 2025 — Use ALF401700 for 85–100% discounts Why ALF401700 is the Best Temu Code in 2025 Using Temu code ALF401700 is your ticket to massive savings, free shipping, first-order discounts, and stackable coupon bundles. Whether you're browsing electronics, fashion, home goods, or beauty products, this verified Temu discount code offers real savings—up to 90% OFF + $100 OFF on qualified orders. 💡 Pro Tip: Apply ALF401700 during checkout in the Temu app or website to activate your instant $100 discount, even if you’re not a new user. Temu $100 OFF Code by Country (All Use ALF401700): 🇺🇸 Temu USA – ALF401700 🇯🇵 Temu Japan – ALF401700 🇲🇽 Temu Mexico – ALF401700 🇨🇱 Temu Chile – ALF401700 🇨🇴 Temu Colombia – ALF401700 🇲🇾 Temu Malaysia – ALF401700 🇵🇭 Temu Philippines – ALF401700 🇰🇷 Temu Korea – ALF401700 🇵🇰 Temu Pakistan – ALF401700 🇫🇮 Temu Finland – ALF401700 🇸🇦 Temu Saudi Arabia – ALF401700 🇶🇦 Temu Qatar – ALF401700 🇫🇷 Temu France – ALF401700 🇩🇪 Temu Germany – ALF401700 🇮🇱 Temu Israel – ALF401700 Temu Coupon Code [ALF401700] Summary for SEO: Temu $100 OFF Code  Temu First Order Discount Code 2025  Temu Verified Promo Code ALF401700  Temu 50% OFF + $100 Bonus  Temu 100% OFF Code 2025  Temu App Promo ALF401700  Temu Working Discount Code 2025 
    • Hey there, nothing to do with the code, I am just suggesting you use Intelij IDEA. Trust me, it is the best.
    • Hey there, nothing to do with the code, I am just suggesting you use Intelij IDEA. Trust me, it is the best.
    • You can check the config of Geckolib and Mowzie's Mobs - maybe there is a way to disable some render features
  • Topics

×
×
  • Create New...

Important Information

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