Created
August 20, 2016 08:44
-
-
Save xarses/4288e659a39249f89e55191abe872653 to your computer and use it in GitHub Desktop.
gregtech6 enviromine config generator
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
preamble = 'gregtech:gt.meta.ore' | |
editions = ['small', 'broken', 'normal'] | |
materials = ['basalt', | |
'bedrock', | |
'blackgranite', | |
'default', | |
'endstone', | |
'gravel', | |
'marble', | |
'netherrack', | |
'redgranite', | |
'redsand', | |
'sand', | |
'sandstone',] | |
file = 'gregtech.cfg' | |
pre = 'blocks {' | |
with open(file, 'w') as file: | |
file.write(pre) | |
for material in materials: | |
for edition in editions: | |
name = ".".join([preamble, edition, material]) | |
title = "_".join(["tile_gtmeta_ore", edition, material]) | |
l1 = title + " {" | |
block = """ | |
{0} | |
S:01.Name={1} | |
I:02.MetaID=-1 | |
S:03.DropName= | |
I:04.DropMetaID=-1 | |
I:05.DropNumber=-1 | |
B:"06.Enable Temperature"=false | |
D:07.Temperature=0.0 | |
D:"08.Air Quality"=1.0 | |
D:09.Sanity=0.0 | |
S:10.Stability=ore | |
B:11.Slides=false | |
B:"12.Slides When Wet"=false | |
""".format(l1, name) | |
file.write(block) | |
file.write(" }\n\n") | |
file.write('}\n') | |
#end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment