THE BEST TUTORIAL TO DISABLE CRAFTING IN MINECRAFT
This tutorial disables Certain Blocks to be crafted in Vanilla Minecraft.
CHANGE THE WORD "tnt" IN THE COMMANDS AND REPLACE IT WITH THE ITEM YOU WANT.
WHAT'S WITH 4 SANDS AND 5 GUNPOWDERS?
Because the Recipe for Crafting a Tnt contains 5 Gunpowders and 4 Sand.
When you will get a Tnt from your inventory, It won't disappear because It will only remove Items that were Crafted only.