{
  "title": "Unlock",
  "$id": "blockception.minecraft.behavior.recipe.unlock",
  "description": "Unlock achievement",
  "definitions": {
    "item": {
      "oneOf": [
        {
          "required": ["item"],
          "properties": {
            "item": {
              "type": "string",
              "title": "Item",
              "examples": ["minecraft:stick"],
              "description": "The item to unlock"
            },
            "data": {
              "type": "integer",
              "title": "Data",
              "description": "The data of the item to unlock"
            }
          }
        },
        {
          "required": ["tag"],
          "properties": {
            "tag": {
              "type": "string",
              "title": "Item Tag",
              "description": "The item to unlock",
              "examples": ["minecraft:planks", "minecraft:wooden_slabs"]
            }
          }
        }
      ]
    }
  },
  "oneOf": [
    {
      "type": "object",
      "required": ["context"],
      "properties": {
        "context": {
          "type": "string",
          "title": "Context",
          "description": "The context of the achievement to unlock"
        }
      }
    },
    {
      "type": "array",
      "items": {
        "$ref": "#/definitions/item"
      }
    }
  ]
}