Browse Source

working on tagging

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
bfc0f6d06a
  1. 14
      chunkymap-regen.py

14
chunkymap-regen.py

@ -1481,6 +1481,16 @@ class MTChunks:
return result return result
def check_map_pseudorecursion_start(self): def check_map_pseudorecursion_start(self):
worldgen_mod_list = list()
worldgen_mod_list.append("technic_worldgen")
worldgen_mod_list.append("mg")
worldgen_mod_list.append("moreores")
worldgen_mod_list.append("lapis")
worldgen_mod_list.append("sea")
worldgen_mod_list.append("moretrees")
worldgen_mod_list.append("caverealms")
worldgen_mod_list.append("nature_classic") # NOTE: plantlife_modpack has this and other stuff, but just mention this one in tags since it is unique to the modpack
if self.todo_index<0: if self.todo_index<0:
print("PROCESSING MAP DATA (BRANCH PATTERN)") print("PROCESSING MAP DATA (BRANCH PATTERN)")
if os.path.isfile(self.minetestmapper_py_path) and os.path.isfile(self.colors_path): if os.path.isfile(self.minetestmapper_py_path) and os.path.isfile(self.colors_path):
@ -1524,7 +1534,9 @@ class MTChunks:
break break
print("Checking chunk "+str(coords)+" *"+str(self.mapvars["chunk_size"])+"") print("Checking chunk "+str(coords)+" *"+str(self.mapvars["chunk_size"])+"")
self.prepare_chunk_meta(chunky_x, chunky_z) self.prepare_chunk_meta(chunky_x, chunky_z)
self.chunks[chunk_luid].metadata["tags"] = "moreores"
#if ("tags" not in self.chunks[chunk_luid].metadata):
self.chunks[chunk_luid].metadata["tags"] = "moreores,caverealms"
self.chunks[chunk_luid].save_yaml(chunk_path) self.chunks[chunk_luid].save_yaml(chunk_path)
print(" saved tags to '"+chunk_path+"'") print(" saved tags to '"+chunk_path+"'")
for decachunk_luid in decachunk_luid_list: for decachunk_luid in decachunk_luid_list:

Loading…
Cancel
Save