{
	"format_version": "1.19.40",
	"minecraft:block": {
		"description": {
			"identifier": "bridge:tornado_siren_block",
			"menu_category": {
				"category": "equipment",
				"is_hidden_in_commands": true
			}
		},
		"components": {
			"tag:agp_diggable": {},
			"tag:metal": {},
			"minecraft:geometry": "geometry.decoy_block",
			"minecraft:light_dampening": 15,
			"minecraft:material_instances": {
				"*": {
					"texture": "tornado_siren_block",
					"ambient_occlusion": false,
					"render_method": "alpha_test"
				}
			},
			"minecraft:loot": "loot_tables/empty.json",
			"minecraft:destructible_by_mining": {
				"seconds_to_destroy": 1
			},
			"minecraft:on_placed": {
				"event": "ActivateSiren"
			},
			"minecraft:on_player_destroyed": {
				"event": "SirenLoot"
			}
		},
		"events": {
			"ActivateSiren": {
				"run_command": {
					"command": [
						"summon agp:decoy_siren ~~-0.15~~~ minecraft:entity_spawned NoUser"
					]
				}
			},
			"DamageSiren": {
				"spawn_loot": {
					"table": "loot_tables/damaged_tornado_siren_block.json"
				}
			},
			"DropSiren": {
				"spawn_loot": {
					"table": "loot_tables/tornado_siren_block.json"
				}
			},
			"SirenLoot": {
				"sequence": [
					{
						"condition": "query.get_equipped_item_name=='wooden_pickaxe'||query.get_equipped_item_name=='stone_pickaxe'||query.get_equipped_item_name=='iron_pickaxe'||query.get_equipped_item_name=='diamond_pickaxe'||query.get_equipped_item_name=='netherite_pickaxe'",
						"spawn_loot": {
							"table": "loot_tables/tornado_siren_block.json"
						}
					},
					{
						"condition": "query.get_equipped_item_name!='wooden_pickaxe'&&query.get_equipped_item_name!='stone_pickaxe'&&query.get_equipped_item_name!='iron_pickaxe'&&query.get_equipped_item_name!='diamond_pickaxe'&&query.get_equipped_item_name!='netherite_pickaxe'",
						"spawn_loot": {
							"table": "loot_tables/damaged_tornado_siren_block.json"
						}
					}
				]
			}
		}
	}
}