From 8bd9ee6c849013201bbfde99e29563d21ca75319 Mon Sep 17 00:00:00 2001 From: SD Date: Wed, 16 Mar 2022 08:59:26 +0530 Subject: [PATCH] Add a script for printing out rifts in schems --- schem_block_entity.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 schem_block_entity.py diff --git a/schem_block_entity.py b/schem_block_entity.py new file mode 100644 index 00000000..94723f58 --- /dev/null +++ b/schem_block_entity.py @@ -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('')