{
	"format_version": "1.20.30",
	"minecraft:block": {
		"description": {
			"identifier": "farmersdelight:rich_soil",
			"menu_category": {
				"category": "items",
				"is_hidden_in_commands": false,
				"group": "itemGroup.name.farmersdelight_dirt"
			}
		},
		"components": {
			"tag:dirt": {},
			"tag:farmland": {},
			"tag:fertilize_area": {},
			"tag:minecraft:crop": {},
			"minecraft:unit_cube": {},
			"minecraft:map_color": "#6C5746",
			"minecraft:destructible_by_mining": {
				"seconds_to_destroy": 0.5
			},
			"minecraft:on_interact": {
				"event": "wiki:convert_to_farmland",
				"condition": "query.get_equipped_item_name('main_hand')=='wooden_hoe'||query.get_equipped_item_name('main_hand')=='stone_hoe'||query.get_equipped_item_name('main_hand')=='iron_hoe'||query.get_equipped_item_name('main_hand')=='golden_hoe'||query.get_equipped_item_name('main_hand')=='diamond_hoe'||query.get_equipped_item_name('main_hand')=='netherite_hoe'||query.get_equipped_item_name('main_hand')=='red_mushroom'||query.get_equipped_item_name('main_hand')=='brown_mushroom'&&!query.block_neighbor_has_any_tag(0,1,0,'mushroom_colony')"
			},
			"minecraft:material_instances": {
				"*": {
					"texture": "rich_soil",
					"render_method": "alpha_test"
				}
			},
			"minecraft:collision_box": {
				"origin": [
					-8,
					0,
					-8
				],
				"size": [
					16,
					15,
					16
				]
			},
			"minecraft:selection_box": {
				"origin": [
					-8,
					0,
					-8
				],
				"size": [
					16,
					16,
					16
				]
			}
		},
		"events": {
			"wiki:convert_to_farmland": {
				"sequence": [
					{
						"condition": "query.get_equipped_item_name('main_hand')=='wooden_hoe'||query.get_equipped_item_name('main_hand')=='stone_hoe'||query.get_equipped_item_name('main_hand')=='iron_hoe'||query.get_equipped_item_name('main_hand')=='golden_hoe'||query.get_equipped_item_name('main_hand')=='diamond_hoe'||query.get_equipped_item_name('main_hand')=='netherite_hoe'",
						"sequence": [
							{
								"play_sound": {
									"sound": "pop"
								}
							},
							{
								"set_block_at_pos": {
									"block_type": "farmersdelight:rich_soil_farmland",
									"block_offset": [
										0,
										0,
										0
									]
								}
							},
							{
								"damage": {
									"amount": 1,
									"target": "item",
									"type": "contact"
								}
							}
						]
					},
					{
						"condition": "query.block_face==1&&query.get_equipped_item_name('main_hand')=='red_mushroom'&&!query.block_neighbor_has_any_tag(0,1,0,'mushroom_colony')",
						"sequence": [
							{
								"decrement_stack": {}
							},
							{
								"set_block_at_pos": {
									"block_offset": [
										0,
										1,
										0
									],
									"block_type": "farmersdelight:red_mushroom_colony"
								}
							},
							{
								"run_command": {
									"target": "self",
									"command": [
										"playsound dig.grass @a[r=6] ~ ~ ~ 0.9"
									]
								}
							}
						]
					},
					{
						"condition": "query.block_face==1&&query.get_equipped_item_name('main_hand')=='brown_mushroom'&&!query.block_neighbor_has_any_tag(0,1,0,'mushroom_colony')",
						"sequence": [
							{
								"decrement_stack": {}
							},
							{
								"set_block_at_pos": {
									"block_offset": [
										0,
										1,
										0
									],
									"block_type": "farmersdelight:brown_mushroom_colony"
								}
							},
							{
								"run_command": {
									"target": "self",
									"command": [
										"playsound dig.grass @a[r=6] ~ ~ ~ 0.9"
									]
								}
							}
						]
					}
				]
			}
		}
	}
}