r/admincraft • • 8d ago

Discussion Data Packs or Plugins for World Generation?

Hello lads,

I was looking for the best place to ask this question and came across this community. I'm currently running a Minecraft Survival server and want to improve the world generation because, honestly, the standard vanilla terrain is starting to feel a little boring.

I'm considering using either a world generation plugin, such as Iris or TerraformGenerator, or a datapack that completely overhauls the terrain. To clarify, I'm only interested in custom biomes, mountains, landscapes and additional structures. I don't want custom mobs or complicated mechanics. Just a more beautiful, interesting world for players to explore.

My main question is: which approach would be better for a multiplayer server in terms of CPU usage, server performance, player experience and overall stability? I also plan to use Chunky to pregenerate the world, so I'm curious whether that would make a significant difference between the two approaches.

Would a datapack generally be more lightweight, or would a dedicated world generation plugin be better optimised?

I'd really appreciate hearing from server owners or anyone who's experimented with both options.

Thanks in advance, lads.

2 Upvotes

25 comments sorted by

2

u/Regrave 8d ago

on the chunky part, yeah it makes a big difference. once the world is pregenerated the generator barely runs, so most of the cost gets paid up front either way. and worldgen datapacks like terralith are just json that vanilla's own generator reads, its the function datapacks that are the slow interpreted kind

1

u/_Solent_ 8d ago

Oh, I see. What do you mean by function data packs? The ones that have mobs running on it?

3

u/Regrave 8d ago

yeah pretty much, ones with functions that run every tick for mob stuff. dungeons and taverns was the one in your list, the biome ones dont do anything once the chunks exist

1

u/_Solent_ 8d ago

Cheers, I reset it and went through everything one final time. I have only data packs with no ticks. Thank you

2

u/Master5723 8d ago

If Chunky pregenerates everything, CPU usage mostly stops being a deciding factor. You pay the generation cost once, and after that players load saved chunks either way. The real differences are generation speed and maintenance. Datapacks like Terralith or Tectonic run through vanilla's generator and usually survive updates well. Iris costs much more per chunk and needs generator: Iris under worlds in bukkit.yml. One datapack trap: put them in world/datapacks before the first start. If you add them later, you get hard seams at the borders of chunks that already exist.

0

u/Accomplished_Fee9159 8d ago

Data packs would be better overall. It's also a lot simpler

1

u/_Solent_ 8d ago

That is good news. I thought the same. It's so pretty as well. I will proceed with data packs because it's just biomes and buildings; I have many added.

3

u/PM_ME_YOUR_REPO Admincraft Staff 8d ago

Hey, OP, I'm the top moderator of this community. The guy above is objectively wrong. Datapacks are interpreted, not compiled like Java code. As a result, they are orders of magnitude slower. When given the choice between a plugin and a datapack, always prefer a plugin. Excessive datapacks are one of the most common causes of server lag.

1

u/_Solent_ 8d ago

Oh dear...... I really appreciate you for the response. I genuinely thought data packs were less likely to be heavier than plugins. Does it depend on the data pack as well, if you don't mind me asking, and why is that the case even after using Chunky? Isn't it just biomes and structures that are being generated?

1

u/PM_ME_YOUR_REPO Admincraft Staff 8d ago

As long as the datapack is carefully crafted to not have any recurring/repeating functions, then after generation is stopped, the performance difference is zero. But many datapacks DO have recurring functions, tho luckily the ones that do are usually not world gen.

1

u/_Solent_ 8d ago

Oh, I just checked, and only this data pack has repeating functions. What is your personal opinion about it? Dungeons & Taverns has a repeating tick function

Ignore my previous message.

1

u/PM_ME_YOUR_REPO Admincraft Staff 8d ago

I have used that one before. It's quite heavy. I recommend against it unless your server is very powerful.

1

u/_Solent_ 8d ago

Cheers, I will remove it. I use a dedicated server with 64 GB and an AMD Ryzen 7 9700X, 8 cores / 16 threads. Got from OVHCloud

1

u/PM_ME_YOUR_REPO Admincraft Staff 8d ago

Very solid specs. Could probably be fine. But I've still have a bad experience with that particular data pack, so I personally wouldn't bother.

1

u/_Solent_ 8d ago

I do not want to risk it. I just checked with AI, and that was literally the only data pack which had ticking. May I ask another question? Apologies for taking your time. Shall I disable the data pack, or shall I delete the world and create a new one? I have already done chunky and pre-generated the world, and I'm not sure whether disabling the pack even after pre-generating the world, would help, or if I would need to reset the world.

→ More replies

0

u/_Solent_ 8d ago

Oh, I see. I tried searching online using AI but couldn't get a definite answer. That's why I reached out here. I appreciate the guidance. Any chance if I coul share you what i use and you could tell if I am done for or not. My silly head decided to run chunky, and it took 8 hrs. It's completed, but it's just data packs for the biomes and buildings. May I share what I use, or could you guide me on what I should ask AI to investigate and tell me if there's anything I need to watch out for?

0

u/8336514563737 7d ago

Incendium...

1

u/Gabin293 8d ago

"When given the choice between a plugin and a datapack, always prefer a plugin."
Is there really any choice in world generation?

Worldgen datapacks are much easier to use, they are well documented and there are many that already exist.
Also, because worldgen is data driven, datapack generation is not really slower or more demanding than vanilla generation, it’s the same java code reading different json files…

2

u/PM_ME_YOUR_REPO Admincraft Staff 8d ago

As long as it is JUST doing world gen and there aren't any persistent/repeating functions, then yeah, Chunky it once and you're good. But so many of them have that extra nonsense, and most people assume "datapacks are first party, so they're better" when that really is not true.