{
  "format_version": "1.20.50",
  "minecraft:block": {
    "description": {
      "identifier": "nicothekid:spore_pot_blaze",
      "menu_category": {
				"category": "none",
				"group": "none"
			}
    },
    "components": {
      "minecraft:material_instances": {
        "*": {
          "texture": "nicothekid_spore_pot_blaze",
          "render_method": "blend",
          "ambient_occlusion": false,
          "face_dimming": true
        }
      },
      "minecraft:geometry": "geometry.block.nicothekid_spore_pot",
      "minecraft:map_color": "#a4643f",
      "minecraft:breathability": "air",
      "minecraft:collision_box": {
        "origin": [ -6, 0, -6 ],
        "size": [ 12, 14, 12 ]
      },
      "minecraft:selection_box": {
        "origin": [ -6, 0, -6 ],
        "size": [ 12, 16, 12 ]
      },
      "minecraft:light_dampening": 0,
      "minecraft:light_emission": 12,
      "minecraft:friction": 0.4,
      "minecraft:flammable": false,
      "minecraft:destructible_by_explosion": {
        "explosion_resistance": 30.0
      },
      "minecraft:destructible_by_mining": {
        "seconds_to_destroy": 0.3
      },
      "minecraft:loot": "loot_tables/nicos_item_expansion/blocks/nicothekid_spore_pot_blaze.json",
      "minecraft:on_interact": {
        "event": "nicothekid:spore_pot_blaze_interact",
        "condition": "query.get_equipped_item_name('main_hand') == 'salt'"
      },
      "minecraft:queued_ticking": {
        "looping": true,
        "interval_range": [ 30, 30 ],
        "on_tick": {
          "event": "nicothekid:spore_pot_blaze_particles",
          "target": "self"
        }
      },
      "minecraft:random_ticking": {
				"on_tick": {
					"event": "nicothekid:spore_pot_blaze_random_inactive"
				}
			},
      
      "tag:spore_pot": {},
      "tag:stone": {}
    },
    "events": {
      "nicothekid:spore_pot_blaze_interact": {
				"sequence": [
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'salt'",
						"trigger": {
							"event": "nicothekid:spore_pot_blaze_interact_salt",
							"target": "self"
						}
					}
				]
			},
      "nicothekid:spore_pot_blaze_interact_salt": {
				"sequence": [
					{
						"run_command": {
							"command": [
								"playsound dig.sand @a[r=10]"
							]
						}
					},
					{
						"decrement_stack": {}
					},
					{
						"trigger": {
							"event": "nicothekid:spore_pot_blaze_to_spore_pot"
						}
					}
				]
			},
      "nicothekid:spore_pot_blaze_particles": {
				"sequence": [
					{
						"run_command": {
							"command": [
								"particle nicothekid:spore_blaze_particle ~~~"
							]
						}
					}
				]
      },
      "nicothekid:spore_pot_blaze_random_inactive": {
				"randomize": [
					{
						"weight": 100
					},
					{
						"weight": 10,
						"run_command": {
							"command": [
								"particle nicothekid:spore_blaze_particle ~~~"
							]
						}
					},
					{
						"weight": 5,
						"trigger": {
							"event": "nicothekid:spore_pot_blaze_to_spore_pot"
						}
					},
					{
						"weight": 10,
						"spawn_loot": {
							"table": "loot_tables/nicos_item_expansion/event/nicothekid_spore_pot_random_blaze_powder.json"
						}
					}
				]
      },
      "nicothekid:spore_pot_blaze_to_spore_pot": {
        "set_block": {
					"block_type": "nicothekid:spore_pot"
				},
				"run_command": {
					"command": [
						"playsound break.spore_blossom @a[r=10]"
					]
				}
      }
    }
  }
}
