Skip to content

Commit

Permalink
Add New PokeCenter
Browse files Browse the repository at this point in the history
  • Loading branch information
JT122406 committed Mar 28, 2024
1 parent 933b325 commit d6e13a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,7 @@ public interface GenerationsStructuresKeys {

/** Villages Structure ResourceKeys **/
ResourceKey<Structure> PLAINS_POKEMART_1 = createKey("village/plains/pokemart_1");

/**
* Holds the ResourceKeys for the village roads.
*/
interface GenerationsStreetKeys {
ResourceKey<Structure> POKE_STREET = createKey("streets/poke_street");
}
ResourceKey<Structure> PLAINS_POKECENTER_1 = createKey("village/plains/pokecenter_1");

/**
* Creates a ResourceKey for the structure.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.mojang.datafixers.util.Pair;
import generations.gg.generations.structures.generationsstructures.GenerationsStructures;
import generations.gg.generations.structures.generationsstructures.config.Config;
import generations.gg.generations.structures.generationsstructures.processors.GenerationsProcessorLists;
import generations.gg.generations.structures.generationsstructures.structures.GenerationsStructuresKeys;
import net.minecraft.core.Holder;
import net.minecraft.core.Registry;
Expand Down Expand Up @@ -63,8 +64,9 @@ public static void addStructuresToVillages(MinecraftServer server) {
if (!config.AllowStructuresInVillages) return;
GenerationsStructures.LOGGER.info("Adding structures to villages");
RegistryAccess.Frozen serverRegistry = server.registryAccess();
//addBuildingToPool(serverRegistry, getPoolRL("plains/streets"), ProcessorLists.STREET_PLAINS, new ResourceLocation("village/plains/streets/straight_05"), StructureTemplatePool.Projection.TERRAIN_MATCHING, 3000);
addBuildingToPool(serverRegistry, getPoolRL("plains/houses"), ProcessorLists.EMPTY, GenerationsStructuresKeys.PLAINS_POKEMART_1.location(), StructureTemplatePool.Projection.RIGID, 5);
addBuildingToPool(serverRegistry, getPoolRL("plains/streets"), ProcessorLists.STREET_PLAINS, new ResourceLocation("village/plains/streets/straight_05"), StructureTemplatePool.Projection.TERRAIN_MATCHING, 10);
addBuildingToPool(serverRegistry, getPoolRL("plains/houses"), ProcessorLists.EMPTY, GenerationsStructuresKeys.PLAINS_POKEMART_1.location(), StructureTemplatePool.Projection.RIGID, 10);
addBuildingToPool(serverRegistry, getPoolRL("plains/houses"), ProcessorLists.EMPTY, GenerationsStructuresKeys.PLAINS_POKECENTER_1.location(), StructureTemplatePool.Projection.RIGID, 10);
//addBuildingToPool(serverRegistry, getPoolRL("desert/streets"), ProcessorLists.EMPTY, GenerationsStructuresKeys.GenerationsStreetKeys.POKE_STREET.location(), StructureTemplatePool.Projection.TERRAIN_MATCHING, 3);
//addBuildingToPool(serverRegistry, getPoolRL("savanna/streets"), ProcessorLists.STREET_SAVANNA, GenerationsStructuresKeys.GenerationsStreetKeys.POKE_STREET.location(), StructureTemplatePool.Projection.TERRAIN_MATCHING, 3);
//addBuildingToPool(serverRegistry, getPoolRL("snowy/streets"), ProcessorLists.STREET_SNOWY_OR_TAIGA, GenerationsStructuresKeys.GenerationsStreetKeys.POKE_STREET.location(), StructureTemplatePool.Projection.TERRAIN_MATCHING, 3);
Expand Down
Binary file not shown.

0 comments on commit d6e13a3

Please sign in to comment.