Thanks. So I can get the chunk NBT by subscribing to ChunkDataEvent.Load, however this seems to be triggered all the time, even if a player isn't moving. And I can't see a way to get the NBT directly from a Chunk object.
So my thinking is this:
- Store the chunk load player info separately (in WorldSavedData or something else)
- On ChunkEvent.Load, check to see whether it's been loaded before
- If not, find nearest player to the chunk with and save them.
Thanks for the help.