{
	"format_version": "1.20.30",
	"minecraft:block": {
		"description": {
			"identifier": "farmersdelight:wild_potatoes_plant",
			"is_experimental": true,
			"states": {
				"block:rotation": [
					2,
					3,
					4,
					5
				],
				"block:silk_touch": [
					false,
					true
				]
			}
		},
		"components": {
			"minecraft:geometry": "geometry.crop.x_wild",
			"minecraft:map_color": "#00ff00",
			"minecraft:material_instances": {
				"*": {
					"render_method": "alpha_test",
					"texture": "wild_potatoes",
					"ambient_occlusion": false,
					"face_dimming": false
				}
			},
			"minecraft:flammable": {
				"flame_odds": 0,
				"burn_odds": 0
			},
			"minecraft:loot": "loot_tables/wild_potatoes.json",
			"minecraft:destructible_by_mining": {
				"seconds_to_destroy": 0
			},
			"minecraft:destructible_by_explosion": {
				"explosion_resistance": 10
			},
			"minecraft:collision_box": false,
			"minecraft:selection_box": {
				"origin": [
					-6,
					0,
					-6
				],
				"size": [
					12,
					16,
					12
				]
			},
			"minecraft:on_placed": {
				"event": "rotation"
			},
			"minecraft:on_player_destroyed": {
				"condition": "query.is_enchanted('silk_touch')",
				"target": "other",
				"event": "silk_touch"
			},
			"minecraft:light_dampening": 0,
			"tag:fd_silk_touch": {}
		},
		"permutations": [
			{
				"condition": "query.block_state('block:rotation') == 2",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							0,
							0
						]
					}
				}
			},
			{
				"condition": "query.block_state('block:rotation') == 3",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							-180,
							0
						]
					}
				}
			},
			{
				"condition": "query.block_state('block:rotation') == 4",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							90,
							0
						]
					}
				}
			},
			{
				"condition": "query.block_state('block:rotation') == 5",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							-90,
							0
						]
					}
				}
			},
			{
				"condition": "query.block_state('block:silk_touch') == true",
				"components": {
					"minecraft:loot": "loot_tables/wild_potatoes_silk_touch.json"
				}
			}
		],
		"events": {
			"rotation": {
				"set_block_state": {
					"block:rotation": "math.die_roll_integer(1,2,5)"
				}
			},
			"silk_touch": {
				"sequence": [
					{
						"set_block_state": {
							"block:silk_touch": true
						}
					}
				]
			}
		}
	}
}