Jump to content

Recommended Posts

Posted

I want to be able to get the absolute path of the Minecraft directory.  I tried

 

Minecraft.getMinecraft().mcDataDir.getPath());

 

But it just returns a period.  How can I get the path of Minecraft?

Posted

To save data not associated with any block/part of the map, I will have to write to a file, unless there is a way to do that.  (Namely save ItemStacks not tied to a block/entity, and some custom datatypes).

Posted

There is the world folders you should be saving this into, not the root minecraft folder.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

I was looking at WorldSavedData and it seemed like it doesn't do what I want it to do exactly.  It's more like is there a NBT tag associated with the map itself that I can access?

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



×
×
  • Create New...

Important Information

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