Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Overhaul vein infrastructure to work with biome tags * Adjust datagen to match * Change text generation for the manual page on mineral veins * Reorder data-creation for mineral veins No changes to content * Add new mineral vein: Banded Iron * Add new mineral vein: Lazulitic Intrusion * Add new mineral vein: Alluvial Sift * Rebalance a variety of veins to make them more usable, including more ores and less sulfur * Drop old todo note * Update Pentandite to be rich in nickel and include platinum and osmium if present. Drop Cooperite as it was the old platinum vein * Update Wolframite to be more focused on tungsten and include tin if present. Drop Cassiterite as a result. * Fix biome condition for Beryl * Add biome tags for specific IE veins * Limit Silt, Claypan and Seabed to specific biomes * Add manual documentation for biome tags * Remove gravel from silt veins, instead increasing it in the spoils * Remove dimension keys, they are no longer needed * Allow survey tools to be used more easily in the nether * Simplify codec for BiomeTagPredicates * Change ancient seabed to use is_beach tag * Change localization for biome tags * Change datagen for minerals to allow varargs * Add a forge-namespace tag for swamps * Put Silt in swamps and oceans as well * Add Rich Auricupride in mesa biomes, reduce gold content in normal Auricupride * Fix datagen after rebase
- Loading branch information
1 parent
5146778
commit f49f7d5
Showing
40 changed files
with
764 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
src/datagen/java/blusunrize/immersiveengineering/data/BiomeTags.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* BluSunrize | ||
* Copyright (c) 2022 | ||
* | ||
* This code is licensed under "Blu's License of Common Sense" | ||
* Details can be found in the license file in the root folder of this project | ||
* | ||
*/ | ||
|
||
package blusunrize.immersiveengineering.data; | ||
|
||
import blusunrize.immersiveengineering.api.IETags; | ||
import blusunrize.immersiveengineering.api.Lib; | ||
import net.minecraft.core.HolderLookup.Provider; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.data.tags.BiomeTagsProvider; | ||
import net.minecraft.world.level.biome.Biomes; | ||
import net.neoforged.neoforge.common.data.ExistingFileHelper; | ||
|
||
import javax.annotation.Nonnull; | ||
import javax.annotation.Nullable; | ||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class BiomeTags extends BiomeTagsProvider | ||
{ | ||
|
||
public BiomeTags(PackOutput output, CompletableFuture<Provider> lookupProvider, @Nullable ExistingFileHelper existingFileHelper) | ||
{ | ||
super(output, lookupProvider, Lib.MODID, existingFileHelper); | ||
} | ||
|
||
@Override | ||
protected void addTags(Provider p_255894_) | ||
{ | ||
// swamps | ||
tag(IETags.is_swamp) | ||
.add(Biomes.SWAMP) | ||
.add(Biomes.MANGROVE_SWAMP); | ||
// deserts, plains, mesas, savannas, ice plains | ||
tag(IETags.generateClaypan) | ||
.add(Biomes.DESERT) | ||
.add(Biomes.PLAINS) | ||
.add(Biomes.SUNFLOWER_PLAINS) | ||
.add(Biomes.BADLANDS) | ||
.add(Biomes.SAVANNA) | ||
.add(Biomes.SNOWY_PLAINS); | ||
// swamps, beaches, coral reefs, stony shore | ||
tag(IETags.generateSeabed) | ||
.addTag(IETags.is_swamp) | ||
.addTag(net.minecraft.tags.BiomeTags.IS_BEACH) | ||
.add(Biomes.WARM_OCEAN) | ||
.add(Biomes.STONY_SHORE); | ||
} | ||
|
||
|
||
@Nonnull | ||
@Override | ||
public String getName() | ||
{ | ||
return "IE biome tags"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.