{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "numberblocks:seven_times_table",
      "spawn_category": "creature",
      "is_spawnable": true,
      "is_summonable": true,
      "properties": {
        "minecraft:nature_spawn": {
          "type": "bool", 
          "default": false,
          "client_sync": true
        }
      }
    },
    
    "component_groups": {
      "nature_spawn": {
        "minecraft:loot": {
          "table": "loot_tables/entities/numberblocks/times_tables/seven_times_table.json"
        }
      },
      "isnot_riding": {
        "minecraft:rideable": {
          "seat_count": 1,
          "family_types": [
            "seven"
          ],
          "dismount_mode": "on_top_center",
          "interact_text": "action.interact.ride.horse",
          "seats": {
            "position": [
              0,
              1.5,
              0
            ]
          }
        },
        "minecraft:collision_box": {
          "width": 0.8,
          "height": 1.5
        }
      },
      "is_riding": {
        "minecraft:rideable": {
          "seat_count": 1,
          "family_types": [
            "seven"
          ],
          "dismount_mode": "on_top_center",
          "interact_text": "action.interact.ride.horse",
          "seats": {
            "position": [
              0,
              0.78125,
              0
            ]
          }
        },
        "minecraft:collision_box": {
          "width": 0.8,
          "height": 0.78125
        }
      }
    },
    "components": {
      "minecraft:is_hidden_when_invisible": {
      },

      "minecraft:type_family": {
        "family": [
          "seven_times_table",
          "times_table",
          "numberblocks",
          "mob",
          "lightweight",
          "male"
        ]
      },
      "minecraft:breathable": {
        "total_supply": 15,
        "suffocate_time": 0
      },
      "minecraft:nameable": {
      },
      "minecraft:health": {
        "value": 20,
        "max": 20
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
            "cause": "lava",
            "damage_per_tick": 4
          }
        ]
      },
      "minecraft:movement": {
        "value": 0.25
      },
      "minecraft:navigation.fly": {
        "can_path_over_water": true,
        "can_path_from_air": true
      },
      "minecraft:movement.fly": {
      },
      "minecraft:jump.static": {
      },
      "minecraft:can_climb": {
      },
      "minecraft:collision_box": {
        "width": 0.8,
        "height": 1.5
      },
      "minecraft:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:leashable_to": {
      },
      "minecraft:damage_sensor": {
        "triggers": {
          "cause": "fall",
          "deals_damage": false
        }
      },
      "minecraft:can_fly": {
      },
      "minecraft:rideable": {
        "seat_count": 1,
        "family_types": [
          "seven"
        ],
        "dismount_mode": "on_top_center",
        "interact_text": "action.interact.ride.horse",
        "seats": {
          "position": [
            0,
            1.5,
            0
          ]
        }
      },
      "minecraft:input_air_controlled": {
        "strafe_speed_modifier": 1.0,
        "backwards_movement_modifier": 1.0
      },
      "minecraft:behavior.player_ride_tamed": {
      },
      "minecraft:is_tamed": {
      },
      "minecraft:is_collidable": {
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.random_hover": {
        "priority": 1,
        "xz_dist": 8,
        "y_dist": 8,
        "y_offset": -1,
        "interval": 120,
        "hover_height": [
          1,
          4
        ]
      },
      "minecraft:behavior.look_at_player": {
        "priority": 2,
        "look_distance": 6.0,
        "probability": 0.02
      },
      "minecraft:behavior.random_look_around": {
        "priority": 3
      },
	  "minecraft:physics": {
        "has_gravity": false
      },
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:conditional_bandwidth_optimization": {
      },
      "minecraft:environment_sensor": {
        "triggers": [
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_riding", "subject": "self"
                }
              ]
            },
            "event": "minecraft:is_riding"
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_riding", "subject": "self", "operator": "!="
                }
              ]
            },
            "event": "minecraft:isnot_riding"
          }
        ]
      }
    },
    "events": {
      "minecraft:nature_spawn": {
        "set_property": {
          "minecraft:nature_spawn": true
        },
        "add": {
          "component_groups": [
            "nature_spawn"
          ]
        }
      },
      "minecraft:is_riding": {
        "add": {
          "component_groups": [
            "is_riding"
          ]
        }
      },
      "minecraft:isnot_riding": {
        "add": {
          "component_groups": [
            "isnot_riding"
          ]
        }
      }
    }
  }
}
