I've been checking the command list. There is an event /startup_scripts/ BlockEvents.modification (link)
But that means to modify the block itself, correct?
Entity spawns can be checked. I was wondering if I can check whether a block gets transformed into another (of a list of blocks I list in the command) so I can basically if conditions are met reverse that transformation, aka. effectively cancel the conversion on certain conditions. I can cancel a mob spawn, after all.
Is there any way one could accomplish that? Do I need an addon?
Examplary situation: There is a bug in my modpack where Rich Soil gets transformed into either rooted dirt or Podzol when a spruce grows on top of it (or any other alike tree). I want to solve the issue via KubeJS, but dunno how exactly. Thanks in advance for any tips regarding this!