New modder here. I would like to implement a system whereby blocks and items can be randomly generated during the game inside of each world-- i.e., the "My World" save contains mymod:randomblock43112, the "Bobby's World" save contains mymod:randomblock65938 but not randomblock43112, et cetera-- the key being that each world has a list of randomly generated blocks and items that only exist in that world. Is that even possible? I'm still new to modding, but from what I can see, the game loads every possible block and item on startup. Is there a way to circumvent this?
The only method I can think of is to generate all possible blocks at the beginning of the game, and then distribute them in worldgen based on the world seeds (like some ores in Terraria are exclusive to certain worlds), but this is obviously far from ideal. The only other way I can think to do this is to apply NBT attributes to a single block that are only expressed in certain worlds, but I'd like to avoid that method if possible.
Anyone with more experience than me have thoughts?