{
	"format_version": "1.19.40",
	"minecraft:block": {
		"description": {
			"identifier": "bridge:tornado_radar_block_test",
			"menu_category": {
				"category": "equipment",
				"is_hidden_in_commands": true
			},
			"properties": {
				"des:Speed": [
					false,
					true
				],
				"allow:Spawn": [
					true,
					false
				],
				"has:Spawned": [
					false,
					true
				],
				"allow:DesChange": [
					false,
					true
				],
				"was:Placed": [
					false,
					true
				]
			}
		},
		"permutations": [
			{
				"condition": "query.block_property('des:Speed') == true && query.block_property('allow:DesChange') == true",
				"components": {
					"minecraft:destructible_by_mining": {
						"seconds_to_destroy": 0.23
					}
				}
			},
			{
				"condition": "query.block_property('des:Speed') == false && query.block_property('allow:DesChange') == true",
				"components": {
					"minecraft:destructible_by_mining": {
						"seconds_to_destroy": 0.75
					}
				}
			}
		],
		"components": {
			"minecraft:geometry": "geometry.decoy_block",
			"minecraft:material_instances": {
				"*": {
					"texture": "tornado_radar_block",
					"ambient_occlusion": false,
					"render_method": "alpha_test"
				}
			},
			"minecraft:loot": "loot_tables/empty.json",
			"minecraft:queued_ticking": {
				"looping": false,
				"interval_range": [
					3,
					3
				],
				"on_tick": {
					"condition": "query.block_property('has:Spawned') == false",
					"event": "ActivateRadar"
				}
			},
			"minecraft:on_placed": {
				"condition": "query.block_property('was:Placed') == false",
				"event": "FirstPlaced"
			},
			"minecraft:on_player_destroyed": {
				"event": "RadarLoot"
			}
		},
		"events": {
			"FirstPlaced": {
				"set_block_property": {
					"des:Speed": false,
					"allow:Spawn": true,
					"has:Spawned": false,
					"allow:DesChange": false,
					"was:Placed": true
				}
			},
			"ActivateRadar": {
				"run_command": {
					"command": [
						"/summon agp:decoy_radar ~~-0.15~"
					]
				},
				"set_block_property": {
					"has:Spawned": true
				}
			},
			"RadarLoot": {
				"sequence": [
					{
						"condition": "query.block_property('allow:DesChange') == true && 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_radar_block.json"
						}
					},
					{
						"condition": "query.block_property('allow:DesChange') == true && 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_radar_block.json"
						}
					},
					{
						"sequence": [
							{
								"condition": "query.block_property('allow:DesChange') == false && query.get_equipped_item_name == 'wooden_pickaxe'",
								"set_block": {
									"block_type": "bridge:tornado_radar_block"
								},
								"set_block_property": {
									"des:Speed": true,
									"allow:Spawn": false,
									"has:Spawned": true,
									"allow:DesChange": true,
									"was:Placed": true
								}
							},
							{
								"condition": "query.block_property('allow:DesChange') == false && query.get_equipped_item_name != 'wooden_pickaxe'",
								"set_block": {
									"block_type": "bridge:tornado_radar_block"
								},
								"set_block_property": {
									"des:Speed": false,
									"allow:Spawn": false,
									"has:Spawned": true,
									"allow:DesChange": true,
									"was:Placed": true
								}
							}
						]
					}
				]
			}
		}
	}
} //Made by ItzJeremicer