位置 src\main\resources\data\endarmor\recipes\end_heart_block.json

{
  "type": "minecraft:crafting_shaped",
  "pattern": [
    "WWW",
    "WWW",
    "WWW"
  ],
  "key": {
    "W": {
      "item": "endarmor:end_heart"
    }
  },
  "result": {
    "item": "endarmor:end_heart_block",
    "count": 4
  }
}

W就是key里面的物品如果是空的就打一个空格比如W W