Paper
Paper copied to clipboard
No way to determine if mud changed to clay
Expected behavior
It would be useful to have an event where you could get the initial block ( mud ) and the final block ( clay ).
Observed/Actual behavior
I only found the BlockPhysicsEvent triggered but i didn't find any way to get the initial block ( mud ).
Steps/models to reproduce
Create the appropriate structure to create some clay from mud
Plugin and Datapack List
/
Paper version
Paper version git-Paper-153 (MC: 1.19.2) (Implementing API version 1.19.2-R0.1-SNAPSHOT) (Git: 63cb747)
Other
Here is the structure that changes the mud to clay if you wait a bit ( or just increase the randomTickSpeed )

Generally a rather easy addition of an event call (net/minecraft/world/level/block/PointedDripstoneBlock.java:L216 simply changes the block without publishing an event first).
The only thing that has to be determined here is what event should be called. I'd personally would like to nominate https://jd.papermc.io/paper/1.19/org/bukkit/event/block/BlockFormEvent.html as it is also called for concrete powder's interaction with water.
Due to this question, community input here in regards to what event makes the most sense here (of if we need a new event) would be great!
What event is called when stone is changed to moss via bonemealing moss? If there is an event there, I think it should be the same event.
I'm not sure if an event is called there? It looks like it just creates a feature there, which I assume wouldn't really call any replacement block events.
