Preventing Blocks from turning into Dirt

I would like to prevent podzol and mycelium from turning into dirt when another layer of those blocks or a barrel are placed on top of them.

I’m hoping to do this without freezing or turning off the block updates for the entire world.

Continue to help post