{
	"feature": "terralith:cave/mantle/magma_spread",
	"placement": [
		{
			"type": "minecraft:count",
			"count": {
				"type": "minecraft:weighted_list",
				"distribution": [
					{
						"weight": 100,
						"data": 0
					},
					{
						"weight": 0,
						"data": 0
					}
				]
			}
		},
		{
			"type": "minecraft:in_square"
		},
		{
			"type": "minecraft:height_range",
			"height": {
				"type": "minecraft:uniform",
				"min_inclusive": {
					"above_bottom": 0
				},
				"max_inclusive": {
					"absolute": 64
				}
			}
		},
		{
			"type": "minecraft:environment_scan",
			"direction_of_search": "up",
			"target_condition": {
				"type": "minecraft:solid"
			},
			"allowed_search_condition": {
				"type": "minecraft:matching_blocks",
				"blocks": [
					"minecraft:air"
				]
			},
			"max_steps": 30
		},
		{
			"type": "minecraft:random_offset",
			"xz_spread": 0,
			"y_spread": {
				"type": "minecraft:uniform",
				"value": {
					"min_inclusive": 1,
					"max_inclusive": 1
				}
			}
		},
		{
			"type": "minecraft:block_predicate_filter",
			"predicate": {
				"type": "minecraft:all_of",
				"predicates": [
					{
						"type": "minecraft:matching_blocks",
						"offset": [
							0,
							0,
							0
						],
						"blocks": [
							"minecraft:blackstone"
						]
					},
					{
						"type": "minecraft:any_of",
						"predicates": [
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									-1,
									0,
									-1
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									1,
									0,
									1
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									1,
									0,
									-1
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									-1,
									0,
									1
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									1,
									0,
									0
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									0,
									0,
									-1
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									0,
									0,
									1
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									-1,
									1,
									0
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									1,
									1,
									0
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									0,
									1,
									-1
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									0,
									1,
									1
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									-1,
									-1,
									0
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									1,
									-1,
									0
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									0,
									-1,
									-1
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							},
							{
								"type": "minecraft:matching_blocks",
								"offset": [
									0,
									-1,
									1
								],
								"blocks": [
									"minecraft:magma_block",
									"minecraft:lava"
								]
							}
						]
					}
				]
			}
		}
	]
}
