//bridge-file-version: #5
{
	"format_version": "1.17.0",
	"minecraft:block": {
		"description": {
			"identifier": "strat:seared_melter_0_on",
			"properties": {
				"strat:data": [
					0,
					1,
					2,
					3,
					4,
					5,
					6,
					7,
					8,
					9,
					10
				]
			}
		},
		"components": {
			"minecraft:destroy_time": 2,
			"minecraft:explosion_resistance": 10,
			"minecraft:material_instances": {
				"*": {
					"texture": "seared_melter_on",
					"render_method": "alpha_test"
				}
			},
			"minecraft:geometry": "geometry.melter",
			"minecraft:rotation": [
				0,
				0,
				0
			],
			"minecraft:loot": "loot_tables/seared_melter.json",
			"tag:stone": {},
			"minecraft:block_light_emission": 1,
			"minecraft:on_interact": {
				"event": "strat:melter"
			},
			"minecraft:ticking": {
				"looping": true,
				"range": [
					0.1,
					0.1
				],
				"on_tick": {
					"event": "strat:test_power"
				}
			}
		},
		"events": {
			"strat:melter": {
				"sequence": [
					{
						"condition": "query.block_property('strat:data') == 0",
						"sequence": [
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'iron_ingot' || query.get_equipped_item_name('main_hand') == 'raw_iron'",
								"set_block_property": {
									"strat:data": 1
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"particle minecraft:basic_flame_particle ~~~",
										"playsound bucket.fill_lava @a ~~~"
									]
								}
							},
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'gold_ingot' || query.get_equipped_item_name('main_hand') == 'raw_gold'",
								"set_block_property": {
									"strat:data": 2
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"particle minecraft:basic_flame_particle ~~~",
										"playsound bucket.fill_lava @a ~~~"
									]
								}
							},
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'copper_ingot' || query.get_equipped_item_name('main_hand') == 'raw_copper'",
								"set_block_property": {
									"strat:data": 3
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"particle minecraft:basic_flame_particle ~~~",
										"playsound bucket.fill_lava @a ~~~"
									]
								}
							},
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'cobalt_ingot' || query.get_equipped_item_name('main_hand') == 'cobalt_ore' || query.get_equipped_item_name('main_hand') == 'raw_cobalt'",
								"set_block_property": {
									"strat:data": 4
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"particle minecraft:basic_flame_particle ~~~",
										"playsound bucket.fill_lava @a ~~~"
									]
								}
							},
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'ardite_ingot' || query.get_equipped_item_name('main_hand') == 'ardite_ore' || query.get_equipped_item_name('main_hand') == 'raw_ardite'",
								"set_block_property": {
									"strat:data": 5
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"particle minecraft:basic_flame_particle ~~~",
										"playsound bucket.fill_lava @a ~~~"
									]
								}
							},
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'manyullyn_ingot'",
								"set_block_property": {
									"strat:data": 6
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"particle minecraft:basic_flame_particle ~~~",
										"playsound bucket.fill_lava @a ~~~"
									]
								}
							},
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'seared_brick' || query.get_equipped_item_name('main_hand') == 'grout' || query.get_equipped_item_name('main_hand') == 'nether_grout'",
								"set_block_property": {
									"strat:data": 7
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"particle minecraft:basic_flame_particle ~~~",
										"playsound bucket.fill_lava @a ~~~"
									]
								}
							},
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'glass'",
								"set_block_property": {
									"strat:data": 8
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"particle minecraft:basic_flame_particle ~~~",
										"playsound bucket.fill_lava @a ~~~"
									]
								}
							},
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'obsidian'",
								"set_block_property": {
									"strat:data": 9
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"particle minecraft:basic_flame_particle ~~~",
										"playsound bucket.fill_lava @a ~~~"
									]
								}
							}
						]
					},
					{
						"condition": "query.block_property('strat:data') == 1",
						"sequence": [
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'bucket'",
								"set_block_property": {
									"strat:data": 0
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"gamerule sendcommandfeedback false",
										"give @s strat:molten_iron_bucket",
										"playsound bucket.empty_lava @a ~~~",
										"gamerule sendcommandfeedback true"
									],
									"target": "player"
								}
							}
						]
					},
					{
						"condition": "query.block_property('strat:data') == 2",
						"sequence": [
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'bucket'",
								"set_block_property": {
									"strat:data": 0
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"gamerule sendcommandfeedback false",
										"give @s strat:molten_gold_bucket",
										"playsound bucket.empty_lava @a ~~~",
										"gamerule sendcommandfeedback true"
									],
									"target": "player"
								}
							}
						]
					},
					{
						"condition": "query.block_property('strat:data') == 3",
						"sequence": [
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'bucket'",
								"set_block_property": {
									"strat:data": 0
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"gamerule sendcommandfeedback false",
										"give @s strat:molten_copper_bucket",
										"playsound bucket.empty_lava @a ~~~",
										"gamerule sendcommandfeedback true"
									],
									"target": "player"
								}
							}
						]
					},
					{
						"condition": "query.block_property('strat:data') == 4",
						"sequence": [
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'bucket'",
								"set_block_property": {
									"strat:data": 0
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"gamerule sendcommandfeedback false",
										"give @s strat:molten_cobalt_bucket",
										"playsound bucket.empty_lava @a ~~~",
										"gamerule sendcommandfeedback true"
									],
									"target": "player"
								}
							}
						]
					},
					{
						"condition": "query.block_property('strat:data') == 5",
						"sequence": [
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'bucket'",
								"set_block_property": {
									"strat:data": 0
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"gamerule sendcommandfeedback false",
										"give @s strat:molten_ardite_bucket",
										"playsound bucket.empty_lava @a ~~~",
										"gamerule sendcommandfeedback true"
									],
									"target": "player"
								}
							}
						]
					},
					{
						"condition": "query.block_property('strat:data') == 6",
						"sequence": [
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'bucket'",
								"set_block_property": {
									"strat:data": 0
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"gamerule sendcommandfeedback false",
										"give @s strat:molten_manyullyn_bucket",
										"playsound bucket.empty_lava @a ~~~",
										"gamerule sendcommandfeedback true"
									],
									"target": "player"
								}
							}
						]
					},
					{
						"condition": "query.block_property('strat:data') == 7",
						"sequence": [
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'bucket'",
								"set_block_property": {
									"strat:data": 0
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"gamerule sendcommandfeedback false",
										"give @s strat:seared_stone_bucket",
										"playsound bucket.empty_lava @a ~~~",
										"gamerule sendcommandfeedback true"
									],
									"target": "player"
								}
							}
						]
					},
					{
						"condition": "query.block_property('strat:data') == 8",
						"sequence": [
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'bucket'",
								"set_block_property": {
									"strat:data": 0
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"gamerule sendcommandfeedback false",
										"give @s strat:molten_glass_bucket",
										"playsound bucket.empty_lava @a ~~~",
										"gamerule sendcommandfeedback true"
									],
									"target": "player"
								}
							}
						]
					},
					{
						"condition": "query.block_property('strat:data') == 9",
						"sequence": [
							{
								"condition": "query.get_equipped_item_name('main_hand') == 'bucket'",
								"set_block_property": {
									"strat:data": 0
								},
								"decrement_stack": {
									"ignore_game_mode": false
								},
								"run_command": {
									"command": [
										"gamerule sendcommandfeedback false",
										"give @s strat:molten_obsidian_bucket",
										"playsound bucket.empty_lava @a ~~~",
										"gamerule sendcommandfeedback true"
									],
									"target": "player"
								}
							}
						]
					}
				]
			},
			"strat:test_power": {
				"run_command": {
					"command": [
						"function melter_test"
					]
				}
			}
		},
		"permutations": [
			{
				"condition": "query.block_property('strat:data') == 0",
				"components": {
					"minecraft:geometry": "geometry.melter",
					"minecraft:material_instances": {
						"*": {
							"texture": "seared_melter_on",
							"render_method": "alpha_test"
						}
					}
				}
			},
			{
				"condition": "query.block_property('strat:data') == 1",
				"components": {
					"minecraft:geometry": "geometry.melter1",
					"minecraft:material_instances": {
						"*": {
							"texture": "seared_melter_iron1",
							"render_method": "alpha_test"
						}
					}
				}
			},
			{
				"condition": "query.block_property('strat:data') == 2",
				"components": {
					"minecraft:geometry": "geometry.melter1",
					"minecraft:material_instances": {
						"*": {
							"texture": "seared_melter_gold1",
							"render_method": "alpha_test"
						}
					}
				}
			},
			{
				"condition": "query.block_property('strat:data') == 3",
				"components": {
					"minecraft:geometry": "geometry.melter1",
					"minecraft:material_instances": {
						"*": {
							"texture": "seared_melter_copper1",
							"render_method": "alpha_test"
						}
					}
				}
			},
			{
				"condition": "query.block_property('strat:data') == 4",
				"components": {
					"minecraft:geometry": "geometry.melter1",
					"minecraft:material_instances": {
						"*": {
							"texture": "seared_melter_cobalt1",
							"render_method": "alpha_test"
						}
					}
				}
			},
			{
				"condition": "query.block_property('strat:data') == 5",
				"components": {
					"minecraft:geometry": "geometry.melter1",
					"minecraft:material_instances": {
						"*": {
							"texture": "seared_melter_ardite1",
							"render_method": "alpha_test"
						}
					}
				}
			},
			{
				"condition": "query.block_property('strat:data') == 6",
				"components": {
					"minecraft:geometry": "geometry.melter1",
					"minecraft:material_instances": {
						"*": {
							"texture": "seared_melter_manyullyn1",
							"render_method": "alpha_test"
						}
					}
				}
			},
			{
				"condition": "query.block_property('strat:data') == 7",
				"components": {
					"minecraft:geometry": "geometry.melter1",
					"minecraft:material_instances": {
						"*": {
							"texture": "seared_melter_seared1",
							"render_method": "alpha_test"
						}
					}
				}
			},
			{
				"condition": "query.block_property('strat:data') == 8",
				"components": {
					"minecraft:geometry": "geometry.melter1",
					"minecraft:material_instances": {
						"*": {
							"texture": "seared_melter_glass1",
							"render_method": "alpha_test"
						}
					}
				}
			},
			{
				"condition": "query.block_property('strat:data') == 9",
				"components": {
					"minecraft:geometry": "geometry.melter1",
					"minecraft:material_instances": {
						"*": {
							"texture": "seared_melter_obsidian1",
							"render_method": "alpha_test"
						}
					}
				}
			}
		]
	}
}