So, today i spent a lot of my time working on a dynamic block updating system. I found it quite challenging to overcome block updates , this is because if i place a block, i need it to send a message to the 6 surrounding blocks, these blocks will then do whatever they need to, this part is kind of the easy part, the hardest part is getting the surrounding chunks to receive block updates too.
I managed to successfully complete this system, it took me several hours to create it and i think that it could do with an optimization, but for now it works fine.
Here is a preview of the block updates :
As you can see from the image below, for testing purposes, i made it so that stone blocks are set to " air " when they receive a block update, so for a test, i made the world place a block in the middle of the chunk, as you can see, it successfully updates in every direction.
So far, this system runs pretty smoothly, it does not really have to do much calculation to achieve this, so i don't think that it will be very intensive to do this.
Thanks for reading and keep checking the blog for more updates!

No comments:
Post a Comment