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

@ -15,6 +15,6 @@ archives_base_name=better-end
patchouli_version = 55-FABRIC-SNAPSHOT patchouli_version = 55-FABRIC-SNAPSHOT
fabric_version = 0.42.1+1.17 fabric_version = 0.42.1+1.17
bclib_version = 0.5.2 bclib_version = 0.5.3
rei_version = 6.0.264-alpha rei_version = 6.0.264-alpha
canvas_version = 1.0.+ canvas_version = 1.0.+

View file

@ -3,8 +3,12 @@ package ru.betterend.integration;
import net.minecraft.core.MappedRegistry; import net.minecraft.core.MappedRegistry;
import net.minecraft.resources.ResourceKey; import net.minecraft.resources.ResourceKey;
import net.minecraft.world.level.biome.Biome; import net.minecraft.world.level.biome.Biome;
import net.minecraft.world.level.levelgen.GenerationStep.Decoration;
import ru.bclib.api.BiomeAPI; import ru.bclib.api.BiomeAPI;
import ru.bclib.api.TagAPI;
import ru.bclib.integration.ModIntegration; import ru.bclib.integration.ModIntegration;
import ru.bclib.world.features.BCLFeature;
import ru.betterend.registry.EndTags;
public class EnderscapeIntegration extends ModIntegration { public class EnderscapeIntegration extends ModIntegration {
public EnderscapeIntegration() { public EnderscapeIntegration() {
@ -26,5 +30,18 @@ public class EnderscapeIntegration extends ModIntegration {
BiomeAPI.registerEndLandBiome(biome); 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"));
} }
} }

View file

@ -45,7 +45,7 @@
"fabricloader": ">=0.11.6", "fabricloader": ">=0.11.6",
"fabric": ">=0.41.0", "fabric": ">=0.41.0",
"minecraft": ">=1.17", "minecraft": ">=1.17",
"bclib": ">=0.5.2" "bclib": ">=0.5.3"
}, },
"suggests": { "suggests": {
"byg": ">=1.1.3", "byg": ">=1.1.3",