The neighborchanged event is an event that can only be used for custom blocks. This event is triggered when a block is changed near the block containing the event. e.x.
If using script to change the current block, it can trigger the neighborchanged event for blocks next to it as well. If a loop is set up, the block with switch back and forth infinitely and cause massive lag until the blocks are broken.
Triggers for neighborchanged event
- placing a block
- black holes
- block scanners