{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:item_used_on_block",
      "conditions": {
        "location": [
          {
            "condition": "minecraft:location_check",
            "predicate": {
              "block": {
                "blocks": [
                  "minecraft:chiseled_bookshelf"
                ]
              }
            }
          },
          {
            "condition": "minecraft:match_tool",
            "predicate": {
              "items": [
                "minecraft:knowledge_book"
              ]
            }
          }
        ]
      }
    }
  },
  "rewards": {
    "function": "survivalplus:tools/tomes/fixshelftome"
  }
}
