Hi,
I'm creating a mod that will spatially project sounds made by blocks (only specific blocks called OSCBlocks ... after OSC ... Open Sound Control). So if I walk past an OSCBlock, I will hear (over a 5.1 or similar system) the block move behind me. I am using an external sound rendering engine.
What I would like to do is maintain a list of these OSCBlocks.... so that, at each tick, the OSCBlock can broadcast its new position relative to the player.
When the server starts, how can I iterate through all placed blocks and create a list of blocks of a particular type?
Or, instead, should I look for OSCBlocks using the Forge Chunk Loading System? Any advice on best practice? One of the challenges is that one can *hear* sounds behind the player ... even if one cannot see them. So there is the possibility that there will be errors if the Chunk loader ignores chunks behind the player.