You can use this wonderful plugin by hachkingtohach1(https://poggit.pmmp.io/p/CustomCraftDraz/1.0.3) or if you meant via code you can read up more on "pocketmine\inventory\ShapedRecipe;"