From cdb1bb1b49cee152e4fb621096e344757d01951d Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 27 Jun 2022 16:10:52 +0200 Subject: [PATCH] re-added world gen stuff --- .../ellpeck/naturesaura/events/CommonEvents.java | 16 ---------------- .../forge/biome_modifier/aura_bloom.json | 6 ++++++ .../forge/biome_modifier/aura_cactus.json | 6 ++++++ .../forge/biome_modifier/aura_mushroom.json | 6 ++++++ .../biome_modifier/crimson_aura_mushroom.json | 6 ++++++ .../biome_modifier/warped_aura_mushroom.json | 6 ++++++ 6 files changed, 30 insertions(+), 16 deletions(-) create mode 100644 src/main/resources/data/naturesaura/forge/biome_modifier/aura_bloom.json create mode 100644 src/main/resources/data/naturesaura/forge/biome_modifier/aura_cactus.json create mode 100644 src/main/resources/data/naturesaura/forge/biome_modifier/aura_mushroom.json create mode 100644 src/main/resources/data/naturesaura/forge/biome_modifier/crimson_aura_mushroom.json create mode 100644 src/main/resources/data/naturesaura/forge/biome_modifier/warped_aura_mushroom.json diff --git a/src/main/java/de/ellpeck/naturesaura/events/CommonEvents.java b/src/main/java/de/ellpeck/naturesaura/events/CommonEvents.java index e8ffc561..5ae323aa 100644 --- a/src/main/java/de/ellpeck/naturesaura/events/CommonEvents.java +++ b/src/main/java/de/ellpeck/naturesaura/events/CommonEvents.java @@ -39,22 +39,6 @@ public class CommonEvents { private static final Method GET_LOADED_CHUNKS_METHOD = ObfuscationReflectionHelper.findMethod(ChunkMap.class, "m_140416_"); private static final ListMultimap PENDING_AURA_CHUNKS = ArrayListMultimap.create(); - // TODO apparently this changed a ton to some weird biome modifier thing - /*@SubscribeEvent - public void onBiomeLoad(BiomeLoadingEvent event) { - if (ModConfig.instance.auraBlooms.get()) { - event.getGeneration().addFeature(Decoration.VEGETAL_DECORATION, ModFeatures.Placed.AURA_BLOOM); - switch (event.getCategory()) { - case DESERT -> event.getGeneration().addFeature(Decoration.VEGETAL_DECORATION, ModFeatures.Placed.AURA_CACTUS); - case NETHER -> { - event.getGeneration().addFeature(Decoration.VEGETAL_DECORATION, ModFeatures.Placed.CRIMSON_AURA_MUSHROOM); - event.getGeneration().addFeature(Decoration.VEGETAL_DECORATION, ModFeatures.Placed.WARPED_AURA_MUSHROOM); - } - case MUSHROOM -> event.getGeneration().addFeature(Decoration.VEGETAL_DECORATION, ModFeatures.Placed.AURA_MUSHROOM); - } - } - }*/ - @SubscribeEvent public void onChunkCapsAttach(AttachCapabilitiesEvent event) { var chunk = event.getObject(); diff --git a/src/main/resources/data/naturesaura/forge/biome_modifier/aura_bloom.json b/src/main/resources/data/naturesaura/forge/biome_modifier/aura_bloom.json new file mode 100644 index 00000000..a290296f --- /dev/null +++ b/src/main/resources/data/naturesaura/forge/biome_modifier/aura_bloom.json @@ -0,0 +1,6 @@ +{ + "type": "forge:add_features", + "biomes": "#forge:is_overworld", + "features": "naturesaura:aura_bloom", + "step": "vegetal_decoration" +} \ No newline at end of file diff --git a/src/main/resources/data/naturesaura/forge/biome_modifier/aura_cactus.json b/src/main/resources/data/naturesaura/forge/biome_modifier/aura_cactus.json new file mode 100644 index 00000000..951d92ac --- /dev/null +++ b/src/main/resources/data/naturesaura/forge/biome_modifier/aura_cactus.json @@ -0,0 +1,6 @@ +{ + "type": "forge:add_features", + "biomes": "#forge:is_sandy", + "features": "naturesaura:aura_cactus", + "step": "vegetal_decoration" +} \ No newline at end of file diff --git a/src/main/resources/data/naturesaura/forge/biome_modifier/aura_mushroom.json b/src/main/resources/data/naturesaura/forge/biome_modifier/aura_mushroom.json new file mode 100644 index 00000000..15f85f32 --- /dev/null +++ b/src/main/resources/data/naturesaura/forge/biome_modifier/aura_mushroom.json @@ -0,0 +1,6 @@ +{ + "type": "forge:add_features", + "biomes": "#forge:is_mushroom", + "features": "naturesaura:aura_mushroom", + "step": "vegetal_decoration" +} \ No newline at end of file diff --git a/src/main/resources/data/naturesaura/forge/biome_modifier/crimson_aura_mushroom.json b/src/main/resources/data/naturesaura/forge/biome_modifier/crimson_aura_mushroom.json new file mode 100644 index 00000000..60e81816 --- /dev/null +++ b/src/main/resources/data/naturesaura/forge/biome_modifier/crimson_aura_mushroom.json @@ -0,0 +1,6 @@ +{ + "type": "forge:add_features", + "biomes": "#minecraft:is_nether", + "features": "naturesaura:crimson_aura_mushroom", + "step": "vegetal_decoration" +} \ No newline at end of file diff --git a/src/main/resources/data/naturesaura/forge/biome_modifier/warped_aura_mushroom.json b/src/main/resources/data/naturesaura/forge/biome_modifier/warped_aura_mushroom.json new file mode 100644 index 00000000..94ecf74f --- /dev/null +++ b/src/main/resources/data/naturesaura/forge/biome_modifier/warped_aura_mushroom.json @@ -0,0 +1,6 @@ +{ + "type": "forge:add_features", + "biomes": "#minecraft:is_nether", + "features": "naturesaura:warped_aura_mushroom", + "step": "vegetal_decoration" +} \ No newline at end of file