Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.14.4] Save a file in the world directory
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Edivad99

[1.14.4] Save a file in the world directory

By Edivad99, January 3, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Edivad99    1

Edivad99

Edivad99    1

  • Tree Puncher
  • Edivad99
  • Members
  • 1
  • 45 posts
Posted January 3, 2020

Hi everyone, I'm porting my mod from 1.12.2 to 1.14.4.

In 1.12.2 to access the directory of the world this command was sufficient DimensionManager.getCurrentSaveRootDirectory (), now in 1.14.4 is there an equivalent command?

  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2405

Draco18s

Draco18s    2405

  • Reality Controller
  • Draco18s
  • Members
  • 2405
  • 15930 posts
Posted January 3, 2020

 ((ServerWorld)world).getSaveHandler().getWorldDirectory();

  • Quote

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Draco18s
      What is the method to left click?

      By Draco18s · Posted 22 minutes ago

      There isn't one. Documentation (such as there is) is all inside the code itself.
    • Gubipe
      What is the method to left click?

      By Gubipe · Posted 32 minutes ago

      can you link me to the documentation page for it?
    • ju_
      Minecraft crashes while launching - failed to find service port for display

      By ju_ · Posted 3 hours ago

      Hi, to follow on the subject i have the same issue https://pastebin.com/E47LtT43 it works fine on my end with vanilla or other version. i only have this issue with forge for 1.16
    • poopoodice
      What is the method to left click?

      By poopoodice · Posted 3 hours ago

      Check Minecraft#processKeyBinds where it checks for attack keybind (left mouse).
    • kiou.23
      Mod won't load when in dev environment

      By kiou.23 · Posted 3 hours ago

      You need to update the build.gradle to have your modid instead of the default examplemod you'll want to modify the group, the modid and pretty much everywhere where "examplemod" is shown, you'll want to replace with your own modid   note: you have a static field in your main mod class (Warwolves.java) called MOD_ID, whenever you need the mod id, you should be referencing this field, instead of typing the string every time note 2: don't create an ItemBase class https://championash5357.github.io/ChampionAsh5357/tutorial/minecraft/ciar#code-style-5
  • Topics

    • Gubipe
      3
      What is the method to left click?

      By Gubipe
      Started 4 hours ago

    • schmiddi_0
      16
      Minecraft crashes while launching - failed to find service port for display

      By schmiddi_0
      Started December 14, 2020

    • Silivek
      1
      Mod won't load when in dev environment

      By Silivek
      Started 8 hours ago

    • BoGuBoy
      2
      3rd party hosted Server wont launch

      By BoGuBoy
      Started 8 hours ago

    • Ronshark
      1
      tempête de Neige primal winter

      By Ronshark
      Started 7 hours ago

  • Who's Online (See full list)

    • mightymoy
    • Jakans
    • henzo800
    • AubriTheHuman
    • ThatTreeGuy
    • Draco18s
    • bananapizzuh
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.14.4] Save a file in the world directory
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community