{
  "parent": "sanguine:technical/root",
  "criteria": {
    "check": {
      "trigger": "minecraft:player_interacted_with_entity",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "equipment": {
                  "mainhand": {
                    "items": [
                      "minecraft:warped_fungus_on_a_stick"
                    ],
                    "nbt": "{sanguine:{id:\"blood_binding\"}}"
                  }
                }
              }
            }
          },
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "equipment": {
                  "mainhand": {
                    "items": [
                      "minecraft:gold_ingot"
                    ]
                  }
                }
              }
            }
          }
        ],
        "entity": {
          "nbt": "{Tags:[\"sanguine.effigy.blank\"]}"
        }
      }
    },
    "bind": {
      "trigger": "minecraft:player_interacted_with_entity",
      "conditions": {
        "item": {
          "items": [
            "minecraft:warped_fungus_on_a_stick"
          ],
          "nbt": "{sanguine:{id:\"blood_binding\"}}"
        },
        "entity": {
          "nbt": "{Tags:[\"sanguine.effigy.blank\"]}"
        }
      }
    },
    "gold": {
      "trigger": "minecraft:player_interacted_with_entity",
      "conditions": {
        "item": {
          "items": [
            "minecraft:gold_ingot"
          ]
        },
        "entity": {
          "nbt": "{Tags:[\"sanguine.effigy.blank\"]}"
        }
      }
    },
    "veins": {
      "trigger": "minecraft:player_interacted_with_entity",
      "conditions": {
        "item": {
          "items": [
            "minecraft:structure_block"
          ],
          "nbt": "{sanguine:{id:\"binding_veins\"}}"
        },
        "entity": {
          "nbt": "{Tags:[\"sanguine.effigy.gold\"]}"
        }
      }
    },
    "empty": {
      "trigger": "minecraft:player_interacted_with_entity",
      "conditions": {
        "entity": {
          "nbt": "{Tags:[\"sanguine.effigy.veins\"]}"
        }
      }
    }
  },
  "requirements": [
    [
      "bind",
      "gold",
      "veins",
      "empty",
      "check"
    ]
  ],
  "rewards": {
    "function": "sanguine:block/effigy/interact/raycast_start"
  }
}
