{
  "format_version": "1.21.0",
  "minecraft:entity": {
    "description": {
      "identifier": "lv_te:sara",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false,
      "properties": {
        "lv.te:cracking": {
          "client_sync": true,
          "default": 0,
          "range": [
            0,
            3
          ],
          "type": "int"
        }
      }
    },
    "component_groups": {
      "standing": {
        "minecraft:movement": {
          "value": 0.2
        },
        "minecraft:behavior.follow_owner": {
          "priority": 3,
          "speed_multiplier": 1.4,
          "start_distance": 6,
          "stop_distance": 2
        },
        "minecraft:variant": {
          "value": 0
        },
        "minecraft:interact": {
          "interactions": [
            {
              "on_interact": {
                "filters": [
                  {
                    "all_of": [
                      {
                        "test": "is_skin_id",
                        "value": 1
                      },
                      {
                        "test": "is_sneaking",
                        "subject": "other",
                        "value": true
                      }
                    ]
                  }
                ],
                "target": "self",
                "event": "lv_te:sit_down"
              }
            }
          ]
        }
      },
      "sitting": {
        "minecraft:movement": {
          "value": 0.0
        },
        "minecraft:variant": {
          "value": 1
        },
        "minecraft:interact": {
          "interactions": [
            {
              "on_interact": {
                "filters": [
                  {
                    "all_of": [
                      {
                        "test": "is_skin_id",
                        "value": 1
                      },
                      {
                        "test": "is_sneaking",
                        "subject": "other",
                        "value": true
                      }
                    ]
                  }
                ],
                "target": "self",
                "event": "lv_te:stand_up"
              }
            }
          ]
        }
      },
      "lv_te:despawn": {
        "minecraft:instant_despawn": {
          "remove_child_entities": false
        }
      },
      "wild": {
        "minecraft:skin_id": {
          "value": 0
        },
        "minecraft:tameable": {
          "probability": 1,
          "tame_items": [
            "minecraft:redstone"
          ],
          "tame_event": {
            "event": "lv_te:tame",
            "target": "self"
          }
        }
      },
      "is_tamed": {
        "minecraft:persistent": {},
        "minecraft:inventory": {
          "container_type": "minecart_chest",
          "inventory_size": 27,
          "restrict_to_owner": true
        },
        "minecraft:skin_id": {
          "value": 1
        },
        "minecraft:is_tamed": {}
      }
    },
    "components": {
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "filters": [
                {
                  "all_of": [
                    {
                      "test": "is_family",
                      "subject": "damager",
                      "value": "player"
                    }
                  ]
                }
              ],
              "target": "self",
              "event": "lv_te:cracking"
            },
            "deals_damage": false
          },
          {
            "cause": "all",
            "deals_damage": false
          }
        ]
      },
      "minecraft:leashable": {
        "soft_distance": 4.0,
        "hard_distance": 6.0,
        "max_distance": 10.0,
        "on_leash": {
          "event": "minecraft:on_leash",
          "target": "self"
        },
        "on_unleash": {
          "event": "minecraft:on_unleash",
          "target": "self"
        }
      },
      "minecraft:balloonable": {
        "mass": 0.8
      },
      "minecraft:is_hidden_when_invisible": {},
      "minecraft:nameable": {},
      "minecraft:type_family": {
        "family": [
          "lv.te.sara",
          "inanimate"
        ]
      },
      "minecraft:breathable": {
        "total_supply": 15,
        "suffocate_time": 0
      },
      "minecraft:collision_box": {
        "width": 0.5,
        "height": 0.5
      },
      "minecraft:health": {
        "value": 30,
        "max": 30
      },
      "minecraft:navigation.walk": {
        "can_path_over_water": false,
        "can_swim": false,
        "avoid_damage_blocks": true
      },
      "minecraft:movement.basic": {},
      "minecraft:jump.static": {},
      "minecraft:can_climb": {},
      "minecraft:behavior.float": {
        "priority": 7
      },
      "minecraft:behavior.stay_while_sitting": {
        "priority": 4
      },
      "minecraft:behavior.look_at_player": {
        "priority": 8,
        "target_distance": 6.0,
        "probability": 0.02
      },
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:conditional_bandwidth_optimization": {}
    },
    "events": {
      "minecraft:entity_spawned": {
        "add": {
          "component_groups": [
            "wild",
            "standing"
          ]
        }
      },
      "lv_te:remove_machine": {
        "add": {
          "component_groups": [
            "lv_te:despawn"
          ]
        }
      },
      "lv_te:reset_cracking": {
        "set_property": {
          "lv.te:cracking": 0
        }
      },
      "lv_te:tame": {
        "add": {
          "component_groups": [
            "is_tamed"
          ]
        },
        "remove": {
          "component_groups": [
            "wild"
          ]
        }
      },
      "lv_te:stand_up": {
        "add": {
          "component_groups": [
            "standing"
          ]
        },
        "remove": {
          "component_groups": [
            "sitting"
          ]
        }
      },
      "lv_te:sit_down": {
        "add": {
          "component_groups": [
            "sitting"
          ]
        },
        "remove": {
          "component_groups": [
            "standing"
          ]
        }
      },
      "lv_te:cracking": {
        "queue_command": {
          "command": "scriptevent lv.te:tech_mech.cracking"
        }
      },
      "reached_item": {
        "queue_command": {
          "command": "say item reached"
        }
      }
    }
  }
}