I was able to figure out the basic steps to make a custom structure, but one thing present on Pillar and missing from the vanilla implementation still bothers me: the lack of a (easy) way to randomize nbt data (loot tables) when a TE block spawns alongside the structure.
So, i propose a new idea to spice vanilla structure system: a new technical block (or even an extension of vanilla's structure block, its up to the mod maker interested) that facilitate the setup of TEs with random data included (not only chests, but also spawners and other modded blocks). Basically, it would replace itself on structure spawn with a "target" block specified when interacted, drawing its random nbt data from a list also configured when interacted to. Think about the deprecated Structure Block's DATA mode, but more intuitive to the player.
I will explain in the next messages how that thing would work (because the text limit of discord messages would eat up the majority of my text).
Ah, sorry for the absolutely disgraced mockup attached on the thread. I did with Lazarus, because i really didn't want to try to make something on Photoshop and forget the points i want to bring here, that is the more important part.
Well, this is like an "evolution" of my Pillar update request, but now taking in consideration how custom structures work in vanilla datapacks. Only the relevant part that i could find a suitable alternative i'm requesting here. I would also do another request for a in-game graphical tool to generate the all the .jsons necessary to a custom structure to generate from a datapack, but this will be in a separate thread.