Skip to content

Commit 8f2cf92

Browse files
authored
Replace random_patch feature type (#1281)
* replace `random_patch` * fully replace the configured features and do this properly
1 parent 00d9f9e commit 8f2cf92

4 files changed

Lines changed: 93 additions & 85 deletions

File tree

gm4_cooler_caves/data/gm4_cooler_caves/worldgen/configured_feature/snowy/patch_berry_bush.json

Lines changed: 0 additions & 50 deletions
This file was deleted.

gm4_cooler_caves/data/gm4_cooler_caves/worldgen/configured_feature/snowy/patch_snow_layer.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

gm4_cooler_caves/data/gm4_cooler_caves/worldgen/placed_feature/snowy/patch_berry_rare.json

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
{
2-
"feature": "gm4_cooler_caves:snowy/patch_berry_bush",
2+
"feature": {
3+
"type": "minecraft:simple_block",
4+
"config": {
5+
"to_place": {
6+
"type": "minecraft:simple_state_provider",
7+
"state": {
8+
"Name": "minecraft:sweet_berry_bush",
9+
"Properties": {
10+
"age": "3"
11+
}
12+
}
13+
}
14+
}
15+
},
316
"placement": [
417
{
518
"type": "minecraft:rarity_filter",
@@ -14,6 +27,47 @@
1427
},
1528
{
1629
"type": "minecraft:biome"
30+
},
31+
{
32+
"type": "minecraft:count",
33+
"count": 96
34+
},
35+
{
36+
"type": "minecraft:random_offset",
37+
"xz_spread": {
38+
"type": "minecraft:uniform",
39+
"min_inclusive": 0,
40+
"max_inclusive": 7
41+
},
42+
"y_spread": {
43+
"type": "minecraft:uniform",
44+
"min_inclusive": 0,
45+
"max_inclusive": 3
46+
}
47+
},
48+
{
49+
"type": "minecraft:block_predicate_filter",
50+
"predicate": {
51+
"type": "minecraft:all_of",
52+
"predicates": [
53+
{
54+
"type": "minecraft:matching_blocks",
55+
"blocks": "minecraft:air"
56+
},
57+
{
58+
"type": "minecraft:matching_blocks",
59+
"blocks": [
60+
"minecraft:snow_block",
61+
"minecraft:powder_snow"
62+
],
63+
"offset": [
64+
0,
65+
-1,
66+
0
67+
]
68+
}
69+
]
70+
}
1771
}
1872
]
1973
}

gm4_cooler_caves/data/gm4_cooler_caves/worldgen/placed_feature/snowy/patch_snow_layer.json

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
{
2-
"feature": "gm4_cooler_caves:snowy/patch_snow_layer",
2+
"feature": {
3+
"type": "minecraft:simple_block",
4+
"config": {
5+
"to_place": {
6+
"type": "minecraft:simple_state_provider",
7+
"state": {
8+
"Name": "minecraft:snow",
9+
"Properties": {
10+
"layers": "2"
11+
}
12+
}
13+
}
14+
}
15+
},
316
"placement": [
417
{
518
"type": "minecraft:in_square"
@@ -10,6 +23,30 @@
1023
},
1124
{
1225
"type": "minecraft:biome"
26+
},
27+
{
28+
"type": "minecraft:count",
29+
"count": 32
30+
},
31+
{
32+
"type": "minecraft:random_offset",
33+
"xz_spread": {
34+
"type": "minecraft:uniform",
35+
"min_inclusive": 0,
36+
"max_inclusive": 7
37+
},
38+
"y_spread": {
39+
"type": "minecraft:uniform",
40+
"min_inclusive": 0,
41+
"max_inclusive": 3
42+
}
43+
},
44+
{
45+
"type": "minecraft:block_predicate_filter",
46+
"predicate": {
47+
"type": "minecraft:matching_blocks",
48+
"blocks": "minecraft:air"
49+
}
1350
}
1451
]
1552
}

0 commit comments

Comments
 (0)