Scavenge Mod 1.16.5/1.12.2/1.10.2 helps you apply custom RightClick/LeftClick behaviors to the block in-game. It is pretty easy for you to add some unique features to behaviors.

Scavenge in detail
Here is the information that will explain every possibility.
You can place LootPools to those behaviors that are removed when meeting conditions. It’s possible to load them from JsonFiles and work similarly to a Scripting language.
Besides, you can add special features or conditions if you right-click these blocks.
How to set a Scavenge Script
The mod currently works with Resource Packs. It auto-loads every file in the data packs.
It also auto-reloads them on resource packs reload.
They will automatically synchronize to the client.
Changes out of the Resource Packs
Effects only run on the server.
Conditions operate on both sides.
Math Operations/Conditions are workable more because its flexibility.
Error Messages can appear directly in Conditions.
Conditions can invert by default.
The creation now utilizes Vanilla lootPools so you can link them to the lootpool.
Scavenge is a mod about ores and resources, API and Library, etc. It requires Minecraft Forge.