{
  "criteria": {
    "use_trigger": {
      "conditions": {
        "player": [
          {
            "condition": "minecraft:entity_scores",
            "entity": "this",
            "scores": {
              "pipes.right_click": {
                "min": 1
              }
            }
          }
        ]
      },
      "trigger": "minecraft:tick"
    }
  },
  "rewards": {
    "function": "pipes:"
  }
}