1.14.4
This commit is contained in:
parent
d0dedc6893
commit
50c13bafdc
3 changed files with 93 additions and 93 deletions
10
build.gradle
10
build.gradle
|
@ -77,12 +77,12 @@ license {
|
||||||
group = 'TechReborn'
|
group = 'TechReborn'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
minecraft "com.mojang:minecraft:1.14.3"
|
minecraft "com.mojang:minecraft:1.14.4"
|
||||||
mappings "net.fabricmc:yarn:1.14.3+build.9"
|
mappings "net.fabricmc:yarn:1.14.4+build.2"
|
||||||
modCompile "net.fabricmc:fabric-loader:0.4.8+build.155"
|
modCompile "net.fabricmc:fabric-loader:0.4.8+build.157"
|
||||||
|
|
||||||
//Fabric api
|
//Fabric api
|
||||||
modCompile "net.fabricmc.fabric-api:fabric-api:0.3.0+build.187"
|
modCompile "net.fabricmc.fabric-api:fabric-api:0.3.0+build.200"
|
||||||
|
|
||||||
modCompile "io.github.prospector.modmenu:ModMenu:1.5.4-85"
|
modCompile "io.github.prospector.modmenu:ModMenu:1.5.4-85"
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ dependencies {
|
||||||
// transitive = false
|
// transitive = false
|
||||||
// }
|
// }
|
||||||
|
|
||||||
compile 'RebornCore:RebornCore-1.14.3:4.0.0.14'
|
compile 'RebornCore:RebornCore-1.14.4:4.0.0.14'
|
||||||
|
|
||||||
compileOnly "com.google.code.findbugs:jsr305:+"
|
compileOnly "com.google.code.findbugs:jsr305:+"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
rootProject.name = "TechReborn-1.14.3"
|
rootProject.name = "TechReborn-1.14.4"
|
|
@ -1,88 +1,88 @@
|
||||||
/*
|
/*
|
||||||
* This file is part of TechReborn, licensed under the MIT License (MIT).
|
* This file is part of TechReborn, licensed under the MIT License (MIT).
|
||||||
*
|
*
|
||||||
* Copyright (c) 2018 TechReborn
|
* Copyright (c) 2018 TechReborn
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
* in the Software without restriction, including without limitation the rights
|
* in the Software without restriction, including without limitation the rights
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
* copies of the Software, and to permit persons to whom the Software is
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
* furnished to do so, subject to the following conditions:
|
* furnished to do so, subject to the following conditions:
|
||||||
*
|
*
|
||||||
* The above copyright notice and this permission notice shall be included in all
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
* copies or substantial portions of the Software.
|
* copies or substantial portions of the Software.
|
||||||
*
|
*
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package techreborn.world;
|
package techreborn.world;
|
||||||
|
|
||||||
import net.minecraft.util.registry.Registry;
|
import net.minecraft.util.registry.Registry;
|
||||||
import net.minecraft.world.biome.Biome;
|
import net.minecraft.world.biome.Biome;
|
||||||
import net.minecraft.world.biome.Biome.Category;
|
import net.minecraft.world.biome.Biome.Category;
|
||||||
import net.minecraft.world.gen.GenerationStep;
|
import net.minecraft.world.gen.GenerationStep;
|
||||||
import net.minecraft.world.gen.decorator.CountExtraChanceDecoratorConfig;
|
import net.minecraft.world.gen.decorator.CountExtraChanceDecoratorConfig;
|
||||||
import net.minecraft.world.gen.decorator.Decorator;
|
import net.minecraft.world.gen.decorator.Decorator;
|
||||||
import net.minecraft.world.gen.decorator.RangeDecoratorConfig;
|
import net.minecraft.world.gen.decorator.RangeDecoratorConfig;
|
||||||
import net.minecraft.world.gen.feature.DefaultFeatureConfig;
|
import net.minecraft.world.gen.feature.DefaultFeatureConfig;
|
||||||
import net.minecraft.world.gen.feature.Feature;
|
import net.minecraft.world.gen.feature.Feature;
|
||||||
import net.minecraft.world.gen.feature.FeatureConfig;
|
import net.minecraft.world.gen.feature.FeatureConfig;
|
||||||
import net.minecraft.world.gen.feature.OreFeatureConfig;
|
import net.minecraft.world.gen.feature.OreFeatureConfig;
|
||||||
import net.minecraft.world.gen.feature.OreFeatureConfig.Target;
|
import net.minecraft.world.gen.feature.OreFeatureConfig.Target;
|
||||||
import techreborn.init.TRContent;
|
import techreborn.init.TRContent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author drcrazy
|
* @author drcrazy
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class WorldGenerator {
|
public class WorldGenerator {
|
||||||
|
|
||||||
// public static final Predicate<IBlockState> IS_ENDSTONE = (state) -> {
|
// public static final Predicate<IBlockState> IS_ENDSTONE = (state) -> {
|
||||||
// return state != null && (state.getBlock() == Blocks.END_STONE);
|
// return state != null && (state.getBlock() == Blocks.END_STONE);
|
||||||
// };
|
// };
|
||||||
|
|
||||||
public static void initBiomeFeatures() {
|
public static void initBiomeFeatures() {
|
||||||
for (Biome biome : Registry.BIOME) {
|
for (Biome biome : Registry.BIOME) {
|
||||||
if (biome.getCategory() == Category.NETHER) {
|
if (biome.getCategory() == Category.NETHER) {
|
||||||
addOre(biome, OreFeatureConfig.Target.NETHERRACK, TRContent.Ores.CINNABAR);
|
addOre(biome, OreFeatureConfig.Target.NETHERRACK, TRContent.Ores.CINNABAR);
|
||||||
addOre(biome, OreFeatureConfig.Target.NETHERRACK, TRContent.Ores.PYRITE);
|
addOre(biome, OreFeatureConfig.Target.NETHERRACK, TRContent.Ores.PYRITE);
|
||||||
addOre(biome, OreFeatureConfig.Target.NETHERRACK, TRContent.Ores.SPHALERITE);
|
addOre(biome, OreFeatureConfig.Target.NETHERRACK, TRContent.Ores.SPHALERITE);
|
||||||
|
|
||||||
} else if (biome.getCategory() == Category.THEEND) {
|
} else if (biome.getCategory() == Category.THEEND) {
|
||||||
// addOre(biome, IS_ENDSTONE, TRContent.Ores.PERIDOT);
|
// addOre(biome, IS_ENDSTONE, TRContent.Ores.PERIDOT);
|
||||||
// addOre(biome, IS_ENDSTONE, TRContent.Ores.SHELDONITE);
|
// addOre(biome, IS_ENDSTONE, TRContent.Ores.SHELDONITE);
|
||||||
// addOre(biome, IS_ENDSTONE, TRContent.Ores.SODALITE);
|
// addOre(biome, IS_ENDSTONE, TRContent.Ores.SODALITE);
|
||||||
// addOre(biome, IS_ENDSTONE, TRContent.Ores.TUNGSTEN);
|
// addOre(biome, IS_ENDSTONE, TRContent.Ores.TUNGSTEN);
|
||||||
} else {
|
} else {
|
||||||
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.BAUXITE);
|
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.BAUXITE);
|
||||||
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.COPPER);
|
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.COPPER);
|
||||||
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.GALENA);
|
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.GALENA);
|
||||||
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.IRIDIUM);
|
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.IRIDIUM);
|
||||||
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.LEAD);
|
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.LEAD);
|
||||||
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.RUBY);
|
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.RUBY);
|
||||||
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.SAPPHIRE);
|
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.SAPPHIRE);
|
||||||
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.SILVER);
|
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.SILVER);
|
||||||
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.TIN);
|
addOre(biome, OreFeatureConfig.Target.NATURAL_STONE, TRContent.Ores.TIN);
|
||||||
if (biome.getCategory() == Category.FOREST || biome.getCategory() == Category.TAIGA) {
|
if (biome.getCategory() == Category.FOREST || biome.getCategory() == Category.TAIGA) {
|
||||||
biome.addFeature(GenerationStep.Feature.VEGETAL_DECORATION,
|
biome.addFeature(GenerationStep.Feature.VEGETAL_DECORATION,
|
||||||
Biome.configureFeature(new RubberTreeFeature(DefaultFeatureConfig::deserialize, false),
|
Biome.configureFeature(new RubberTreeFeature(DefaultFeatureConfig::deserialize, false),
|
||||||
FeatureConfig.DEFAULT, Decorator.COUNT_EXTRA_HEIGHTMAP,
|
FeatureConfig.DEFAULT, Decorator.COUNT_EXTRA_HEIGHTMAP,
|
||||||
new CountExtraChanceDecoratorConfig(10, 0.1F, 1)));
|
new CountExtraChanceDecoratorConfig(10, 0.1F, 1)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void addOre(Biome biome, Target canReplaceIn, TRContent.Ores ore) {
|
private static void addOre(Biome biome, Target canReplaceIn, TRContent.Ores ore) {
|
||||||
biome.addFeature(GenerationStep.Feature.UNDERGROUND_ORES, Biome.configureFeature(Feature.ORE,
|
biome.addFeature(GenerationStep.Feature.UNDERGROUND_ORES, Biome.configureFeature(Feature.ORE,
|
||||||
new OreFeatureConfig(canReplaceIn, ore.block.getDefaultState(), ore.veinSize), Decorator.COUNT_RANGE,
|
new OreFeatureConfig(canReplaceIn, ore.block.getDefaultState(), ore.veinSize), Decorator.COUNT_RANGE,
|
||||||
new RangeDecoratorConfig(ore.veinsPerChunk, ore.minY, ore.minY, ore.maxY)));
|
new RangeDecoratorConfig(ore.veinsPerChunk, ore.minY, ore.minY, ore.maxY)));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue