mojira.dev
MC-107664

Some events / actions do not trigger observers

The bug

Observer blocks do not detect the following actions:

  • Chests opening/closing

  • Ender chests opening/closing

  • Lighting a nether portal

  • When a command block is successful (can be detected with a comparator)

  • Beacon activating/deactivating

  • Something teleported by the end gateway

  • Ringing a bell by hand or by projectile

  • Brewing stands finish brewing a potion

  • Ender dragon head being powered/unpowered

  • Left clicking a note block (might be intended)

Fixed

• Fixed in an unknown version (presumably in a 1.17 snapshot):

  • Grass blocks changing into podzol blocks when a 2x2 spruce tree grows

• Fixed in 20w14a:

  • Don't react to the state change of fences/walls/bars/panes when a tree grows next to them

• Fixed in 1.14.2:

  • Shulker Boxes opening/closing

  • Don't react to the state change of fences/walls/bars/panes when large mushrooms grow next to them

• Fixed in 17w47a:

  • Playing a note block

  • Adding or removing a plant from a flower pot

  • Farmland going through intermediate stages of hydration 0–6, which appear dry

  • Locking / unlocking a redstone repeater

  • Connecting / Orientation (north, south, etc) State for Cobblestone Walls

  • Shape State for Stairs

  • Changes to the data value of fire that signifies flammable surfaces surrounding fire

  • The change of facing fences, (stained) glass panes, iron bars, pumpkin/melon stems, tripwire and redstone wire

  • Snowy State for:

  • Grass Block

  • Podzol

  • Mycelium

  • The opening/closing of the top part of a door by hand, as opposed to by redstone power.

• Fixed in 16w44a:

  • Grass/ferns growing into tall grass/tall ferns

  • Grass blocks changing to dirt due to sheep "eating" the grass

  • Anvil damage changes

  • Dragon egg teleports to a destination

  • Inserting or removing music discs from a jukebox- 1

  • Dry sponge becomes wet

  • Changes in number of snow layers

  • Placing/breaking top part of a double plant (MC-31038)

  • Chorus flower growth to chorus plant

  • Opening and closing door, trapdoor or fence gate

  • Vine/Crop growing (e.g. cocoa, potatoes, nether wart)

  • Placing/removing bottles/potions in/from brewing stands 1

  • Placing an eye of ender in an end portal block 1

  • Changing the water level of a cauldron with a glass bottle or water bucket 1

  • Switching comparators between comparison and subtraction modes.

  • Sleeping in beds.

  • Changing command block/structure block type

  • Changing command block to conditional/unconditional

  • Repeater/comparator/detector rail/activator rail/powered rail getting (un)powered

  • Nether portals be lit/activated

  • End portals be activated

Linked issues

MC-57906 Sponges don't cause block updates Resolved MC-107417 Shulker Box isn't creating a Block-Update while opening/closing it Resolved MC-107443 Will not be output from the observer block also open the shulker box Resolved MC-107535 Observer Blocks Do'nt Check For Doors Opening And Closing Resolved MC-107604 Observers won't activate for doors Resolved

Comments 63

Sorry for my various reports (I thought I would repeat the reports of others, so I did not put the reports together) and thanks for putting together the reports in one 🙂. A greeting [Mod]CubeTheThird !!

Robin Claassen

Here are a few more types of block state changes that do not currently cause block updates:

• Opening/closing trapdoors and fence gates.
• Inserting/removing music discs in/from jukeboxes.
• Changing the water level of cauldrons with buckets and bottles.
• Placing glass bottles/water bottles/potions in brewing stands.
• Placing eyes of ender on end portal frames.
• Vine growth.
• Nether wart growth.
• Natural tree growth (currently only tree growth forced by bonemeal causes block updates).

Block update detectors are amazing, so let's get the most possible use out of them. Now that the developers are giving active support to BUDs by giving us observer blocks, this seems like a great opportunity to make all of the block state changes that really should cause block updates actually do so.

Confirmed in 16w39b

Yep, found the exact same things. Someone told me the opening and closing of things is due to the meta data values not changing on some block updates

Robin Claassen

Here are few more things that observer blocks should detect, but do not currently:

  • Switching comparators between comparison and subtraction modes.

  • Sleeping in beds.

  • Opening ender chests. (It could be argued that the block state isn't actually being changed when you open an ender chest, and hence the observer block shouldn't detect it, but observer blocks do currently detect chests being opened, and that's useful, so it's not a feature that should be removed. If we keep that feature for chests, we should add it to ender chests as well, for consistency.)

53 more comments

Can confirm in 1.19.4

does this also affect piglin heads in the same way it does the ender dragon's?

can confirm in 1.20 Pre-release 1

Can confirm in 1.20.1 and 23w32a

Might like to add that interactions with decorated pots, despite displaying an animation, do not cause observer updates. This is in the same category as opening/closing chests as this is not a blockstate change but intuitively should cause a detectable update.

CubeTheThird

(Unassigned)

Confirmed

Gameplay

Low

Block states, Redstone

block-update, bulk, event, observer, trigger

Minecraft 16w39a, Minecraft 16w39b, Minecraft 16w39c, Minecraft 16w42a, Minecraft 16w43a, ..., 1.20.1, 23w32a, 24w09a, 1.20.5, 1.21.3

Retrieved