- tweaks to mountain biome trees

- redo temp categorization of mountain biomes
This commit is contained in:
dags- 2020-06-27 00:23:33 +01:00
parent 59555d8019
commit d4d888f330
5 changed files with 16 additions and 5 deletions

View File

@ -127,6 +127,10 @@ classes {
dependsOn(collectLibs)
}
build {
dependsOn("reobfJar")
}
publishing {
publications {
// publish the mod jar & api jar

View File

@ -29,6 +29,7 @@ import com.terraforged.mod.biome.ModBiomes;
import com.terraforged.mod.biome.map.BiomeMap;
import com.terraforged.mod.biome.map.BiomeMapBuilder;
import com.terraforged.mod.biome.map.BiomePredicate;
import com.terraforged.mod.biome.map.defaults.BiomeTemps;
import com.terraforged.n2d.util.Vec2f;
import com.terraforged.world.biome.BiomeData;
import com.terraforged.world.biome.BiomeType;
@ -135,11 +136,18 @@ public class BiomeHelper {
return biome.getTempCategory();
}
// Biomes.MOUNTAINS 0.2F
// Biomes.GRAVELLY_MOUNTAINS 0.2F
// Biomes.SNOWY_MOUNTAINS 0.0F
// Biomes.SNOWY_TAIGA_MOUNTAINS -0.5F
// Biomes.TAIGA_MOUNTAINS 0.25F
// Biomes.WOODED_MOUNTAINS 0.2F
// Biomes.MODIFIED_GRAVELLY_MOUNTAINS 0.2F
public static Biome.TempCategory getMountainCategory(Biome biome) {
if (biome.getDefaultTemperature() < 0.2) {
if (biome.getDefaultTemperature() <= BiomeTemps.COLD) {
return Biome.TempCategory.COLD;
}
if (biome.getDefaultTemperature() > 0.4) {
if (biome.getDefaultTemperature() >= BiomeTemps.HOT) {
return Biome.TempCategory.WARM;
}
return Biome.TempCategory.MEDIUM;

View File

@ -1,11 +1,12 @@
{
"biomes": [
"minecraft:snowy_mountains",
"minecraft:wooded_mountains",
"terraforged:fir_forest",
"terraforged:snowy_fir_forest"
],
"match": [
[
"minecraft:normal_tree",
"minecraft:spruce_log",
"minecraft:spruce_leaves"
]

View File

@ -6,7 +6,6 @@
],
"match": [
[
"minecraft:normal_tree",
"minecraft:spruce_log",
"minecraft:spruce_leaves"
]

View File

@ -2,7 +2,6 @@
"biomes": [
"minecraft:snowy_tundra",
"minecraft:snowy_taiga_mountains",
"minecraft:wooded_mountains",
"minecraft:gravelly_mountains",
"minecraft:modified_gravelly_mountains"
],