|
| 1 | +stages: |
| 2 | + - type: REPLACE |
| 3 | + sampler: |
| 4 | + type: EXPRESSION |
| 5 | + expression: | |
| 6 | + circle(centerRadius+buffer+ring1Width, x+noise(x,z)-1, z+noise(x,z)-1, 1) |
| 7 | + variables: |
| 8 | + centerRadius: ${meta.yml:biome-distribution.main-end-scale} |
| 9 | + buffer: ${meta.yml:biome-distribution.void-buffer-scale} |
| 10 | + ring1Width: ${meta.yml:biome-distribution.ring1-width} |
| 11 | + functions: |
| 12 | + circle: {arguments: [r, x, z, l], expression: "if(x*x+z*z>r*r,-1,l)"} |
| 13 | + samplers: |
| 14 | + noise: |
| 15 | + type: OPEN_SIMPLEX_2 |
| 16 | + dimensions: 2 |
| 17 | + salt: 3912 |
| 18 | + frequency: 0.1 |
| 19 | + from: outer_end |
| 20 | + to: |
| 21 | + - ring2: 1 |
| 22 | + - ring1: 1 |
| 23 | + |
| 24 | + - type: REPLACE |
| 25 | + sampler: |
| 26 | + type: EXPRESSION |
| 27 | + expression: | |
| 28 | + circle(centerRadius+buffer+ring1Width+ring2Width, x+noise(x,z)-1, z+noise(x,z)-1, 1) |
| 29 | + variables: |
| 30 | + centerRadius: ${meta.yml:biome-distribution.main-end-scale} |
| 31 | + buffer: ${meta.yml:biome-distribution.void-buffer-scale} |
| 32 | + ring1Width: ${meta.yml:biome-distribution.ring1-width} |
| 33 | + ring2Width: ${meta.yml:biome-distribution.ring2-width} |
| 34 | + functions: |
| 35 | + circle: {arguments: [r, x, z, l], expression: "if(x*x+z*z>r*r,-1,l)"} |
| 36 | + samplers: |
| 37 | + noise: |
| 38 | + type: OPEN_SIMPLEX_2 |
| 39 | + dimensions: 2 |
| 40 | + salt: 3912 |
| 41 | + frequency: 0.1 |
| 42 | + from: ring2 |
| 43 | + to: |
| 44 | + - ring3: 1 |
| 45 | + - ring2: 1 |
| 46 | + |
| 47 | + - type: REPLACE |
| 48 | + sampler: |
| 49 | + type: EXPRESSION |
| 50 | + expression: | |
| 51 | + circle(centerRadius+buffer+ring1Width+ring2Width+ring3Width, x+noise(x,z)-1, z+noise(x,z)-1, 1) |
| 52 | + variables: |
| 53 | + centerRadius: ${meta.yml:biome-distribution.main-end-scale} |
| 54 | + buffer: ${meta.yml:biome-distribution.void-buffer-scale} |
| 55 | + ring1Width: ${meta.yml:biome-distribution.ring1-width} |
| 56 | + ring2Width: ${meta.yml:biome-distribution.ring2-width} |
| 57 | + ring3Width: ${meta.yml:biome-distribution.ring3-width} |
| 58 | + functions: |
| 59 | + circle: {arguments: [r, x, z, l], expression: "if(x*x+z*z>r*r,-1,l)"} |
| 60 | + samplers: |
| 61 | + noise: |
| 62 | + type: OPEN_SIMPLEX_2 |
| 63 | + dimensions: 2 |
| 64 | + salt: 3912 |
| 65 | + frequency: 0.1 |
| 66 | + from: ring3 |
| 67 | + to: |
| 68 | + - ring4: 1 |
| 69 | + - ring3: 1 |
| 70 | + |
| 71 | + - type: REPLACE |
| 72 | + sampler: |
| 73 | + type: EXPRESSION |
| 74 | + expression: | |
| 75 | + circle(centerRadius+buffer+ring1Width+ring2Width+ring3Width+ring4Width, x+noise(x,z)-1, z+noise(x,z)-1, 1) |
| 76 | + variables: |
| 77 | + centerRadius: ${meta.yml:biome-distribution.main-end-scale} |
| 78 | + buffer: ${meta.yml:biome-distribution.void-buffer-scale} |
| 79 | + ring1Width: ${meta.yml:biome-distribution.ring1-width} |
| 80 | + ring2Width: ${meta.yml:biome-distribution.ring2-width} |
| 81 | + ring3Width: ${meta.yml:biome-distribution.ring3-width} |
| 82 | + ring4Width: ${meta.yml:biome-distribution.ring4-width} |
| 83 | + functions: |
| 84 | + circle: {arguments: [r, x, z, l], expression: "if(x*x+z*z>r*r,-1,l)"} |
| 85 | + samplers: |
| 86 | + noise: |
| 87 | + type: OPEN_SIMPLEX_2 |
| 88 | + dimensions: 2 |
| 89 | + salt: 3912 |
| 90 | + frequency: 0.1 |
| 91 | + from: ring4 |
| 92 | + to: |
| 93 | + - ring5: 1 |
| 94 | + - ring4: 1 |
| 95 | + |
| 96 | + |
| 97 | + |
0 commit comments