{
	"format_version": "1.10.0",
	"animation_controllers": {
		"controller.animation.dds_camping.atv_sound": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"ridden": "query.has_rider"
						}
					]
				},
				"ridden": {
					"transitions": [
						{
							"default": "!query.has_rider"
						},
						{
							"move": "query.ground_speed > 0"
						}
					],
					"on_entry": [
						"/playsound dds_camping.atv.start @a[r=30] ~ ~ ~ 1"
					]
				},
				"move": {
					"transitions": [
						{
							"moving": "query.ground_speed > 0"
						},
						{
							"stop": "query.ground_speed == 0"
						}
					]
				},
				"moving": {
					"transitions": [
						{
							"move": "(1.0)"
						}
					],
					"on_entry": [
						"/scoreboard players add @s dds_camping_atv 1",
						"/execute at @s[scores={dds_camping_atv=1}] run playsound dds_camping.atv.loop @a[r=30] ~ ~ ~ 1",
						"/scoreboard players set @s[scores={dds_camping_atv=20}] dds_camping_atv 0"
					]
				},
				"stop": {
					"on_entry": [
						"/stopsound @a[r=100] dds_camping.atv.loop",
						"/scoreboard players set @e[r=100,type=dds_camping:atv] dds_camping_atv 0"
					],
					"transitions": [
						{
							"default": "!query.has_rider"
						},
						{
							"moving": "query.ground_speed > 0"
						}
					]
				}
			}
		}
	}
}