{
  "format_version": "1.13.0",
  "minecraft:entity": {
    "description": {
      "identifier": "furnicraft:npc_special",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "minecraft:s0": {
		"minecraft:interact": {
          "interactions": [
		    {
		      "on_interact": {
			    "filters": {
			        "all_of": [
				      { "test": "has_equipment", "domain": "hand", "subject": "other", "value": "furnicraft:toy_amarillo" },
                      { "test" :  "is_family", "subject" : "other", "value" :  "player"}
				    ]
			    },
			    "event": "minecraft:robert"
		      },
		      "use_item": false,
			  "play_sounds": "fizz",
			  "interact_text": "action.interact.rg69"
		    },
		    {
		      "on_interact": {
			    "filters": {
			        "all_of": [
				      { "test": "has_equipment", "domain": "hand", "subject": "other", "value": "furnicraft:toy_azul" },
                      { "test" :  "is_family", "subject" : "other", "value" :  "player"}
				    ]
			    },
			    "event": "minecraft:max"
		      },
		      "use_item": false,
			  "play_sounds": "fizz",
			  "interact_text": "action.interact.rg69"
		    },
		    {
		      "on_interact": {
			    "filters": {
			        "all_of": [
				      { "test": "has_equipment", "domain": "hand", "subject": "other", "value": "furnicraft:toy_azulclaro" },
                      { "test" :  "is_family", "subject" : "other", "value" :  "player"}
				    ]
			    },
			    "event": "minecraft:gregory"
		      },
		      "use_item": false,
			  "play_sounds": "fizz",
			  "interact_text": "action.interact.rg69"
		    },
		    {
		      "on_interact": {
			    "filters": {
			        "all_of": [
				      { "test": "has_equipment", "domain": "hand", "subject": "other", "value": "furnicraft:toy_blanco" },
                      { "test" :  "is_family", "subject" : "other", "value" :  "player"}
				    ]
			    },
			    "event": "minecraft:ponteiro"
		      },
		      "use_item": false,
			  "play_sounds": "fizz",
			  "interact_text": "action.interact.rg69"
		    },
		    {
		      "on_interact": {
			    "filters": {
			        "all_of": [
				      { "test": "has_equipment", "domain": "hand", "subject": "other", "value": "furnicraft:toy_cafe" },
                      { "test" :  "is_family", "subject" : "other", "value" :  "player"}
				    ]
			    },
			    "event": "minecraft:monsterdroid"
		      },
		      "use_item": false,
			  "play_sounds": "fizz",
			  "interact_text": "action.interact.rg69"
		    },
		    {
		      "on_interact": {
			    "filters": {
			        "all_of": [
				      { "test": "has_equipment", "domain": "hand", "subject": "other", "value": "furnicraft:toy_cyan" },
                      { "test" :  "is_family", "subject" : "other", "value" :  "player"}
				    ]
			    },
			    "event": "minecraft:loboxy"
		      },
		      "use_item": false,
			  "play_sounds": "fizz",
			  "interact_text": "action.interact.rg69"
		    },
		    {
		      "on_interact": {
			    "filters": {
			        "all_of": [
				      { "test": "has_equipment", "domain": "hand", "subject": "other", "value": "furnicraft:toy_gris" },
                      { "test" :  "is_family", "subject" : "other", "value" :  "player"}
				    ]
			    },
			    "event": "minecraft:lazza"
		      },
		      "use_item": false,
			  "play_sounds": "fizz",
			  "interact_text": "action.interact.rg69"
		    },
		    {
		      "on_interact": {
			    "filters": {
			        "all_of": [
				      { "test": "has_equipment", "domain": "hand", "subject": "other", "value": "furnicraft:toy_lima" },
                      { "test" :  "is_family", "subject" : "other", "value" :  "player"}
				    ]
			    },
			    "event": "minecraft:ares"
		      },
		      "use_item": false,
			  "play_sounds": "fizz",
			  "interact_text": "action.interact.rg69"
			}
          ]
        },		  		  
        "minecraft:variant": {
          "value": 0
        }
      },
      "minecraft:s1": {
        "minecraft:variant": {
          "value": 1
        }
      },
      "minecraft:s2": {
        "minecraft:variant": {
          "value": 2
        }
      },
      "minecraft:s3": {
        "minecraft:variant": {
          "value": 3
        }
      },
      "minecraft:s4": {
        "minecraft:variant": {
          "value": 4
        }
      },
      "minecraft:s5": {
        "minecraft:variant": {
          "value": 5
        }
      },
      "minecraft:s6": {
        "minecraft:variant": {
          "value": 6
        }
      },
      "minecraft:s7": {
        "minecraft:variant": {
          "value": 7
        }
      },
      "minecraft:s8": {
        "minecraft:spawn_entity": [
          {
            "min_wait_time": 0,
            "max_wait_time": 0,
            "spawn_entity": "minecraft:chicken1",
            "spawn_event": "minecraft:entity_spawned",
            "single_use": true,
            "num_to_spawn": 1,
            "should_leash": false
          }
        ],
        "minecraft:movement": {
          "value": 0.5,
          "max": 0.5
        },
        "minecraft:is_tamed": {
        },
        "minecraft:equippable": {
          "slots": [
            {
              "slot": 0,
              "item": "saddle",
              "accepted_items": ["furnicraft:lock"],
              "on_equip": {
                "event": "minecraft:follow_1"
              },
              "on_unequip": {
                "event": "minecraft:follow"
              }
            },
            {
              "slot": 1,
              "item": "furnicraft",
              "accepted_items": [
                "furnicraft:megumin_item",
                "furnicraft:dragon_wings_item",
                "furnicraft:allay_item",
                "furnicraft:cono_item",
                "furnicraft:guitarra_item",
                "furnicraft:miku_item",
                "furnicraft:headphones_item",
                "furnicraft:control_item",
                "furnicraft:sombrero_item",
                "furnicraft:sombrilla_item",
                "furnicraft:alien_item"
              ]
            }
          ]
        },
        "minecraft:inventory": {
          "inventory_size": 54,
          "container_type": "horse"
        },
        "minecraft:is_chested": {
        },			
        "minecraft:behavior.follow_owner": {
          "priority": 6,
          "speed_multiplier": 1.0,
          "start_distance": 10,
          "stop_distance": 2
        },
        "minecraft:attack": {
          "damage": 9
        },
        "minecraft:behavior.breed": {
          "priority": 7
        },
        "minecraft:behavior.owner_hurt_by_target": {
          "priority": 1
        },
        "minecraft:behavior.owner_hurt_target": {
          "priority": 2
        }
      },
      "minecraft:s9": {
        "minecraft:spawn_entity": [
          {
            "min_wait_time": 0,
            "max_wait_time": 0,
            "spawn_entity": "minecraft:pig1",
            "spawn_event": "minecraft:entity_spawned",
            "single_use": true,
            "num_to_spawn": 1,
            "should_leash": false
          }
        ],
        "minecraft:movement": {
          "value": 0.0,
          "max": 0.0
        },
        "minecraft:behavior.follow_owner": {
          "priority": 0,
          "speed_multiplier": 0.0,
          "start_distance": 256,
          "stop_distance": 256
        },
        "minecraft:equippable": {
          "slots": [
            {
              "slot": 0,
              "item": "saddle",
              "accepted_items": ["furnicraft:lock"],
              "on_equip": {
                "event": "minecraft:follow_1"
              },
              "on_unequip": {
                "event": "minecraft:follow"
              }
            },
            {
              "slot": 1,
              "item": "furnicraft",
              "accepted_items": [
                "furnicraft:megumin_item",
                "furnicraft:dragon_wings_item",
                "furnicraft:allay_item",
                "furnicraft:cono_item",
                "furnicraft:guitarra_item",
                "furnicraft:miku_item",
                "furnicraft:headphones_item",
                "furnicraft:control_item",
                "furnicraft:sombrero_item",
                "furnicraft:sombrilla_item",
                "furnicraft:alien_item"
              ]
            }
          ]
        },
        "minecraft:inventory": {
          "inventory_size": 54,
          "container_type": "horse"
        },
        "minecraft:is_chested": {
        },			
        "minecraft:attack": {
          "damage": 9
        }
      }
    },

    "components": {
      "minecraft:type_family": {
        "family": [ "furnicraft" ]
      },
      "minecraft:health": {
        "value": 40,
        "max": 40
      },
      "minecraft:attack": {
        "damage": 9
      },
      "minecraft:behavior.target_when_pushed": {
        "priority": 1,
        "percent_chance": 5.0,
        "entity_types": [
          {
            "filters": { 
              "all_of": [
                { "test" :  "is_family", "subject" : "other", "value" :  "monster" },
                { "test" :  "is_family", "subject" : "other", "operator": "!=", "value" :  "creeper" }
              ] 
            }
          }
        ]
      },
      "minecraft:behavior.melee_attack": {
        "priority": 1,
        "target_dist": 1.0,
        "track_target": true
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 3,
        "entity_types": [
          {
            "filters": { 
                "all_of": [
                  { "test" :  "is_family", "subject" : "other", "value" :  "monster"},
                  { "test" :  "is_family", "subject" : "other", "operator": "!=", "value" :  "creeper"}
                ] 
            },
            "within_default": 10
          }
        ],
        "must_see": true,
        "must_reach": true
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 2,
        "entity_types": {
          "filters": { "test": "is_family", "subject": "other", "operator": "!=", "value": "creeper" }
        }
      },
      "minecraft:tameable": {
        "probability": 1.0,
        "tame_items": "diamond",
        "tame_event": {
          "event": "minecraft:follow"
        }
      },
      "minecraft:navigation.walk": {
        "can_path_over_water": true,
        "can_pass_doors": true,
        "can_open_doors": true,
        "avoid_water": true
      },
      "minecraft:movement.basic": {
      },
      "minecraft:behavior.hide": {
        "priority": 0,
        "speed_multiplier": 0.8,
        "poi_type": "bed",
        "duration": 30.0
      },
      "minecraft:behavior.panic": {
        "priority": 1,
        "speed_multiplier": 0.6
      },
      "minecraft:jump.static": {
      },
      "minecraft:can_climb": {
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.move_indoors": {
        "priority": 4,
        "speed_multiplier": 0.8
      },
      "minecraft:behavior.restrict_open_door": {
        "priority": 5
      },
      "minecraft:behavior.open_door": {
        "priority": 6,
        "close_door_after": true
      },
      "minecraft:behavior.move_towards_restriction": {
        "priority": 7,
        "speed_multiplier": 0.6
      },
      "minecraft:behavior.random_stroll": {
        "priority": 11,
        "speed_multiplier": 0.6
      },
      "minecraft:behavior.look_at_player": {
        "priority": 12,
        "look_distance": 8,
        "probability": 0.02
      },
      "minecraft:movement": {
        "value": 0.5,
        "max": 0.5
      },
      "minecraft:healable": {
        "items": [
          {
            "item": "porkchop",
            "heal_amount": 3
          },
          {
            "item": "cooked_porkchop",
            "heal_amount": 8
          },
          {
            "item": "fish",
            "heal_amount": 2
          },
          {
            "item": "salmon",
            "heal_amount": 2
          },
          {
            "item": "clownfish",
            "heal_amount": 1
          },
          {
            "item": "pufferfish",
            "heal_amount": 1
          },
          {
            "item": "cooked_fish",
            "heal_amount": 5
          },
          {
            "item": "cooked_salmon",
            "heal_amount": 6
          },
          {
            "item": "beef",
            "heal_amount": 3
          },
          {
            "item": "cooked_beef",
            "heal_amount": 8
          },
          {
            "item": "chicken",
            "heal_amount": 2
          },
          {
            "item": "cooked_chicken",
            "heal_amount": 6
          },
          {
            "item": "muttonRaw",
            "heal_amount": 2
          },
          {
            "item": "muttonCooked",
            "heal_amount": 6
          },
          {
            "item": "rotten_flesh",
            "heal_amount": 4
          },
          {
            "item": "rabbit",
            "heal_amount": 3
          },
          {
            "item": "cooked_rabbit",
            "heal_amount": 5
          },
          {
            "item": "rabbit_stew",
            "heal_amount": 10
          }
        ]
      },
      "minecraft:behavior.trade_with_player": {
        "priority": 1
      },
      "minecraft:behavior.look_at_trading_player": {
        "priority": 2
      },
      "minecraft:push_through": {
      "value": 1
      },
      "minecraft:nameable": {
      },
      "minecraft:fall_damage": {
      "value": 0.0
      },
      "minecraft:scale": {
        "value": 0.95
      },
      "minecraft:loot": {
        "table": "loot_tables/empty.json"
      },
      "minecraft:collision_box": {
        "width": 0.6,
        "height": 1.8
      },
      "minecraft:physics": {
      }
    },
    "events": {
      "minecraft:robert": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:s0"
          ]
        }
      },
      "minecraft:max": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:s1"
          ]
        }
      },	
      "minecraft:gregory": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:s2"
          ]
        }
      },
      "minecraft:monsterdroid": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:s3"
          ]
        }
      },	
      "minecraft:ponteiro": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:s4"
          ]
        }
      },
      "minecraft:loboxy": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:s5"
          ]
        }
      },	
      "minecraft:lazza": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:s6"
          ]
        }
      },
      "minecraft:ares": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:s7"
          ]
        }
      },
      "minecraft:follow": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:s8"
          ]
        }
      },
      "minecraft:notfollow": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:s9"
          ]
        }
      },
      "minecraft:npc_chested": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:npc_chested"
          ]
        }
      },
      "minecraft:follow_1": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:s9"
          ]
        }
      },
      "minecraft:entity_spawnede": {
        "randomize": [
          {
            "weight": 6,
            "add": {
              "component_groups": [
                "minecraft:s0"
              ]
            }
          }
        ]
      },
      "minecraft:entity_spawned": {
        "randomize": [
          {
            "weight": 6,
            "add": {
              "component_groups": [
                "minecraft:s0"
              ]
            }
          },
          {
            "weight": 6,
            "add": {
              "component_groups": [
                "minecraft:s1"
              ]
            }
          },
          {
            "weight": 6,
            "add": {
              "component_groups": [
                "minecraft:s2"
              ]
            }
          },
          {
            "weight": 6,
            "add": {
              "component_groups": [
                "minecraft:s3"
              ]
            }
          },
          {
            "weight": 6,
            "add": {
              "component_groups": [
                "minecraft:s4"
              ]
            }
          },
          {
            "weight": 6,
            "add": {
              "component_groups": [
                "minecraft:s5"
              ]
            }
          },
          {
            "weight": 6,
            "add": {
              "component_groups": [
                "minecraft:s6"
              ]
            }
          },
          {
            "weight": 6,
            "add": {
              "component_groups": [
                "minecraft:s7"
              ]
            }
          }
        ]
      },
      "minecraft:0": {
        "add": {
          "component_groups": [
            "minecraft:s0"
          ]
        }
      }
    }
  }
}