Add a script for printing out rifts in schems

This commit is contained in:
SD 2022-03-16 08:59:26 +05:30
parent a91c5c5471
commit 8bd9ee6c84

13
schem_block_entity.py Normal file
View file

@ -0,0 +1,13 @@
from nbt import nbt
import sys
path = sys.argv[1]
nbt_data = nbt.NBTFile(path, "rb")
bes = nbt_data["BlockEntities"]
for be in bes:
id = be["Id"]
if (id.value == "dimdoors:entrance_rift"):
print(id)
print(be["data"]["destination"].pretty_tree())
print('')