{
	"biomes": [
		"minecraft:nether_wastes"
	],
	"rule": {
		"sequence": [
			{
				"sequence": [
					{
						"type": "minecraft:condition",
						"if_true": {
							"offset": 0,
							"add_surface_depth": true,
							"secondary_depth_range": 0,
							"type": "minecraft:stone_depth",
							"surface_type": "floor"
						},
						"then_run": {
							"type": "minecraft:condition",
							"if_true": {
								"min_threshold": -0.012,
								"max_threshold": 3.0E7,
								"noise": "minecraft:soul_sand_layer",
								"type": "minecraft:noise_threshold"
							},
							"then_run": {
								"sequence": [
									{
										"type": "minecraft:condition",
										"if_true": {
											"invert": {
												"type": "minecraft:hole"
											},
											"type": "minecraft:not"
										},
										"then_run": {
											"type": "minecraft:condition",
											"if_true": {
												"surface_depth_multiplier": 0,
												"anchor": {
													"absolute": %SL-1%
												},
												"type": "minecraft:y_above",
												"add_stone_depth": true
											},
											"then_run": {
												"type": "minecraft:condition",
												"if_true": {
													"invert": {
														"surface_depth_multiplier": 0,
														"anchor": {
															"absolute": %SL+4%
														},
														"type": "minecraft:y_above",
														"add_stone_depth": true
													},
													"type": "minecraft:not"
												},
												"then_run": {
													"result_state": {
														"Name": "minecraft:soul_sand"
													},
													"type": "minecraft:block"
												}
											}
										}
									},
									{
										"result_state": {
											"Name": "minecraft:netherrack"
										},
										"type": "minecraft:block"
									}
								],
								"type": "minecraft: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": {
								"surface_depth_multiplier": 0,
								"anchor": {
									"absolute": %SL%
								},
								"type": "minecraft:y_above",
								"add_stone_depth": false
							},
							"then_run": {
								"type": "minecraft:condition",
								"if_true": {
									"invert": {
										"surface_depth_multiplier": 0,
										"anchor": {
											"absolute": %SL+4%
										},
										"type": "minecraft:y_above",
										"add_stone_depth": true
									},
									"type": "minecraft:not"
								},
								"then_run": {
									"type": "minecraft:condition",
									"if_true": {
										"min_threshold": -0.012,
										"max_threshold": 3.0E7,
										"noise": "minecraft:gravel_layer",
										"type": "minecraft:noise_threshold"
									},
									"then_run": {
										"sequence": [
											{
												"type": "minecraft:condition",
												"if_true": {
													"surface_depth_multiplier": 0,
													"anchor": {
														"absolute": %SL+1%
													},
													"type": "minecraft:y_above",
													"add_stone_depth": false
												},
												"then_run": {
													"result_state": {
														"Name": "minecraft:gravel"
													},
													"type": "minecraft:block"
												}
											},
											{
												"type": "minecraft:condition",
												"if_true": {
													"invert": {
														"type": "minecraft:hole"
													},
													"type": "minecraft:not"
												},
												"then_run": {
													"result_state": {
														"Name": "minecraft:gravel"
													},
													"type": "minecraft:block"
												}
											}
										],
										"type": "minecraft:sequence"
									}
								}
							}
						}
					}
				],
				"type": "minecraft:sequence"
			},
			{
				"type": "minecraft:condition",
				"if_true": {
					"surface_depth_multiplier": 1,
					"anchor": {
						"below_top": 5
					},
					"type": "minecraft:y_above",
					"add_stone_depth": true
				},
				"then_run": {
					"result_state": {
						"Name": "bygone:byslate"
					},
					"type": "minecraft:block"
				}
			},
			{
				"result_state": {
					"Name": "bygone:bystone"
				},
				"type": "minecraft:block"
			},
			{
				"sequence": [
					{
						"type": "minecraft:condition",
						"if_true": {
							"offset": 0,
							"add_surface_depth": true,
							"secondary_depth_range": 0,
							"type": "minecraft:stone_depth",
							"surface_type": "floor"
						},
						"then_run": {
							"type": "minecraft:condition",
							"if_true": {
								"min_threshold": -0.012,
								"max_threshold": 3.0E7,
								"noise": "minecraft:soul_sand_layer",
								"type": "minecraft:noise_threshold"
							},
							"then_run": {
								"sequence": [
									{
										"type": "minecraft:condition",
										"if_true": {
											"invert": {
												"type": "minecraft:hole"
											},
											"type": "minecraft:not"
										},
										"then_run": {
											"type": "minecraft:condition",
											"if_true": {
												"surface_depth_multiplier": 0,
												"anchor": {
													"absolute": %SL-1%
												},
												"type": "minecraft:y_above",
												"add_stone_depth": true
											},
											"then_run": {
												"type": "minecraft:condition",
												"if_true": {
													"invert": {
														"surface_depth_multiplier": 0,
														"anchor": {
															"absolute": %SL+4%
														},
														"type": "minecraft:y_above",
														"add_stone_depth": true
													},
													"type": "minecraft:not"
												},
												"then_run": {
													"result_state": {
														"Name": "minecraft:soul_sand"
													},
													"type": "minecraft:block"
												}
											}
										}
									},
									{
										"result_state": {
											"Name": "minecraft:netherrack"
										},
										"type": "minecraft:block"
									}
								],
								"type": "minecraft: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": {
								"surface_depth_multiplier": 0,
								"anchor": {
									"absolute": %SL%
								},
								"type": "minecraft:y_above",
								"add_stone_depth": false
							},
							"then_run": {
								"type": "minecraft:condition",
								"if_true": {
									"invert": {
										"surface_depth_multiplier": 0,
										"anchor": {
											"absolute": %SL+4%
										},
										"type": "minecraft:y_above",
										"add_stone_depth": true
									},
									"type": "minecraft:not"
								},
								"then_run": {
									"type": "minecraft:condition",
									"if_true": {
										"min_threshold": -0.012,
										"max_threshold": 3.0E7,
										"noise": "minecraft:gravel_layer",
										"type": "minecraft:noise_threshold"
									},
									"then_run": {
										"sequence": [
											{
												"type": "minecraft:condition",
												"if_true": {
													"surface_depth_multiplier": 0,
													"anchor": {
														"absolute": %SL+1%
													},
													"type": "minecraft:y_above",
													"add_stone_depth": false
												},
												"then_run": {
													"result_state": {
														"Name": "minecraft:gravel"
													},
													"type": "minecraft:block"
												}
											},
											{
												"type": "minecraft:condition",
												"if_true": {
													"invert": {
														"type": "minecraft:hole"
													},
													"type": "minecraft:not"
												},
												"then_run": {
													"result_state": {
														"Name": "minecraft:gravel"
													},
													"type": "minecraft:block"
												}
											}
										],
										"type": "minecraft:sequence"
									}
								}
							}
						}
					}
				],
				"type": "minecraft:sequence"
			},
			{
				"type": "minecraft:condition",
				"if_true": {
					"surface_depth_multiplier": 1,
					"anchor": {
						"below_top": 5
					},
					"type": "minecraft:y_above",
					"add_stone_depth": true
				},
				"then_run": {
					"result_state": {
						"Name": "bygone:byslate"
					},
					"type": "minecraft:block"
				}
			},
			{
				"result_state": {
					"Name": "bygone:bystone"
				},
				"type": "minecraft:block"
			}
		],
		"type": "minecraft:sequence"
	}
}
