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

Started by BarsTiger on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Apr 2021
Points:
571

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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...

Active 2 years ago
Joined Jul 2018
Points:
693

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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

 

Active 2 years ago
Joined Jul 2021
Points:
545

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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?

Active 1 month ago
Joined Jul 2021
Points:
589

User statistics:

  • Modifications: 1
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 50
@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?

Active 1 month ago
Joined Jul 2021
Points:
589

User statistics:

  • Modifications: 1
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 50
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