Linking Block Entities in region files with their correct Block States?

When we upgraded our server to 1.21, one of the mods we use, that converts certain block entities to modded versions, wasn't available for the new version (and wouldn't be for a while), so we had to go without it. Naturally, we lost all the modded block entities. Now the mod is available for 1.21, and I'm considering writing a program to run through the region files from our pre-update backup, find the modded entities, and recreate them using commands. But while I can find them listed under the block entities with their location and type, their "facing" direction is only specified down in block states, but those don't list locations. How can I reliably connect the right block entities with the right block states while parsing the region file?
1 Reply
Admincraft Meta
Admincraft Meta7mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by locutusofnord#0

Did you find this page helpful?