If right click is set for tools then use tool function always and prevent any actual right click actions.
If allowing right click (on_place and on_secondary_use) gets too complicated then leave it out for now, using right click will anyway reduce functionality a lot and therefore probably not that important feature.
Consider allowing similar configuration for individual tools (configuration stored in tool meta). Configuration will get cleared with tool reset crafting recipe.
Allow per player configuration for tool controls.
Formspec that can be used to set combination of:
If right click is set for tools then use tool function always and prevent any actual right click actions.
If allowing right click (on_place and on_secondary_use) gets too complicated then leave it out for now, using right click will anyway reduce functionality a lot and therefore probably not that important feature.
Consider allowing similar configuration for individual tools (configuration stored in tool meta). Configuration will get cleared with tool reset crafting recipe.