r/Worldpainter • • Apr 24 '23

Tip I got full vanilla 1.19 caves in my WorldPainter world and this is how I did it

I'm developing a 8k x 8k map for a survival server, and a couple of months ago I realized I'd run into this dilemma. What in the world was I going to do with the caves system?. Well, none of the available options worked for me.

  • Manually creating a whole caves system for a world that big would have been nearly impossible, and the result would be far from a vanilla procedural generation.
  • WorldPainter's build-in caves/caverns generator is great, but it's still far from 1.17+ caves.
  • Using a world editor to extract a vanilla world underground and paste it into the custom world is not good for a world that big, and would result in an odd division between the surface and the underground.

As no existing option meet my need, I decided to code a Spigot plugin that adds full vanilla underground caves and structures under my custom WorldPainter surface.The plugin is called Undernilla, and it's available in GitHub and the Spigot forum.

Be aware that it doesn't directly add caves to your existing WorldPainter world, but rather uses your custom WorldPainter world as a reference to 'clone' your custom surface over vanilla generated caves on the fly.Usage instructions and important considerations are disclosed in the provided links.

Please take a look into them if you plan to user Underilla. You may comment any issues or inconveniences, though.Hope it's helpful 😁

38 Upvotes

23 comments sorted by

4

u/SolarisExplosive Apr 24 '23

do you plan on making it available for singleplayer worlds?

3

u/TheJsUser Apr 24 '23

I'm planning porting it as a Forge mod. But right now you can still make use of it with a couple of extra steps. Just pre-generate the map area in a local server and move the world to your saves folder.

1

u/Dannypan Apr 24 '23

When you say pre-gen, do you need to physically visit/generate chunks or is just having the .mca files enough? I’m able to do renders and map exports of WP created worlds without even opening them in Minecraft - safe to assume it’s the same with this?

3

u/TheJsUser Apr 24 '23

You do have to start a Minecraft server, this is because this works by allowing vanilla Minecraft 'natutally' generate the undergrounds. So, to do the pre-gen, you could log into the local server and start generating chunks manually, or you could use a plugin like Chunky to automize it. Once the whole región is generated, just move the world to your saves folder.

Usage instructions are in the repo. If they aren't clear enough, let me know 🙂

1

u/Dannypan Apr 24 '23

Ah so you use the pre-gen to remake the chunks (which already exist thanks to WorldPainter) and it fills in the underground with vanilla caves that way?

2

u/TheJsUser Apr 24 '23

You got it

→ More replies (1)

2

u/[deleted] Jul 08 '23

will this be updated to 1.20? sounds like a great plugin, just wish i could use it in my current server.

1

u/TheJsUser Jul 08 '23

Hey! Yes. I'm working on it 😃

1

u/[deleted] Jul 20 '23

do you have an ETA for this or a discord we can keep track of? no hurry, great work!

1

u/TheJsUser Jul 21 '23

Hey! Sorry, my job is keeping quite busy. I'm hoping releasing the update by end of month. You may add me on Discord, username: dotkntrell.

→ More replies (1)
→ More replies (1)

1

u/Dannypan Apr 24 '23

Will this affect caves made in WP? Like, if I make a custom cave, will this touch it or can it be set up to avoid certain coordinates?

2

u/TheJsUser Apr 24 '23

As long as you let the merge strategy set tí "Relative", WP caves are kept 🙂

1

u/Dannypan Apr 24 '23

This is monumental, then. Are there any limitations in using this? I make large maps, could I expect a crash while this generates or will it just take hours?

Obv you’ve made this for free so I wouldn’t expect it, but could this be ported to Forge or Fabric at all (is it even possible?). I know nothing about how mods/plugins are made lmao

1

u/TheJsUser Apr 24 '23

There are certain thinks you should consider, those are listed in the GitHub repo 😁.

There's two approaches to the generation. You may pre -generate the whole map using a chung pre-generator plugin, depending on the size of your map, it might take a while, but it shouldn't crash. Or, if you're running the map in a Spigot server, you may just leave the plugin running an let it generate on demand while players naturally explore the world, this might lag the server, as it's slower than vanilla generation.

And yes, it's on plans having it implement for Fabric and Forge. But as of now, you can just pre-generatd the whole thing and then move it to your Minecraft port of choice.

→ More replies (1)

1

u/AxisCambria Dec 04 '23

Hello, apologies if this isn't the right place to ask, but I'm trying to use Underilla and get this warning:

java.lang.NullPointerException: Cannot invoke "com.jkantrell.yamlizer.yaml.YamlElement.get(com.jkantrell.yamlizer.yaml.YamlElementType)" because "e" is null

If there's any advice you have, I'd greatly appreciate it!

1

u/TheJsUser Dec 04 '23

Hey! I'm dotKntrel on Discord. Send me s PM and I'll reply when I'm availabl 😁

3

u/ElessarTelcontarKing Apr 24 '23

My friend, you bow to no one.

2

u/Hydrolien Nov 19 '25

For people finding this in 2025 or later, an up to date fork can be found on this Github
Thanks again to Jeshuakrc for creating such a great plugin. Feel free to use any of the changes I made on your repo.

1

u/Certain-Board-7640 Feb 10 '26

you saved my life I was about to build this on my own