Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to create a new world?


Proxxo
 Share

Recommended Posts

Hi modders,

 

I want to be able to "clone" parts of the world the player currently stand in. The cloned world should be saved as a new map on the client.

First of, I just want to create a new single player map file. Is this possible with Forge?

I have looked into the article of WorldSavedData but as far as I can say its intention is not to be used to create new worlds.

Also, creating a new world generator does not seem to fit my scenario. I want the new map to be created while the player is in game.

 

Does anyone know how to start? Thanks.

Link to comment
Share on other sites

Here's a hint.

You're working in a language that has access to the file system.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Hi Draco,

 

thank you for taking the time to read and post to my question.

Of course I know that I could just copy and paste files with java - do you assume that devs posting questions here don't know that?

 

Perhaps my question was not clear enough.

I am looking for the Forge-way to copy the current and nearby chunks of a player into a new world file.

Is there something like chunk.saveToDisk() or an API to save into .dat or .mca files?

 

Link to comment
Share on other sites

2 hours ago, Proxxo said:

do you assume that devs posting questions here don't know that?

You have no idea what kind of people come here expecting that making a mod is just pushing a few magic buttons in a GUI.

 

2 hours ago, Proxxo said:

I am looking for the Forge-way to copy the current and nearby chunks of a player into a new world file.

Is there something like chunk.saveToDisk() or an API to save into .dat or .mca files?

Chunk saving happens via IChunkLoader::saveChunk, which is implemented in AnvilChunkLoader. You can probably get away with instantiating your own, pointing it at whatever directory you want and then saving the chunks you need. 

  • Like 1
Link to comment
Share on other sites

2 hours ago, Proxxo said:

Of course I know that I could just copy and paste files with java - do you assume that devs posting questions here don't know that?

Ahahahahahahahahaha.

 

Yes.

  • Like 1

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

Link to comment
Share on other sites

11 hours ago, diesieben07 said:

Chunk saving happens via IChunkLoader::saveChunk, which is implemented in AnvilChunkLoader.

Thanks, that really looks like what I need. :)

 

11 hours ago, ModMCdl said:

Ahahahahahahahahaha.

Yeah, I am probably spoiled by stackoverflow.com.

 

Link to comment
Share on other sites

9 minutes ago, Proxxo said:

Thanks, that really looks like what I need. :)

 

Yeah, I am probably spoiled by stackoverflow.com.

 

Some people dont seem to understand you need Java knowledge before being able to program Java, but we dont need to forget to respect everyone who tries to learn java at least, and i am helping people not only with things i know, but i use the things i know to solve others problems, they all seem to forget this is a helping For rhe Forgde sources and not for java, they can better go to codecademy, stackoverflow or sololearn, and also stackoverflow will help them. Creating errors helps you prograss further in programming, never be scared of some typ of code and be never scared of asking a question: No question ever was stupid.

 

why am i writing this? well, because i want to let evryone know that this forum needs java knowledge but you aint dumb if you ask questions about forge

  • Like 2
Link to comment
Share on other sites

  • 4 years later...

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
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.

 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Hi guys! I currently have a project that I've been developing in a 'vanilla' environment that I'm actually looking to transfer over to Forge, simply because of how much better the experience would be using Forge. Before starting on this Forge mod, I was planning ahead and was looking at options for proxies, of which I would greatly like to use Velocity. In their docs and by asking around their Discord, they don't support support versions of Forge of 1.13 or later because of changes in the "handshake protocol". But I also really don't want to use an unsupported version of Forge, such as 1.12.2, to be able to use a proxy. I was pointed in the direction of potentially making my own client-side mod to allow Forge to be compatible with an updated proxy, such as Velocity. When asking for a direction for achieving this, I was told to have a look at how the Forge server implements logins and that the discrepancy might be with how modified the handshake protocol is. This sounds like quite the challenge to me and I'm completely up for trying to accomplish it. So for the sake of planning ahead and having a rough idea of how I could accomplish that when the time comes to work on it, has anyone else had experience with trying to achieve this? I appreciate any help or direction offered! Thanks! 
    • Been trying to set up a server for myself and a few friends through BisectHosting. I ended up replicating the server on my own computer to see if the issue persisted (if it was on bisect's end) and it was still there. Every time a player tries to connect to the server they start connecting but after only around 2 seconds the player is disconnected with the error message Payload size exceeds 1048576 bytes.  Upon inspection of the server debug file, the player always disconnects while fmlhandshake ticking packet info is being sent, and I have repeatedly made sure the mods and their configs are identical. I tried to get RandomPatches to increase the max allowed byte size, as the default seems to be 32767, but either something is wrong with it or some other mod is limiting the packet size limit.     Server Debug: https://pastebin.com/xZLbtdQB (only includes portions from after the server launched as I couldn't upload the whole file) Server Log: https://pastebin.com/yrJ3tNaW (similarly only after server launched (hence the weird say commands) Client Log: https://pastebin.com/inSzZV96 (whole thing for once) Modlist: https://pastebin.com/Qvurg45j (All but Optifine and BetterFoliage are present on the server as they have caused issues during startup)   Honestly stumped on how to fix this, been working on it for 10 hours across two days to no avail.
    • quiero dormir uwu
    • Hi, mod called "charging gadgets" is crushing forge minecraft 1.18.1 when i place block from this mod, im temporary playing On 1.18 cuz its not happening on 1.18 but c'mon, pls fix it, 1.18.1 is better and I Wonder i could use this version
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.