{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "hoh_bht:sign",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,
      "animations": {
        "spawned": "animation.signpost_spawned"
      },
      "scripts": {
        "animate": ["spawned"]
      }
    },
    "component_groups": {
      "hoh_bht:used_first": {
        "minecraft:variant": {
          "value": 3
        }
      },
      "hoh_bht:used_second": {
        "minecraft:skin_id": {
          "value": 3
        }
      },
      "hoh_bht:used_third": {
        "minecraft:mark_variant": {
          "value": 3
        }
      },
      "hoh_bht:reset_first": {
        "minecraft:variant": {
          "value": 0
        }
      },
      "hoh_bht:reset_second": {
        "minecraft:skin_id": {
          "value": 0
        }
      },
      "hoh_bht:reset_third": {
        "minecraft:mark_variant": {
          "value": 0
        }
      },
      "hoh_bht_despawn": {
        "minecraft:despawn": {
          "filters": {
            "all_of": [
              {
                "test": "is_riding",
                "operator": "=",
                "value": false
              }
            ]
          }
        }
      }
    },
    "components": {
      "minecraft:rideable": {
        "seat_count": 3,
        "family_types": ["quest", "quest_giver"],
        "pull_in_entities": true,
        "seats": [
          { "position": [-0.0, 1.2, 0.5] },
          { "position": [0.7, 1.2, -0.5] },
          { "position": [-0.7, 1.2, -0.5] }
        ]
      },
      "minecraft:type_family": {
        "family": ["sign", "quest_giver", "inanimate"]
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {},
            "deals_damage": false
          }
        ]
      },
      "minecraft:movement": {
        "value": 0
      },
      "minecraft:despawn": {
        "despawn_from_distance": {},
        "despawn_from_simulation_edge": true
      },
      "minecraft:environment_sensor": {
        "triggers": [
          {
            "filters": {
              "test": "is_in_village",
              "subject": "self",
              "operator": "equals",
              "value": false
            },
            "event": "hoh_bht_despawn_event"
          },
          {
            "filters": {
              "test": "is_underwater",
              "subject": "self",
              "operator": "==",
              "value": true
            },
            "event": "hoh_bht_despawn_event"
          }
        ]
      },

      "minecraft:collision_box": {
        "width": 0.1,
        "height": 0.1
      },
      "minecraft:health": {
        "value": 20,
        "max": 20
      },
      "minecraft:pushable": {
        "is_pushable": false
      },
      "minecraft:physics": {
        "has_gravity": true,
        "has_collision": true
      }
    },
    "events": {
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "filters": {
              "test": "is_in_village",
              "subject": "player",
              "operator": "=",
              "value": true
            }
          }
        ]
      },
      "hoh_bht:quest_taken_1": {
        "remove": {
          "component_groups": ["hoh_bht:reset_first"]
        },
        "add": {
          "component_groups": ["hoh_bht:used_first"]
        }
      },
      "hoh_bht:quest_taken_2": {
        "remove": {
          "component_groups": ["hoh_bht:reset_second"]
        },
        "add": {
          "component_groups": ["hoh_bht:used_second"]
        }
      },
      "hoh_bht:quest_taken_3": {
        "remove": {
          "component_groups": ["hoh_bht:reset_third"]
        },
        "add": {
          "component_groups": ["hoh_bht:used_third"]
        }
      },
      "hoh_bht:quest_reset_1": {
        "remove": {
          "component_groups": ["hoh_bht:used_first"]
        },
        "add": {
          "component_groups": ["hoh_bht:reset_first"]
        }
      },
      "hoh_bht:quest_reset_2": {
        "remove": {
          "component_groups": ["hoh_bht:used_second"]
        },
        "add": {
          "component_groups": ["hoh_bht:reset_second"]
        }
      },
      "hoh_bht:quest_reset_3": {
        "remove": {
          "component_groups": ["hoh_bht:used_third"]
        },
        "add": {
          "component_groups": ["hoh_bht:reset_third"]
        }
      },
      "hoh_bht_despawn_event": {
        "add": {
          "component_groups": ["hoh_bht_despawn"]
        }
      }
    }
  }
}
