How can I move a world into somebody's worlds folder through code?

Started by SuperGlyphs on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I move a world into somebody's worlds folder through code?

I need to add a custom world to the players' worlds folder for my horror-story mixture mod "worldtree5" (I haven't made the mod page yet) and I need some help on adding this world. Is there any way to do this?

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No I doubt it and even if it…
Wed, 04/08/2026 - 16:42

No I doubt it and even if it is possible it would be very hard. Just include a link to a world download in your mod page?

Joined Apr 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Either way there's got to be…
Wed, 04/08/2026 - 19:04

Either way there's got to be some kind of code snippet you can run, I need this specific feature for good gameplay. :(

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Worlds are saved within the…
Thu, 04/09/2026 - 16:28

Worlds are saved within the games saves folder, which is unrelated to the mod. The best I can think of would to be a custom world preset which simply loads your world. No idea if that is possible or how but it's an avenue to look down.

Joined Apr 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah, that's what I was…
Sat, 04/11/2026 - 01:59

Yeah, that's what I was thinking too. Any idea how I could do it?

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know how custom…
Sat, 04/11/2026 - 08:43

I don't know how custom world presets are made but I do know that the preset is called within the dimension.json. Meaning the preset is basically a big noise function/settings file. Have a look through the base games code, mainly the data/world folders. You would need to override and alter the main game code I think to add your preset into the menu and for it to be called by the overworld. I don't know how you would use a world file to override the generation though, potentially you can override the seed used and load the rest as structures?

Have you thought about putting all of your mods content behind a separate dimension. Within said dimension you load your world or what you need of it as a massive structure. Depends on why you need your world and how big you need it really. Would be useful/doable if you're making a massive floating island for example.