{
	"feature": "terralith:cave/desert/sand_patch",
	"placement": [
		{
			"type": "minecraft:count",
			"count": 30
		},
		{
			"type": "minecraft:count",
			"count": 50
		},
		{
			"type": "minecraft:in_square"
		},
		{
			"type": "minecraft:height_range",
			"height": {
				"type": "minecraft:uniform",
				"min_inclusive": {
					"absolute": 0
				},
				"max_inclusive": {
					"absolute": 200
				}
			}
		},
		{
			"type": "minecraft:surface_relative_threshold_filter",
			"heightmap": "WORLD_SURFACE_WG",
			"min_inclusive": -256,
			"max_inclusive": -12
		},
		{
			"type": "minecraft:environment_scan",
			"direction_of_search": "down",
			"target_condition": {
				"type": "minecraft:solid"
			},
			"allowed_search_condition": {
				"type": "minecraft:matching_blocks",
				"blocks": [
					"minecraft:air"
				]
			},
			"max_steps": 30
		},
		{
			"type": "minecraft:block_predicate_filter",
			"predicate": {
				"type": "minecraft:any_of",
				"predicates": [
					{
						"type": "minecraft:all_of",
						"predicates": [
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									1,
									0,
									0
								],
								"blocks": [
									"minecraft:sand",
									"minecraft:sandstone",
									"minecraft:red_sand",
									"minecraft:red_sandstone",
									"smooth_sandstone",
									"smooth_red_sandstone"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									1,
									1,
									0
								],
								"blocks": [
									"minecraft:cave_air",
									"minecraft:air"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									-1,
									-1,
									0
								],
								"blocks": [
									"minecraft:air",
									"cave_air"
								]
							}
						]
					},
					{
						"type": "minecraft:all_of",
						"predicates": [
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									-1,
									0,
									0
								],
								"blocks": [
									"minecraft:sand",
									"minecraft:sandstone",
									"minecraft:red_sand",
									"minecraft:red_sandstone",
									"smooth_sandstone",
									"smooth_red_sandstone"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									-1,
									1,
									0
								],
								"blocks": [
									"minecraft:cave_air",
									"minecraft:air"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									1,
									-1,
									0
								],
								"blocks": [
									"minecraft:air",
									"cave_air"
								]
							}
						]
					},
					{
						"type": "minecraft:all_of",
						"predicates": [
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									0,
									0,
									1
								],
								"blocks": [
									"minecraft:sand",
									"minecraft:sandstone",
									"minecraft:red_sand",
									"minecraft:red_sandstone",
									"smooth_sandstone",
									"smooth_red_sandstone"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									0,
									1,
									1
								],
								"blocks": [
									"minecraft:cave_air",
									"minecraft:air"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									0,
									-1,
									-1
								],
								"blocks": [
									"minecraft:air",
									"cave_air"
								]
							}
						]
					},
					{
						"type": "minecraft:all_of",
						"predicates": [
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									0,
									0,
									-1
								],
								"blocks": [
									"minecraft:sand",
									"minecraft:sandstone",
									"minecraft:red_sand",
									"minecraft:red_sandstone",
									"smooth_sandstone",
									"smooth_red_sandstone"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									0,
									1,
									-1
								],
								"blocks": [
									"minecraft:cave_air",
									"minecraft:air"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									0,
									-1,
									1
								],
								"blocks": [
									"minecraft:air",
									"cave_air"
								]
							}
						]
					}
				]
			}
		},
		{
			"type": "minecraft:biome"
		}
	]
}
