{
	"format_version": "1.19.50",
	"minecraft:entity": {
		"description": {
			"identifier": "dds_camping:atv",
			"is_summonable": true,
			"is_spawnable": true,
			"is_experimental": false,
			"scripts": {
				"animate": [
					"controller.add_movement",
					"controller.increase_speed",
					"sound_controller"
				]
			},
			"animations": {
				"controller.add_movement": "controller.animation.dds_camping.add_movement",
				"increase_speed": "animation.dds_camping.car_generic.increase_speed",
				"sound_controller": "controller.animation.dds_camping.atv_sound",
				"controller.increase_speed": "controller.animation.dds_camping.increase_speed"
			},
			"properties": {
				"dds_camping:base_color": {
					"type": "int",
					"range": [
						0,
						15
					],
					"default": 0,
					"client_sync": true
				}
			}
		},
		"component_groups": {
			"dds_camping:base_color_0": {
				"minecraft:color": {
					"value": 0
				}
			},
			"dds_camping:base_color_1": {
				"minecraft:color": {
					"value": 1
				}
			},
			"dds_camping:base_color_2": {
				"minecraft:color": {
					"value": 2
				}
			},
			"dds_camping:base_color_3": {
				"minecraft:color": {
					"value": 3
				}
			},
			"dds_camping:base_color_4": {
				"minecraft:color": {
					"value": 4
				}
			},
			"dds_camping:base_color_5": {
				"minecraft:color": {
					"value": 5
				}
			},
			"dds_camping:base_color_6": {
				"minecraft:color": {
					"value": 6
				}
			},
			"dds_camping:base_color_7": {
				"minecraft:color": {
					"value": 7
				}
			},
			"dds_camping:base_color_8": {
				"minecraft:color": {
					"value": 8
				}
			},
			"dds_camping:base_color_9": {
				"minecraft:color": {
					"value": 9
				}
			},
			"dds_camping:base_color_10": {
				"minecraft:color": {
					"value": 10
				}
			},
			"dds_camping:base_color_11": {
				"minecraft:color": {
					"value": 11
				}
			},
			"dds_camping:base_color_12": {
				"minecraft:color": {
					"value": 12
				}
			},
			"dds_camping:base_color_13": {
				"minecraft:color": {
					"value": 13
				}
			},
			"dds_camping:base_color_14": {
				"minecraft:color": {
					"value": 14
				}
			},
			"dds_camping:base_color_15": {
				"minecraft:color": {
					"value": 15
				}
			},
			"despawn_timer":{
				"minecraft:transformation": {
					"drop_equipment": false,
					"drop_inventory": true,
					"into": "dds_camping:atv<dds_camping:be_dead>"
				}
			},
			"be_dead_quick": {
				"minecraft:spawn_entity": {
				"entities": [
						{
							"single_use": true,
							"min_wait_time": 0,
							"max_wait_time": 0,
							"spawn_item": "dds_camping:atv_spawn_egg"
						}
					]
				},
				"minecraft:instant_despawn": {}
			},
			"dds_camping:speed_normal": {
				"minecraft:movement": {
					"value": 0
				}
			},
			"dds_camping:speed_1": {
				"minecraft:movement": {
					"value": 0.18
				}
			},
			"dds_camping:speed_2": {
				"minecraft:movement": {
					"value": 0.2
				}
			},
			"dds_camping:speed_3": {
				"minecraft:movement": {
					"value": 0.25
				}
			},
			"dds_camping:speed_4": {
				"minecraft:movement": {
					"value": 0.3
				}
			},
			"dds_camping:speed_5": {
				"minecraft:movement": {
					"value": 0.35
				}
			},
			"dds_camping:speed_6": {
				"minecraft:movement": {
					"value": 0.4
				}
			},
			"dds_camping:speed_7": {
				"minecraft:movement": {
					"value": 0.45
				}
			},
			"dds_camping:speed_8": {
				"minecraft:movement": {
					"value": 0.5
				}
			},
			"dds_camping:speed_9": {
				"minecraft:movement": {
					"value": 0.7
				}
			}
		},
		"components": {
			"minecraft:color": {
				"value": 0
			},
			"minecraft:is_dyeable": {
				"interact_text": "action.interact.dye"
			},
			"minecraft:variable_max_auto_step": {
				"base_value": 1.0625,
				"controlled_value": 1.0625,
				"jump_prevented_value": 0.5625
			},
			"minecraft:inventory": {
				"additional_slots_per_strength": 0,
				"can_be_siphoned_from": false,
				"container_type": "minecart_hopper",
				"inventory_size": 5,
				"private": false,
				"restrict_to_owner": false
			},
			"minecraft:navigation.generic": {
				"avoid_damage_blocks": true,
				"can_pass_doors": false,
				"can_jump": true
			},
			"minecraft:health": {
				"min": 1,
				"max": 1
			},
			"minecraft:rideable": {
				"seat_count": 2,
				"family_types": [
					"player"
				],
				"controlling_seat": 0,
				"interact_text": "action.interact.ride.horse",
				"rider_can_interact": true,
				"seats": [
					{
						"position": [
							0,
							1,
							-0.3
						],
						"min_rider_count": 1,
						"max_rider_count": 2
					},
					{
						"position": [
							0,
							1.1,
							-0.9
						],
						"min_rider_count": 2,
						"max_rider_count": 2
					}
				]
			},
			"minecraft:input_ground_controlled": {},
			"minecraft:can_power_jump": {},
			"minecraft:horse.jump_strength": {
				"value": 0.85
			},
			"minecraft:scale": {
				"value": 1
			},
			"minecraft:interact": {
                "interactions": [
                    {
                        "on_interact": {
                            "filters": [
                                {
                                    "all_of": [
                                        {
                                            "test": "is_sneaking",
                                            "subject": "other",
                                            "value": true
                                        },
										{
											"test": "rider_count",
											"value": 0,
											"subject": "self"
										}
                                    ]
                                }
                            ],
                            "event": "dds_camping:despawn_timer"
                        },
                        "cooldown": 0.6,
                        "use_item": false,
                        "interact_text": "action.interact.structure_demolish"
                    }
                ]
            },
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"cause": "void",
						"deals_damage": true
					},
					{
						"cause": "entity_explosion",
						"deals_damage": false
					},
					{
						"deals_damage": false
					}
				]
			},
			"minecraft:persistent": {},
			"minecraft:breathable": {
				"breathes_solids": true,
				"breathes_water": true,
				"breathes_lava": true
			},
			"minecraft:fire_immune": {},
			"minecraft:knockback_resistance": {
				"value": 1
			},
			"minecraft:physics": {
				"has_gravity": true
			},
			"minecraft:collision_box": {
				"width": 1.52,
				"height": 2.4
			},
			"minecraft:type_family": {
				"family": [
					"car"
				]
			},
			"minecraft:movement": {
				"value": 0.18
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:on_death": "dds_camping:despawn_timer"
		},
		"events": {
			"dds_camping:be_dead": {
				"add": {
					"component_groups": [
						"be_dead_quick"
					]
				}
			},
			"dds_camping:despawn_timer": {
				"add": {
					"component_groups": [
						"despawn_timer"
					]
				}
			},
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"dds_camping:base_color_0"
					]
				}
			},
			"dds_camping:base_color_event": {
				"sequence": [
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 0
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_15"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_0"
							]
						},
						"set_property": {
							"dds_camping:base_color": 1
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 1
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_0"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_1"
							]
						},
						"set_property": {
							"dds_camping:base_color": 2
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 2
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_1"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_2"
							]
						},
						"set_property": {
							"dds_camping:base_color": 3
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 3
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_2"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_3"
							]
						},
						"set_property": {
							"dds_camping:base_color": 4
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 4
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_3"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_4"
							]
						},
						"set_property": {
							"dds_camping:base_color": 5
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 5
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_4"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_5"
							]
						},
						"set_property": {
							"dds_camping:base_color": 6
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 6
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_5"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_6"
							]
						},
						"set_property": {
							"dds_camping:base_color": 7
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 7
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_6"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_7"
							]
						},
						"set_property": {
							"dds_camping:base_color": 8
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 8
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_7"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_8"
							]
						},
						"set_property": {
							"dds_camping:base_color": 9
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 9
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_8"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_9"
							]
						},
						"set_property": {
							"dds_camping:base_color": 10
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 10
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_9"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_10"
							]
						},
						"set_property": {
							"dds_camping:base_color": 11
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 11
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_10"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_11"
							]
						},
						"set_property": {
							"dds_camping:base_color": 12
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 12
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_11"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_12"
							]
						},
						"set_property": {
							"dds_camping:base_color": 13
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 13
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_12"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_13"
							]
						},
						"set_property": {
							"dds_camping:base_color": 14
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 14
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_13"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_14"
							]
						},
						"set_property": {
							"dds_camping:base_color": 15
						}
					},
					{
						"filters": {
							"test": "int_property",
							"domain": "dds_camping:base_color",
							"value": 15
						},
						"remove": {
							"component_groups": [
								"dds_camping:base_color_14"
							]
						},
						"add": {
							"component_groups": [
								"dds_camping:base_color_15"
							]
						},
						"set_property": {
							"dds_camping:base_color": 0
						}
					}
				]
			},
			"dds_camping:event_speed_1": {
				"add": {
					"component_groups": [
						"dds_camping:speed_1"
					]
				}
			},
			"dds_camping:event_speed_2": {
				"remove": {
					"component_groups": [
						"dds_camping:speed_1"
					]
				},
				"add": {
					"component_groups": [
						"dds_camping:speed_2"
					]
				}
			},
			"dds_camping:event_speed_3": {
				"add": {
					"component_groups": [
						"dds_camping:speed_3"
					]
				},
				"remove": {
					"component_groups": [
						"dds_camping:speed_2"
					]
				}
			},
			"dds_camping:event_speed_4": {
				"add": {
					"component_groups": [
						"dds_camping:speed_4"
					]
				},
				"remove": {
					"component_groups": [
						"dds_camping:speed_3"
					]
				}
			},
			"dds_camping:event_speed_5": {
				"add": {
					"component_groups": [
						"dds_camping:speed_5"
					]
				},
				"remove": {
					"component_groups": [
						"dds_camping:speed_4"
					]
				}
			},
			"dds_camping:event_speed_6": {
				"add": {
					"component_groups": [
						"dds_camping:speed_6"
					]
				},
				"remove": {
					"component_groups": [
						"dds_camping:speed_5"
					]
				}
			},
			"dds_camping:event_speed_7": {
				"add": {
					"component_groups": [
						"dds_camping:speed_7"
					]
				},
				"remove": {
					"component_groups": [
						"dds_camping:speed_6"
					]
				}
			},
			"dds_camping:event_speed_8": {
				"add": {
					"component_groups": [
						"dds_camping:speed_8"
					]
				},
				"remove": {
					"component_groups": [
						"dds_camping:speed_7"
					]
				}
			},
			"dds_camping:event_speed_9": {
				"add": {
					"component_groups": [
						"dds_camping:speed_9"
					]
				},
				"remove": {
					"component_groups": [
						"dds_camping:speed_8"
					]
				}
			},
			"dds_camping:event_speed_stop": {
				"add": {
					"component_groups": [
						"dds_camping:speed_normal"
					]
				},
				"remove": {
					"component_groups": [
						"dds_camping:speed_1",
						"dds_camping:speed_2",
						"dds_camping:speed_3",
						"dds_camping:speed_4",
						"dds_camping:speed_5",
						"dds_camping:speed_6",
						"dds_camping:speed_7",
						"dds_camping:speed_8",
						"dds_camping:speed_9"
					]
				}
			}
		}
	}
}