-
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix worldgen with terralith (and maybe others)
fixes #5039
- Loading branch information
Showing
30 changed files
with
389 additions
and
2 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/cyclops_cave.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:cyclops_cave", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/fire_dragon_cave.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:fire_dragon_cave", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/fire_dragon_roost.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:fire_dragon_roost", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
19 changes: 19 additions & 0 deletions
19
src/generated/resources/data/iceandfire/worldgen/placed_feature/fire_lily.json
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,19 @@ | ||
{ | ||
"feature": "iceandfire:fire_lily", | ||
"placement": [ | ||
{ | ||
"type": "minecraft:rarity_filter", | ||
"chance": 32 | ||
}, | ||
{ | ||
"type": "minecraft:in_square" | ||
}, | ||
{ | ||
"type": "minecraft:heightmap", | ||
"heightmap": "MOTION_BLOCKING" | ||
}, | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
19 changes: 19 additions & 0 deletions
19
src/generated/resources/data/iceandfire/worldgen/placed_feature/frost_lily.json
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,19 @@ | ||
{ | ||
"feature": "iceandfire:lightning_lily", | ||
"placement": [ | ||
{ | ||
"type": "minecraft:rarity_filter", | ||
"chance": 32 | ||
}, | ||
{ | ||
"type": "minecraft:in_square" | ||
}, | ||
{ | ||
"type": "minecraft:heightmap", | ||
"heightmap": "MOTION_BLOCKING" | ||
}, | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/hydra_cave.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:hydra_cave", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/ice_dragon_cave.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:ice_dragon_cave", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/ice_dragon_roost.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:ice_dragon_roost", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/lightning_dragon_cave.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:lightning_dragon_cave", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/lightning_dragon_roost.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:lightning_dragon_roost", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
19 changes: 19 additions & 0 deletions
19
src/generated/resources/data/iceandfire/worldgen/placed_feature/lightning_lily.json
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,19 @@ | ||
{ | ||
"feature": "iceandfire:frost_lily", | ||
"placement": [ | ||
{ | ||
"type": "minecraft:rarity_filter", | ||
"chance": 32 | ||
}, | ||
{ | ||
"type": "minecraft:in_square" | ||
}, | ||
{ | ||
"type": "minecraft:heightmap", | ||
"heightmap": "MOTION_BLOCKING" | ||
}, | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/myrmex_hive_desert.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:myrmex_hive_desert", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/myrmex_hive_jungle.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:myrmex_hive_jungle", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/pixie_village.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:pixie_village", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/siren_island.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:siren_island", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/spawn_death_worm.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:spawn_death_worm", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
...nerated/resources/data/iceandfire/worldgen/placed_feature/spawn_dragon_skeleton_fire.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:spawn_dragon_skeleton_fire", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
...enerated/resources/data/iceandfire/worldgen/placed_feature/spawn_dragon_skeleton_ice.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:spawn_dragon_skeleton_ice", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
...ed/resources/data/iceandfire/worldgen/placed_feature/spawn_dragon_skeleton_lightning.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:spawn_dragon_skeleton_lightning", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/spawn_hippocampus.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:spawn_hippocampus", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/spawn_sea_serpent.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:spawn_sea_serpent", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/spawn_stymphalian_bird.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:spawn_stymphalian_bird", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
src/generated/resources/data/iceandfire/worldgen/placed_feature/spawn_wandering_cyclops.json
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,8 @@ | ||
{ | ||
"feature": "iceandfire:spawn_wandering_cyclops", | ||
"placement": [ | ||
{ | ||
"type": "iceandfire:biome_custom" | ||
} | ||
] | ||
} |
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
89 changes: 89 additions & 0 deletions
89
src/main/java/com/github/alexthe666/iceandfire/datagen/IafPlacedFeatures.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,89 @@ | ||
package com.github.alexthe666.iceandfire.datagen; | ||
|
||
import com.github.alexthe666.iceandfire.IceAndFire; | ||
import com.github.alexthe666.iceandfire.world.CustomBiomeFilter; | ||
import com.google.gson.JsonElement; | ||
import net.minecraft.core.Registry; | ||
import net.minecraft.data.worldgen.placement.PlacementUtils; | ||
import net.minecraft.resources.RegistryOps; | ||
import net.minecraft.resources.ResourceKey; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.level.levelgen.VerticalAnchor; | ||
import net.minecraft.world.level.levelgen.placement.*; | ||
|
||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public final class IafPlacedFeatures { | ||
public static final ResourceKey<PlacedFeature> PLACED_FIRE_DRAGON_ROOST = registerKey("fire_dragon_roost"); | ||
public static final ResourceKey<PlacedFeature> PLACED_ICE_DRAGON_ROOST = registerKey("ice_dragon_roost"); | ||
public static final ResourceKey<PlacedFeature> PLACED_LIGHTNING_DRAGON_ROOST = registerKey("lightning_dragon_roost"); | ||
public static final ResourceKey<PlacedFeature> PLACED_FIRE_DRAGON_CAVE = registerKey("fire_dragon_cave"); | ||
public static final ResourceKey<PlacedFeature> PLACED_ICE_DRAGON_CAVE = registerKey("ice_dragon_cave"); | ||
public static final ResourceKey<PlacedFeature> PLACED_LIGHTNING_DRAGON_CAVE = registerKey("lightning_dragon_cave"); | ||
public static final ResourceKey<PlacedFeature> PLACED_CYCLOPS_CAVE = registerKey("cyclops_cave"); | ||
public static final ResourceKey<PlacedFeature> PLACED_PIXIE_VILLAGE = registerKey("pixie_village"); | ||
public static final ResourceKey<PlacedFeature> PLACED_SIREN_ISLAND = registerKey("siren_island"); | ||
public static final ResourceKey<PlacedFeature> PLACED_HYDRA_CAVE = registerKey("hydra_cave"); | ||
public static final ResourceKey<PlacedFeature> PLACED_MYRMEX_HIVE_DESERT = registerKey("myrmex_hive_desert"); | ||
public static final ResourceKey<PlacedFeature> PLACED_MYRMEX_HIVE_JUNGLE = registerKey("myrmex_hive_jungle"); | ||
public static final ResourceKey<PlacedFeature> PLACED_SPAWN_DEATH_WORM = registerKey("spawn_death_worm"); | ||
public static final ResourceKey<PlacedFeature> PLACED_SPAWN_DRAGON_SKELETON_L = registerKey("spawn_dragon_skeleton_lightning"); | ||
public static final ResourceKey<PlacedFeature> PLACED_SPAWN_DRAGON_SKELETON_F = registerKey("spawn_dragon_skeleton_fire"); | ||
public static final ResourceKey<PlacedFeature> PLACED_SPAWN_DRAGON_SKELETON_I = registerKey("spawn_dragon_skeleton_ice"); | ||
public static final ResourceKey<PlacedFeature> PLACED_SPAWN_HIPPOCAMPUS = registerKey("spawn_hippocampus"); | ||
public static final ResourceKey<PlacedFeature> PLACED_SPAWN_SEA_SERPENT = registerKey("spawn_sea_serpent"); | ||
public static final ResourceKey<PlacedFeature> PLACED_SPAWN_STYMPHALIAN_BIRD = registerKey("spawn_stymphalian_bird"); | ||
public static final ResourceKey<PlacedFeature> PLACED_SPAWN_WANDERING_CYCLOPS = registerKey("spawn_wandering_cyclops"); | ||
public static final ResourceKey<PlacedFeature> PLACED_SILVER_ORE = registerKey("silver_ore"); | ||
public static final ResourceKey<PlacedFeature> PLACED_SAPPHIRE_ORE = registerKey("sapphire_ore"); | ||
public static final ResourceKey<PlacedFeature> PLACED_FIRE_LILY = registerKey("fire_lily"); | ||
public static final ResourceKey<PlacedFeature> PLACED_LIGHTNING_LILY = registerKey("lightning_lily"); | ||
public static final ResourceKey<PlacedFeature> PLACED_FROST_LILY = registerKey("frost_lily"); | ||
|
||
public static ResourceKey<PlacedFeature> registerKey(String name) { | ||
return ResourceKey.create(Registry.PLACED_FEATURE_REGISTRY, new ResourceLocation(IceAndFire.MODID, name)); | ||
} | ||
|
||
private static List<PlacementModifier> orePlacement(PlacementModifier pCountPlacement, PlacementModifier pHeightRange) { | ||
return List.of(pCountPlacement, InSquarePlacement.spread(), pHeightRange, BiomeFilter.biome()); | ||
} | ||
|
||
private static List<PlacementModifier> commonOrePlacement(int pCount, PlacementModifier pHeightRange) { | ||
return orePlacement(CountPlacement.of(pCount), pHeightRange); | ||
} | ||
|
||
public static Map<ResourceLocation, PlacedFeature> gather(RegistryOps<JsonElement> registryOps) { | ||
Map<ResourceLocation, PlacedFeature> entries = new HashMap<>(); | ||
|
||
// Referencing the previously gathered Configured Features causes their data to also appear in the Placed Feature .json | ||
entries.put(PLACED_FIRE_DRAGON_ROOST.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.FIRE_DRAGON_ROOST), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_ICE_DRAGON_ROOST.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.ICE_DRAGON_ROOST), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_LIGHTNING_DRAGON_ROOST.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.LIGHTNING_DRAGON_ROOST), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_FIRE_DRAGON_CAVE.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.FIRE_DRAGON_CAVE), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_ICE_DRAGON_CAVE.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.ICE_DRAGON_CAVE), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_LIGHTNING_DRAGON_CAVE.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.LIGHTNING_DRAGON_CAVE), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_CYCLOPS_CAVE.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.CYCLOPS_CAVE), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_PIXIE_VILLAGE.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.PIXIE_VILLAGE), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_SIREN_ISLAND.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.SIREN_ISLAND), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_HYDRA_CAVE.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.HYDRA_CAVE), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_MYRMEX_HIVE_DESERT.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.MYRMEX_HIVE_DESERT), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_MYRMEX_HIVE_JUNGLE.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.MYRMEX_HIVE_JUNGLE), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_SPAWN_DEATH_WORM.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.SPAWN_DEATH_WORM), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_SPAWN_DRAGON_SKELETON_L.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.SPAWN_DRAGON_SKELETON_L), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_SPAWN_DRAGON_SKELETON_F.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.SPAWN_DRAGON_SKELETON_F), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_SPAWN_DRAGON_SKELETON_I.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.SPAWN_DRAGON_SKELETON_I), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_SPAWN_HIPPOCAMPUS.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.SPAWN_HIPPOCAMPUS), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_SPAWN_SEA_SERPENT.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.SPAWN_SEA_SERPENT), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_SPAWN_STYMPHALIAN_BIRD.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.SPAWN_STYMPHALIAN_BIRD), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_SPAWN_WANDERING_CYCLOPS.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.SPAWN_WANDERING_CYCLOPS), List.of(CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_SILVER_ORE.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.SILVER_ORE), commonOrePlacement(16, HeightRangePlacement.triangle(VerticalAnchor.absolute(-16), VerticalAnchor.absolute(112))))); | ||
entries.put(PLACED_SAPPHIRE_ORE.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.SAPPHIRE_ORE), commonOrePlacement(4, HeightRangePlacement.triangle(VerticalAnchor.absolute(-16), VerticalAnchor.absolute(112))))); | ||
entries.put(PLACED_FIRE_LILY.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.FIRE_LILY), List.of(RarityFilter.onAverageOnceEvery(32), InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_LIGHTNING_LILY.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.FROST_LILY), List.of(RarityFilter.onAverageOnceEvery(32), InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, CustomBiomeFilter.biome()))); | ||
entries.put(PLACED_FROST_LILY.location(), new PlacedFeature(registryOps.registry(Registry.CONFIGURED_FEATURE_REGISTRY).get().getOrCreateHolderOrThrow(IafConfiguredFeatures.LIGHTNING_LILY), List.of(RarityFilter.onAverageOnceEvery(32), InSquarePlacement.spread(), PlacementUtils.HEIGHTMAP, CustomBiomeFilter.biome()))); | ||
|
||
return entries; | ||
} | ||
} |
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.