How to get world directory in 1.16.4? (For filemanager plugin)

Started by BarsTiger on

Topic category: Help with modding (Java Edition)

Last seen on 16:07, 18. Apr 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get world directory in 1.16.4? (For filemanager plugin)

I need to create file in mcrunfolder/saves/worldname with File Manager plugin, and it has only Get game dir function

Version of MC is 1.16.4

I wanted to use getWorldDirectory (from 1.7), but it doesn't work...

Last seen on 00:57, 6. Jan 2023
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Not sure if you still need…
Tue, 03/15/2022 - 00:20

Not sure if you still need this, but in case anyone else shares this problem you can do this, It has to be in a procedure that has the world parameter:

https://imgur.com/a/5cFRVL7

 

Last seen on 05:14, 11. May 2023
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey deathking10126, I tried…
Sat, 07/16/2022 - 08:07

Hey deathking10126, I tried what you sent but that dependency seems to be a direction dependency block. This causes it to throw the error:

> "error: incompatible types: Level cannot be converted to Direction".

Did this change in 1.18.2?

Last seen on 20:22, 22. Apr 2024
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Rasa_Novum and …
Fri, 12/30/2022 - 23:07

@Rasa_Novum and @deathking10126

I can’t even find the “world” block that was shown in the example, did it get moved or named to something else in one of the newer versions of Mcreator?

Last seen on 20:22, 22. Apr 2024
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Edit: never mind I found it,…
Fri, 12/30/2022 - 23:32

Edit: never mind I found it, just took me a bit!

Sorry for the trouble! :P