the game comes with their own thing now - called tags, so - obviously - forge dropped oredictionary in favor of tags.
if you're for example adding a new zinc ingot, you'll need to make a json file in resources/data/forge/tags/items called ingots.json and add your ingot there. that's for things that need all ingots (and i probably should have skipped that one in order not to confuse people). more importantly, in resources/data/forge/tags/items/ingots make a file called zinc.json - that will register your item tag. in addition to item tags, there are block tags (separate thing), fluid tags...
for json content see other mods.
then, in recipes, instead of saying "item": "your_mod_id:ingot_zinc" you say "tag": "forge:ingots/zinc" . and then crafting table will accept both your ingot and other mods' ingots.
in code, for example, if you have a blockstate that player clicked or stepped on, you can called its is() method to see if this block belongs to a given tag.