//bridge-file-version: #10
{
	"format_version": "1.17.0",
	"minecraft:entity": {
		"description": {
			"identifier": "nether:amber_fireball",
			"runtime_identifier": "minecraft:snowball",
			"is_summonable": true,
			"is_spawnable": false
		},
		"component_groups": {
			"minecraft:exploding": {
				"minecraft:explode": {
					"fuse_length": 0,
					"fuse_lit": true,
					"power": 1,
					"causes_fire": true,
					"fire_affected_by_griefing": true,
					"destroy_affected_by_griefing": true
				}
			}
		},
		"components": {
			"minecraft:collision_box": {
				"width": 0.31,
				"height": 0.31
			},
			"minecraft:projectile": {
				"on_hit": {
					"definition_event": {
						"affect_projectile": true,
						"event_trigger": {
							"event": "minecraft:explode",
							"target": "self"
						}
					},
					"particle_on_hit": {
						"particle_type": "nether:amber_particle",
						"num_particles": 20,
						"on_other_hit": true,
						"on_entity_hit": true
					}
				},
				"power": 1.6,
				"gravity": 0,
				"inertia": 1,
				"liquid_inertia": 1,
				"uncertainty_base": 0,
				"uncertainty_multiplier": 0,
				"anchor": 1,
				"offset": [
					0,
					-0.1,
					0
				],
				"reflect_on_hurt": true,
				"catch_fire": true
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:conditional_bandwidth_optimization": {
				"default_values": {
					"max_optimized_distance": 80,
					"max_dropped_ticks": 10,
					"use_motion_prediction_hints": true
				}
			}
		},
		"events": {
			"minecraft:explode": {
				"sequence": [
					{
						"add": {
							"component_groups": [
								"minecraft:exploding"
							]
						}
					},
					{
						"run_command": {
							"command": [
								"setblock ~ ~-1 ~ nether:amber_block"
							]
						}
					}
				]
			}
		}
	}
}