Enderscape ore tags

This commit is contained in:
paulevsGitch 2021-11-22 17:22:07 +03:00
parent d8bad90731
commit 1cf6cb3880
3 changed files with 19 additions and 2 deletions

View file

@ -3,8 +3,12 @@ package ru.betterend.integration;
import net.minecraft.core.MappedRegistry;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.level.biome.Biome;
import net.minecraft.world.level.levelgen.GenerationStep.Decoration;
import ru.bclib.api.BiomeAPI;
import ru.bclib.api.TagAPI;
import ru.bclib.integration.ModIntegration;
import ru.bclib.world.features.BCLFeature;
import ru.betterend.registry.EndTags;
public class EnderscapeIntegration extends ModIntegration {
public EnderscapeIntegration() {
@ -26,5 +30,18 @@ public class EnderscapeIntegration extends ModIntegration {
BiomeAPI.registerEndLandBiome(biome);
}
});
BCLFeature scatteredShadowQuartzOre = getFeature("scattered_shadow_quartz_ore", Decoration.UNDERGROUND_DECORATION);
BCLFeature voidNebuliteOre = getFeature("void_nebulite_ore", Decoration.UNDERGROUND_DECORATION);
BCLFeature nebuliteOre = getFeature("nebulite_ore", Decoration.UNDERGROUND_DECORATION);
BiomeAPI.registerEndBiomeModification((biomeID, biome) -> {
if (!biomeID.getNamespace().equals("enderscape")) {
BiomeAPI.addBiomeFeatures(biome, scatteredShadowQuartzOre, voidNebuliteOre, nebuliteOre);
}
});
TagAPI.addTag(TagAPI.BLOCK_GEN_TERRAIN, getBlock("nebulite_ore"));
TagAPI.addTag(TagAPI.BLOCK_GEN_TERRAIN, getBlock("shadow_quartz_ore"));
}
}