A Minecraft datapack that disables all vanilla recipes.
Download zip file.
Navigate to the datapacks folder in your minecraft world:
%appdata%/.minecraft/saves/worldname/datapacks/
Drag downloaded zip file into this folder (you don’t have to unzip it).
The datapack will be active next time you load your world. If not, run the /reload command.