Created
August 10, 2014 02:46
-
-
Save majaha/d9f1bda86f3b6762a8c8 to your computer and use it in GitHub Desktop.
MCEdit getting data folder in any dimension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if level.dimNo == 0: | |
dataPath = level.worldFolder.getFolderPath("data") | |
else: | |
dataPath = level.parentWorld.worldFolder.getFolderPath("data") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment