Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for Block in NBT_Blocks:
- try:
- nbt_placement = str(Block["x"].value)+","+str(Block["y"].value)+","+str(Block["z"].value)
- NBT_string_temp, NBT_name_temp, NBT_Block_temp, tmp = Read_NBT_Data(Block, mode_debug)
- #print NBT_name_temp+":"+NBT_string_temp
- #print NBT_strings
- if NBT_string_temp != "{}" and NBT_name_temp not in Settings[Preset]["BlackListNBT"]:
- if NBT_string_temp in NBT_List[Preset].keys():
- NBT_name[nbt_placement] = list(NBT_strings.keys())[list(NBT_strings.values()).index(NBT_name_temp+":"+NBT_string_temp)]
- else:
- number = 0
- while True:
- if NBT_name_temp+"_"+str(number) in NBT_strings.keys():
- number += 1
- else:
- NBT_strings[NBT_name_temp+"_"+str(number)] = NBT_name_temp+":"+NBT_string_temp
- NBT_strings_list.append(NBT_name_temp+":"+NBT_string_temp)
- NBT_Block_temp.write_file("./Results/NBT/"+NBT_name_temp+"_"+str(number)+".nbt")
- NBT_name[nbt_placement] = str(NBT_name_temp+"_"+str(number))
- break
- except:
- if mode_debug >= 0:
- debug_msg.append("Error Reading Specific Block NBT Data")
- progress_current += 1
- if progress_current >= progress_step:
- sys.stdout.write('|')
- sys.stdout.flush()
- progress_current -= progress_step
- except:
- if mode_debug >= 0:
- debug_msg.append("Error Reading Block NBT Data")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement