Skip to content

Class Systems & Blang Conversion

Phinehas Beresford edited this page Feb 12, 2024 · 1 revision

Class Systems:

  • We currently only have 1 class-based system that works with MC3DS's Blang Files.

BLANG Conversions:

Initializing the Input File:

input_file_path = mc3dslib.BlangFile().open(".\\en_GB.json") # Initialzation of Example File (can be *.blang or *.json).

Converting from JSON to BLANG:

blang_file = mc3dslib.BlangFile().fromJson(input_file_path) # 'input_file_path' has to be a *.json file.

Converting from BLANG to JSON:

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)

Create Directories:

  • Creates Directories for World Conversions.
m4 = mc3dslib.make_mcworld_struct()
m4.make_dirs()