- fix tall grass possibly preventing tree template features from placing

- refined badlands terrain
- more lush birch forest grasses/flowers
This commit is contained in:
dags- 2020-06-14 23:03:16 +01:00
parent 17f6021113
commit b662eb8062
7 changed files with 195 additions and 6 deletions

2
Engine

@ -1 +1 @@
Subproject commit 7a8cf4023c45668b7622aee8b372e119c998a6a7
Subproject commit 4fe42cd41dd112604ef2879a43f8cfbc1a40e0fa

@ -1 +1 @@
Subproject commit 96704f55881abe69c1a20462cccb83004bd15a9a
Subproject commit 06ee44f3e14bf99f2115f1102645b063ae6ac697

View File

@ -13,6 +13,9 @@ apply plugin: "net.minecraftforge.gradle"
apply plugin: "maven-publish"
apply plugin: "eclipse"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
version = "${mc_version}-${mod_version}${getClassifier()}"
allprojects {

View File

@ -120,8 +120,6 @@ public class TerraSetupFactory {
manager.append(
new ForestSurface(context),
Biomes.FOREST,
Biomes.BIRCH_FOREST,
Biomes.BIRCH_FOREST_HILLS,
Biomes.TALL_BIRCH_FOREST,
Biomes.DARK_FOREST,
Biomes.DARK_FOREST_HILLS

View File

@ -28,7 +28,7 @@ public class BiomeSearchTask extends Search {
@Override
public BlockPos success(BlockPos.Mutable pos) {
pos.setY(reader.getHeight(Heightmap.Type.MOTION_BLOCKING, pos.getX(), pos.getZ()));
pos.setY(reader.getHeight(Heightmap.Type.WORLD_SURFACE_WG, pos.getX(), pos.getZ()));
return super.success(pos);
}
}

View File

@ -34,7 +34,7 @@ public class TerrainSearchTask extends Search {
@Override
public BlockPos success(BlockPos.Mutable pos) {
pos.setY(reader.getHeight(Heightmap.Type.MOTION_BLOCKING, pos.getX(), pos.getZ()));
pos.setY(reader.getHeight(Heightmap.Type.WORLD_SURFACE_WG, pos.getX(), pos.getZ()));
return super.success(pos);
}
}

View File

@ -0,0 +1,188 @@
{
"biomes": [
"minecraft:birch*",
"minecraft:tall_birch*"
],
"match": [[
"minecraft:double_plant_placer"
]],
"replace": {
"name": "minecraft:decorated",
"config": {
"feature": {
"name": "minecraft:random_selector",
"config": {
"features": [
{
"chance": 0.8,
"name": "minecraft:random_patch",
"config": {
"state_provider": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "minecraft:tall_grass",
"Properties": {
"half": "lower"
}
}
},
"block_placer": {
"type": "minecraft:double_plant_placer"
},
"whitelist": [],
"blacklist": [],
"tries": 56,
"xspread": 7,
"yspread": 3,
"zspread": 7,
"can_replace": false,
"project": false,
"need_water": false
}
},
{
"chance": 0.5,
"name": "minecraft:random_patch",
"config": {
"state_provider": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "minecraft:lilac",
"Properties": {
"half": "lower"
}
}
},
"block_placer": {
"type": "minecraft:double_plant_placer"
},
"whitelist": [],
"blacklist": [],
"tries": 64,
"xspread": 7,
"yspread": 3,
"zspread": 7,
"can_replace": false,
"project": false,
"need_water": false
}
},
{
"chance": 0.3,
"name": "minecraft:random_patch",
"config": {
"state_provider": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "minecraft:large_fern",
"Properties": {
"half": "lower"
}
}
},
"block_placer": {
"type": "minecraft:double_plant_placer"
},
"whitelist": [],
"blacklist": [],
"tries": 48,
"xspread": 5,
"yspread": 3,
"zspread": 5,
"can_replace": false,
"project": false,
"need_water": false
}
},
{
"chance": 0.2,
"name": "minecraft:random_patch",
"config": {
"state_provider": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "minecraft:fern",
"Properties": {
"half": "lower"
}
}
},
"block_placer": {
"type": "minecraft:simple_block_placer"
},
"whitelist": [],
"blacklist": [],
"tries": 24,
"xspread": 4,
"yspread": 3,
"zspread": 4,
"can_replace": false,
"project": false,
"need_water": false
}
},
{
"chance": 0.1,
"name": "minecraft:random_patch",
"config": {
"state_provider": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "minecraft:peony",
"Properties": {
"half": "lower"
}
}
},
"block_placer": {
"type": "minecraft:double_plant_placer"
},
"whitelist": [],
"blacklist": [],
"tries": 32,
"xspread": 6,
"yspread": 3,
"zspread": 6,
"can_replace": false,
"project": false,
"need_water": false
}
}
],
"default": {
"name": "minecraft:random_patch",
"config": {
"state_provider": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "minecraft:tall_grass",
"Properties": {
"half": "lower"
}
}
},
"block_placer": {
"type": "minecraft:double_plant_placer"
},
"whitelist": [],
"blacklist": [],
"tries": 48,
"xspread": 7,
"yspread": 3,
"zspread": 7,
"can_replace": false,
"project": false,
"need_water": false
}
}
}
},
"decorator": {
"name": "minecraft:count_heightmap_32",
"config": {
"count": 5
}
}
}
}
}