"scripts": {
    "animate": [
        "jumpscare"
    ]
},
"animations": {
    "switch": "controller.animation.jumpscare"
},
"component_groups": {
    "minecraft:is_dead": {
        "minecraft:transformation": {
            "into": "newmob:freddy_d"
        }
    },
    "minecraft:is_attacking": {
        "minecraft:attack": {
            "damage": 10
        }
    }
}

{
    "format_version": "1.10.0",
    "animation_controllers": {
      "controller.animation.freddy_jumpscare": {
        "initial_states": {
            "transitions": [
                {
                    "freddy_jumpscare": "query.is_attacking"
                }
              ]
          },
          "freddy_jumpscare": {
              "transitions": [
                  {
                      "default": "1.0"
                  }
              ],
              "on_entry": [
                  "@s minecraft:is_attacking",
                  "/tp @p ~ ~ 1~ facing @e[type=newmob:freddy]"
                ]
            }                
        }                
    }      
}                

			"minecraft:environment_sensor": {
				"triggers": {
					"filters": {
						"test": "clock_time",
						"subject": "self",
						"operator": "equals",
						"any_of": "moon_intensity",
						"value": 0.9
					}
				}
			},
    "controller.animation.witheredbonnie.agachado": {
      "states": {
          "default": {
              "transitions": [
                  {
                    "agachado1": "q.relative_block_has_any_tag(0,3,0,'grass','wood','pumpkin', 'plant','metal', 'stone', 'diamond_pick_diggable', 'gold_pick_diggable','iron_pick_diggable', 'dirt', 'sand','gravel', 'grass', 'snow')"
                  },
                  {
                    "agachado2": "q.relative_block_has_any_tag(0,2,0,'grass','wood','pumpkin', 'plant','metal', 'stone', 'diamond_pick_diggable', 'gold_pick_diggable','iron_pick_diggable', 'dirt', 'sand','gravel', 'grass', 'snow')"
                  }
              ],
              "blend_transition": 0.3
          },
          "agachado1": {
              "transitions": [
                  {
                      "default": "!q.relative_block_has_any_tag(0,3,0,'grass','wood','pumpkin', 'plant','metal', 'stone', 'diamond_pick_diggable', 'gold_pick_diggable','iron_pick_diggable', 'dirt', 'sand','gravel', 'grass', 'snow')"
                  }
              ],
              "animations": [
                 "agachado1"
              ],
              "blend_transition": 0.3
          },
          "agachado2": {
            "transitions": [
                {
                    "default": "!q.relative_block_has_any_tag(0,2,0,'grass','wood','pumpkin', 'plant','metal', 'stone', 'diamond_pick_diggable', 'gold_pick_diggable','iron_pick_diggable', 'dirt', 'sand','gravel', 'grass', 'snow')"
                }
            ],
            "animations": [
               "agachado2"
            ],
            "blend_transition": 0.3
        }
      }
    },


    "/tp @p @e[r=50,c=1,type=dfat:blob]"

    "query.get_nearby_entities"


query.camera_distance_range_lerp

"janitorbot.warn1": {
    "animations": [
        {
            "janitorbot.warn1": "query.mark_variant == 0"
        }
    ],
    "transitions": [
        {
            "default": "query.ground_speed"
        },
        {
            "janitorbot.warn2": "query.mark_variant == 1"
        }
    ],
    "blend_transition": 0.5
},
"janitorbot.warn2": {
    "animations": [
        {
            "janitorbot.warn2": "query.mark_variant == 0"
        }
    ],
    "transitions": [
        {
            "default": "query.ground_speed"
        },
        {
            "janitorbot.call": "query.mark_variant == 1"
        }
    ],
    "blend_transition": 0.5
},
"janitorbot.call": {
    "animations": [
        {
            "janitorbot.call": "query.mark_variant == 0"
        }
    ],
    "transitions": [
        {
            "default": "query.ground_speed"
        }
    ],
    "blend_transition": 0.5



]
},
				"mapbot.trade": {
					"on_entry": [
						"/scoreboard players add @s mapbot 3"            
					 ],					
					"transitions": [
						{ "default": "(query.count(query.get_nearby_entities_except_self(2, 'minecraft:player')) == 0) && query.mark_variant == 0" }

					]
				},
				"trade": {
					"on_entry": [
						"@s at:trade"           
					 ],					
					"transitions": [
						{ "default": "(q.scoreboard('mapbot') != 3)" }


		"controller.animation.mapbot.jumpscare": {
            "initial_state": "default",
            "states": {
                "default": {
                    "transitions": [
                        { "mapbot.jumpscare": "((query.count(query.get_nearby_entities_except_self(2, 'minecraft:player')) != 0) && q.target -> q.is_riding == 0 && query.variant == 0) || ((query.count(query.get_nearby_entities_except_self(2, 'minecraft:villager_v2')) != 0) && q.target -> q.is_riding == 0 && query.variant == 0)" },
                        { "trade": "(q.scoreboard('mapbot') == 3)" }                
                    ]
                },
                "mapbot.jumpscare": {
                    "animations": [
                        "df.mapbot.jumpscare"
                     ], 
					 "on_entry": [
						"@s df:mapbot.jumpscare"						            
					 ],					                    
                    "transitions": [
                        { "default": "query.all_animations_finished" }
					]
				}												
			}
		},