Add a script for printing out rifts in schems
This commit is contained in:
parent
a91c5c5471
commit
8bd9ee6c84
1 changed files with 13 additions and 0 deletions
13
schem_block_entity.py
Normal file
13
schem_block_entity.py
Normal 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('')
|
Loading…
Reference in a new issue