How do observers work java?

In Java Edition, an observer detects changes in its target’s block states, or the breaking or placing of a block (i.e. changes in its block state, but not its block entity data). This means that changes like the age of crops can be detected because they are part of the block states.

Read more