- tweaks to mountain biome trees
- redo temp categorization of mountain biomes
This commit is contained in:
parent
59555d8019
commit
d4d888f330
@ -127,6 +127,10 @@ classes {
|
||||
dependsOn(collectLibs)
|
||||
}
|
||||
|
||||
build {
|
||||
dependsOn("reobfJar")
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
// publish the mod jar & api jar
|
||||
|
@ -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;
|
||||
|
@ -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"
|
||||
]
|
||||
|
@ -6,7 +6,6 @@
|
||||
],
|
||||
"match": [
|
||||
[
|
||||
"minecraft:normal_tree",
|
||||
"minecraft:spruce_log",
|
||||
"minecraft:spruce_leaves"
|
||||
]
|
||||
|
@ -2,7 +2,6 @@
|
||||
"biomes": [
|
||||
"minecraft:snowy_tundra",
|
||||
"minecraft:snowy_taiga_mountains",
|
||||
"minecraft:wooded_mountains",
|
||||
"minecraft:gravelly_mountains",
|
||||
"minecraft:modified_gravelly_mountains"
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user