{
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:chiseled_nether_bricks",
          "functions": [
            {
              "function": "minecraft:set_name",
              "entity": "this",
              "name": {
                "text": "Red Key",
                "color": "red",
                "italic": false
              },
              "target": "item_name"
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:can_place_on": {
                  "blocks": "minecraft:red_terracotta"
                }
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:chiseled_nether_bricks",
          "functions": [
            {
              "function": "minecraft:set_name",
              "entity": "this",
              "name": {
                "text": "Blue Key",
                "color": "blue",
                "italic": false
              },
              "target": "item_name"
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:can_place_on": {
                  "blocks": "minecraft:light_blue_terracotta"
                }
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:chiseled_nether_bricks",
          "functions": [
            {
              "function": "minecraft:set_name",
              "entity": "this",
              "name": {
                "text": "Green Key",
                "color": "green",
                "italic": false
              },
              "target": "item_name"
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:can_place_on": {
                  "blocks": "minecraft:lime_terracotta"
                }
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:chiseled_nether_bricks",
          "functions": [
            {
              "function": "minecraft:set_name",
              "entity": "this",
              "name": {
                "text": "Yellow Key",
                "color": "#ffcc00",
                "italic": false
              },
              "target": "item_name"
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:can_place_on": {
                  "blocks": "minecraft:yellow_terracotta"
                }
              }
            }
          ]
        }
      ]
    }
  ]
}