Enderscape ore tags
This commit is contained in:
parent
d8bad90731
commit
1cf6cb3880
3 changed files with 19 additions and 2 deletions
|
@ -15,6 +15,6 @@ archives_base_name=better-end
|
|||
|
||||
patchouli_version = 55-FABRIC-SNAPSHOT
|
||||
fabric_version = 0.42.1+1.17
|
||||
bclib_version = 0.5.2
|
||||
bclib_version = 0.5.3
|
||||
rei_version = 6.0.264-alpha
|
||||
canvas_version = 1.0.+
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
"fabricloader": ">=0.11.6",
|
||||
"fabric": ">=0.41.0",
|
||||
"minecraft": ">=1.17",
|
||||
"bclib": ">=0.5.2"
|
||||
"bclib": ">=0.5.3"
|
||||
},
|
||||
"suggests": {
|
||||
"byg": ">=1.1.3",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue