I've been making a floating Island mod and have made a way to generate structures. Since the islands are currently being spawned using an item, I have avoided Structures and World gen. An "Island" is currently just a Block[][][], which with hindsight is not a standard way of representing blocks in Minecraft.
The obvious choice seems to be NBT data. I can see that a structure is made of essentially palettes of blocks and positions of blocks, as well as the block type from the palette.
Assuming I convert my Block[][][] to NBT, do i need to do anything else with that data? Do I need to save/register that NBT data to anywhere?
I have a lot of questions, so it obvious to me I need to gain a better understanding of this, but I couldn't find any fully random structures in Vanilla Minecraft.
Hope this makes sense hahaha