There's such a Minecraft Mod (at least I think it's an is) where if, for example, the pickaxe broken, one of your inventory is automatically pulled down the bar.
Währe nice who someone tells me how this mod is called because it is annoying is always the things in the bar to pull
I think that's called InventoryTweaks
The mod is called "Quark", if you mean that. In addition to many other useful features, there are also those that you have described.
The mod exists for the 1.12.2