{
  "criteria": {
    "chiseled_bookshelf": {
      "conditions": {
        "location": [
          {
            "block": "minecraft:chiseled_bookshelf",
            "condition": "minecraft:block_state_property"
          },
          {
            "condition": "minecraft:any_of",
            "terms": [
              {
                "condition": "minecraft:location_check",
                "offsetZ": 1,
                "predicate": {
                  "block": {
                    "blocks": "minecraft:comparator",
                    "state": {
                      "facing": "north"
                    }
                  }
                }
              },
              {
                "condition": "minecraft:location_check",
                "offsetZ": -1,
                "predicate": {
                  "block": {
                    "blocks": "minecraft:comparator",
                    "state": {
                      "facing": "south"
                    }
                  }
                }
              },
              {
                "condition": "minecraft:location_check",
                "offsetX": 1,
                "predicate": {
                  "block": {
                    "blocks": "minecraft:comparator",
                    "state": {
                      "facing": "west"
                    }
                  }
                }
              },
              {
                "condition": "minecraft:location_check",
                "offsetX": -1,
                "predicate": {
                  "block": {
                    "blocks": "minecraft:comparator",
                    "state": {
                      "facing": "east"
                    }
                  }
                }
              }
            ]
          }
        ]
      },
      "trigger": "minecraft:placed_block"
    },
    "comparator": {
      "conditions": {
        "location": [
          {
            "condition": "minecraft:any_of",
            "terms": [
              {
                "condition": "minecraft:all_of",
                "terms": [
                  {
                    "block": "minecraft:comparator",
                    "condition": "minecraft:block_state_property",
                    "properties": {
                      "facing": "north"
                    }
                  },
                  {
                    "condition": "minecraft:location_check",
                    "offsetZ": -1,
                    "predicate": {
                      "block": {
                        "blocks": "minecraft:chiseled_bookshelf"
                      }
                    }
                  }
                ]
              },
              {
                "condition": "minecraft:all_of",
                "terms": [
                  {
                    "block": "minecraft:comparator",
                    "condition": "minecraft:block_state_property",
                    "properties": {
                      "facing": "south"
                    }
                  },
                  {
                    "condition": "minecraft:location_check",
                    "offsetZ": 1,
                    "predicate": {
                      "block": {
                        "blocks": "minecraft:chiseled_bookshelf"
                      }
                    }
                  }
                ]
              },
              {
                "condition": "minecraft:all_of",
                "terms": [
                  {
                    "block": "minecraft:comparator",
                    "condition": "minecraft:block_state_property",
                    "properties": {
                      "facing": "west"
                    }
                  },
                  {
                    "condition": "minecraft:location_check",
                    "offsetX": -1,
                    "predicate": {
                      "block": {
                        "blocks": "minecraft:chiseled_bookshelf"
                      }
                    }
                  }
                ]
              },
              {
                "condition": "minecraft:all_of",
                "terms": [
                  {
                    "block": "minecraft:comparator",
                    "condition": "minecraft:block_state_property",
                    "properties": {
                      "facing": "east"
                    }
                  },
                  {
                    "condition": "minecraft:location_check",
                    "offsetX": 1,
                    "predicate": {
                      "block": {
                        "blocks": "minecraft:chiseled_bookshelf"
                      }
                    }
                  }
                ]
              }
            ]
          }
        ]
      },
      "trigger": "minecraft:placed_block"
    }
  },
  "requirements": [
    [
      "chiseled_bookshelf",
      "comparator"
    ]
  ],
  "rewards": {
    "function": "koncept.bingo:bingo/dynamic_advancement/read_power_of_chiseled_bookshelf"
  },
  "sends_telemetry_event": true
}