{
  "format_version": "1.12.0",
  "minecraft:entity": {
    "description": {
      "identifier": "mutant:thrown_chemical_x",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,
	  "runtime_identifier": "minecraft:snowball",
	  "scripts": { "animate": [ "chemical_x_function" ] },
	  "animations": { "chemical_x_function": "controller.animation.chemical_x_function_function" }
    },
	
	"component_groups": {
	  "minecraft:despawn": {
		"minecraft:despawn": {
		  }
	  },
	  
	  "minecraft:explode": {
		"minecraft:despawn": {
		},
	    "minecraft:skin_id": { "value": 1 }
	  }
	},
	
    "components": {
		"minecraft:type_family": {
			"family": [ "chemical_x" ]
		  },
		"minecraft:scale": {
			"value": 0.5
		  },
	 
      "minecraft:collision_box": {
        "width": 0.45,
        "height": 0.45
      },
	  "minecraft:timer": {
	    "looping": false,
		"randomInterval": false,
		"time": 30.0,
		"time_down_event": {
		  "event": "minecraft:event_despawn"
		}
	  },
      "minecraft:projectile": {
        "on_hit": {
			"douse_fire": { },
			"thrown_potion_effect": { },
          "impact_damage": {
            "damage": 1,
            "knockback": true,
            "semirandomdiffdamage": false
		  },
		
		  "spawn_chance": {
            "first_spawn_chance": 1,
            "second_spawn_chance": 1,
            "first_spawn_count": 1,
            "second_spawn_count": 1,
            "spawn_definition": "mutant:chemical_x_impact",
            "spawn_baby": false
		  },
		  
          "definition_event": {
            "affectProjectile": true,
            "eventTrigger": {
			  "event": "minecraft:event_explode",
			  "target": "self"
			}
          }
        },
        "power": 0.6,
        "gravity": 0.05,
        "angle_offset": -20.0,
		"inertia": 1,
		"offset": [ 0.0, 0.1, 0.0 ],
        "liquid_inertia": 0.5
	  },
	  "minecraft:conditional_bandwidth_optimization": {
        "default_values": {
          "max_optimized_distance": 100.0,
          "max_dropped_ticks": 5,
          "use_motion_prediction_hints": true
        }
	  },
	  "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:physics": {}
    },
	
	"events": {
	  "minecraft:event_despawn": {
	    "add": { "component_groups": [ "minecraft:despawn" ] }
	  },
	  "minecraft:event_explode": {
	    "add": { "component_groups": [ "minecraft:explode" ] }
	  }
	}
  }
}