//bridge-file-version: #4
{
	"format_version": "1.17.0",
	"minecraft:block": {
		"description": {
			"identifier": "strat:glass_pane_cast_bucket"
		},
		"components": {
			"minecraft:block_light_absorption": 0,
			"minecraft:geometry": "geometry.cast2",
			"minecraft:material_instances": {
				"*": {
					"texture": "glass",
					"render_method": "alpha_test"
				}
			},
			"minecraft:placement_filter": {
				"conditions": [
					{
						"block_filter": [
							"strat:casting_table"
						],
						"allowed_faces": [
							"up"
						]
					}
				]
			},
			"minecraft:entity_collision": false,
			"minecraft:pick_collision": {
				"origin": [
					-7,
					0,
					-7
				],
				"size": [
					14,
					1,
					14
				]
			},
			"minecraft:on_placed": {
				"event": "strat:cast"
			},
			"minecraft:loot": "loot_tables/patterns/casts/glass_pane.json",
			"minecraft:on_interact": {
				"event": "bridge:update_rotation"
			},
			"minecraft:ticking": {
				"range": [
					0.1,
					0.1
				],
				"on_tick": {
					"event": "strat:convert"
				}
			}
		},
		"events": {
			"strat:cast": {
				"sequence": [
					{
						"run_command": {
							"command": [
								"gamerule sendcommandfeedback false",
								"particle minecraft:basic_smoke_particle ~~~",
								"playsound extinguish.candle @a ~~~",
								"give @p bucket",
								"gamerule sendcommandfeedback true"
							]
						}
					}
				]
			},
			"strat:convert": {
				"set_block": {
					"block_type": "strat:glass_pane_cast"
				}
			}
		}
	}
}