-
Notifications
You must be signed in to change notification settings - Fork 4
Class Systems & Blang Conversion
Phinehas Beresford edited this page Feb 12, 2024
·
1 revision
- We currently only have 1 class-based system that works with MC3DS's Blang Files.
input_file_path = mc3dslib.BlangFile().open(".\\en_GB.json") # Initialzation of Example File (can be *.blang or *.json).
blang_file = mc3dslib.BlangFile().fromJson(input_file_path) # 'input_file_path' has to be a *.json file.
blang_file = mc3dslib.BlangFile().open(input_file_path) # 'input_file_path' has to be a *.blang file.
output_path = ".\\" # Any Valid Path can go here for Output
blang_file.toJson(output_path)
- Creates Directories for World Conversions.
m4 = mc3dslib.make_mcworld_struct()
m4.make_dirs()