So I've found that one can check when a block has changed in three ways:
NeighborNotifyEvent
extending the Block class itself
Using a tick function to continuously check every single important blockpos and check if it is different the next tick
The problem with extending the block class is, obviously, that you can't check if vanilla blocks changed.
The problem with NeighborNotifyEvent is that you don't know what the previous blockstate was.
Using a tick function solves both problems, but this feels like a really bad solution because it has the potential to severely lag the game. Is there any better way to:
Check if a certain block, vanilla or otherwise, has changed
So I've found that one can check when a block has changed in three ways:
The problem with extending the block class is, obviously, that you can't check if vanilla blocks changed.
The problem with NeighborNotifyEvent is that you don't know what the previous blockstate was.
Using a tick function solves both problems, but this feels like a really bad solution because it has the potential to severely lag the game. Is there any better way to: