[
  {
    "condition": "minecraft:inverted",
    "term": {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "equipment": {
          "mainhand": {
            "items": [
              "minecraft:carrot_on_a_stick",
              "minecraft:warped_fungus_on_a_stick"
            ]
          }
        }
      }
    }
  },
  {
    "condition": "minecraft:entity_properties",
    "entity": "this",
    "predicate": {
      "equipment": {
        "offhand": {
          "items": [
            "minecraft:carrot_on_a_stick",
            "minecraft:warped_fungus_on_a_stick"
          ]
        }
      }
    }
  }
]
