{
  "parent": "minecraft:recipes/root",
  "criteria": {
    "has_the_recipe": {
      "conditions": {
        "recipe": "minecraft:bamboo_raft"
      },
      "trigger": "minecraft:recipe_unlocked"
    },
    "in_water": {
      "conditions": {
        "block": "minecraft:water"
      },
      "trigger": "minecraft:enter_block"
    }
  },
  "requirements": [
    [
      "in_water",
      "has_the_recipe"
    ]
  ],
  "rewards": {
    "recipes": [
      "minecraft:bamboo_raft"
    ]
  }
}