{
	"biomes": [
		"minecraft:crimson_forest"
	],
	"rule": {
		"sequence": [
			{
				"type": "minecraft:condition",
				"if_true": {
					"offset": 0,
					"add_surface_depth": false,
					"secondary_depth_range": 0,
					"type": "minecraft:stone_depth",
					"surface_type": "floor"
				},
				"then_run": {
					"type": "minecraft:condition",
					"if_true": {
						"invert": {
							"min_threshold": 0.54,
							"max_threshold": 3.0E7,
							"noise": "minecraft:netherrack",
							"type": "minecraft:noise_threshold"
						},
						"type": "minecraft:not"
					},
					"then_run": {
						"type": "minecraft:condition",
						"if_true": {
							"surface_depth_multiplier": 0,
							"anchor": {
								"absolute": %SL%
							},
							"type": "minecraft:y_above",
							"add_stone_depth": false
						},
						"then_run": {
							"sequence": [
								{
									"type": "minecraft:condition",
									"if_true": {
										"min_threshold": 1.17,
										"max_threshold": 3.0E7,
										"noise": "minecraft:nether_wart",
										"type": "minecraft:noise_threshold"
									},
									"then_run": {
										"result_state": {
											"Name": "minecraft:nether_wart_block"
										},
										"type": "minecraft:block"
									}
								},
								{
									"result_state": {
										"Name": "minecraft:crimson_nylium"
									},
									"type": "minecraft:block"
								}
							],
							"type": "minecraft:sequence"
						}
					}
				}
			},
			{
				"type": "minecraft:condition",
				"if_true": {
					"surface_depth_multiplier": 0,
					"anchor": {
						"below_top": 5
					},
					"type": "minecraft:y_above",
					"add_stone_depth": false
				},
				"then_run": {
					"result_state": {
						"Name": "minecraft:netherrack"
					},
					"type": "minecraft:block"
				}
			},
			{
				"type": "minecraft:condition",
				"if_true": {
					"offset": 0,
					"add_surface_depth": false,
					"secondary_depth_range": 0,
					"type": "minecraft:stone_depth",
					"surface_type": "floor"
				},
				"then_run": {
					"type": "minecraft:condition",
					"if_true": {
						"invert": {
							"surface_depth_multiplier": 0,
							"anchor": {
								"absolute": %SL+1%
							},
							"type": "minecraft:y_above",
							"add_stone_depth": false
						},
						"type": "minecraft:not"
					},
					"then_run": {
						"type": "minecraft:condition",
						"if_true": {
							"type": "minecraft:hole"
						},
						"then_run": {
							"result_state": {
								"Properties": {
									"level": "0"
								},
								"Name": "minecraft:lava"
							},
							"type": "minecraft:block"
						}
					}
				}
			},
			{
				"result_state": {
					"Name": "minecraft:netherrack"
				},
				"type": "minecraft:block"
			},
			{
				"type": "minecraft:condition",
				"if_true": {
					"offset": 0,
					"add_surface_depth": false,
					"secondary_depth_range": 0,
					"type": "minecraft:stone_depth",
					"surface_type": "floor"
				},
				"then_run": {
					"type": "minecraft:condition",
					"if_true": {
						"invert": {
							"min_threshold": 0.54,
							"max_threshold": 3.0E7,
							"noise": "minecraft:netherrack",
							"type": "minecraft:noise_threshold"
						},
						"type": "minecraft:not"
					},
					"then_run": {
						"type": "minecraft:condition",
						"if_true": {
							"surface_depth_multiplier": 0,
							"anchor": {
								"absolute": %SL%
							},
							"type": "minecraft:y_above",
							"add_stone_depth": false
						},
						"then_run": {
							"sequence": [
								{
									"type": "minecraft:condition",
									"if_true": {
										"min_threshold": 1.17,
										"max_threshold": 3.0E7,
										"noise": "minecraft:nether_wart",
										"type": "minecraft:noise_threshold"
									},
									"then_run": {
										"result_state": {
											"Name": "minecraft:nether_wart_block"
										},
										"type": "minecraft:block"
									}
								},
								{
									"result_state": {
										"Name": "minecraft:crimson_nylium"
									},
									"type": "minecraft:block"
								}
							],
							"type": "minecraft:sequence"
						}
					}
				}
			},
			{
				"type": "minecraft:condition",
				"if_true": {
					"surface_depth_multiplier": 0,
					"anchor": {
						"below_top": 5
					},
					"type": "minecraft:y_above",
					"add_stone_depth": false
				},
				"then_run": {
					"result_state": {
						"Name": "minecraft:netherrack"
					},
					"type": "minecraft:block"
				}
			},
			{
				"type": "minecraft:condition",
				"if_true": {
					"offset": 0,
					"add_surface_depth": false,
					"secondary_depth_range": 0,
					"type": "minecraft:stone_depth",
					"surface_type": "floor"
				},
				"then_run": {
					"type": "minecraft:condition",
					"if_true": {
						"invert": {
							"surface_depth_multiplier": 0,
							"anchor": {
								"absolute": %SL+1%
							},
							"type": "minecraft:y_above",
							"add_stone_depth": false
						},
						"type": "minecraft:not"
					},
					"then_run": {
						"type": "minecraft:condition",
						"if_true": {
							"type": "minecraft:hole"
						},
						"then_run": {
							"result_state": {
								"Properties": {
									"level": "0"
								},
								"Name": "minecraft:lava"
							},
							"type": "minecraft:block"
						}
					}
				}
			},
			{
				"result_state": {
					"Name": "minecraft:netherrack"
				},
				"type": "minecraft:block"
			}
		],
		"type": "minecraft:sequence"
	}
}
