putting the "can place on" component on bonemeal that comes out of a composter

Do I make a loot table for this or is it a recipe?

  "type": "minecraft:block",
  "pools": [
    {
      "bonus_rolls": 0,
      "entries": [
        {
          "type": "minecraft:item",
          "functions": [
            {
              "function": "minecraft:explosion_decay"
            }
          ],
          "name": "minecraft:composter"
        }
      ],
      "rolls": 1
    },
    {
      "bonus_rolls": 0,
      "conditions": [
        {
          "block": "minecraft:composter",
          "condition": "minecraft:block_state_property",
          "properties": {
            "level": "8"
          }
        }
      ],
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:bone_meal",
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:can_place_on": {
                  "predicates": [
                    {
                      "blocks": "#minecraft:crops"
                    }
                  ]
                }
              }
            }
          ]
        }
      ],
      "rolls": 1
    }
  ],
  "random_sequence": "minecraft:blocks/composter"
}```
Continue to help post