//bridge-file-version: #0
{
	"format_version": "1.17.0",
	"minecraft:block": {
		"description": {
			"identifier": "strat:pan_pattern_block"
		},
		"components": {
			"minecraft:block_light_absorption": 0,
			"minecraft:geometry": "geometry.stencil",
			"minecraft:material_instances": {
				"*": {
					"texture": "pan_pattern",
					"render_method": "alpha_test"
				}
			},
			"minecraft:placement_filter": {
				"conditions": [
					{
						"block_filter": [
							"strat:stencil_table_spruce",
							"strat:stencil_table_birch",
							"strat:stencil_table_jungle",
							"strat:stencil_table_acacia",
							"strat:stencil_table_dark_oak",
							"strat:stencil_table_oak",
							"strat:stencil_table_lavawood",
							"strat:stencil_table_maple"
						],
						"allowed_faces": [
							"up"
						]
					}
				]
			},
			"minecraft:loot": "loot_tables/patterns/pan_pattern.json",
			"minecraft:entity_collision": false,
			"minecraft:pick_collision": {
				"origin": [
					-6,
					0,
					-6
				],
				"size": [
					12,
					1,
					12
				]
			},
			"minecraft:on_interact": {
				"event": "strat:pattern"
			}
		},
		"events": {
			"strat:pattern": {
				"sequence": [
					{
						"condition": "query.is_sneaking == 0.0",
						"set_block": {
							"block_type": "strat:sword_blade_pattern_block"
						}
					},
					{
						"condition": "query.is_sneaking == 1.0",
						"set_block": {
							"block_type": "minecraft:air"
						},
						"spawn_loot": {
							"table": "loot_tables/patterns/pan_pattern.json"
						}
					}
				]
			}
		}
	}
}