From 7ed0a28843d1140896042885de08980a8889c4c2 Mon Sep 17 00:00:00 2001 From: gnembon Date: Wed, 15 Apr 2020 12:56:10 -0300 Subject: [PATCH] 20w16a, added ruined portals and bastion remnants structures --- gradle.properties | 4 ++-- src/main/java/carpet/helpers/FeatureGenerator.java | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index a859cd19..7373cd44 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,8 +4,8 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/use # or better: https://modmuss50.me/fabric.html - minecraft_version=20w15a - yarn_mappings=20w15a+build.7 + minecraft_version=20w16a + yarn_mappings=20w16a+build.1 loader_version=0.8.2+build.194 # Mod Properties diff --git a/src/main/java/carpet/helpers/FeatureGenerator.java b/src/main/java/carpet/helpers/FeatureGenerator.java index 076290a4..d791fbbf 100644 --- a/src/main/java/carpet/helpers/FeatureGenerator.java +++ b/src/main/java/carpet/helpers/FeatureGenerator.java @@ -148,6 +148,8 @@ public class FeatureGenerator structureToFeature.put("Igloo", Collections.singletonList("igloo")); structureToFeature.put("Fortress", Collections.singletonList("fortress")); structureToFeature.put("Nether_Fossil", Collections.singletonList("nether_fossil")); + structureToFeature.put("Bastion_Remnant", Collections.singletonList("bastion_remnant")); + structureToFeature.put("Ruined_Portal", Collections.singletonList("ruined_portal")); structureToFeature.forEach((key, value) -> value.forEach(el -> featureToStructure.put(el, key))); } @@ -192,6 +194,8 @@ public class FeatureGenerator put("village_taiga", gridCustomStructure(Feature.VILLAGE, new VillageFeatureConfig("village/taiga/town_centers", 6), Biomes.PLAINS)); put("village_snowy", gridCustomStructure(Feature.VILLAGE, new VillageFeatureConfig("village/snowy/town_centers", 6), Biomes.PLAINS)); put("nether_fossil", ((StructureFeatureInterface)Feature.NETHER_FOSSIL)::gridAnywhere); + put("bastion_remnant", ((StructureFeatureInterface)Feature.field_23997)::gridAnywhere); + put("ruined_portal", ((StructureFeatureInterface)Feature.field_23996)::gridAnywhere); }}; @@ -319,6 +323,9 @@ public class FeatureGenerator put("village_taiga", spawnCustomStructure(Feature.VILLAGE, new VillageFeatureConfig("village/taiga/town_centers", 6), Biomes.PLAINS)); put("village_snowy", spawnCustomStructure(Feature.VILLAGE, new VillageFeatureConfig("village/snowy/town_centers", 6), Biomes.PLAINS)); put("nether_fossil", ((StructureFeatureInterface)Feature.NETHER_FOSSIL)::plopAnywhere); + put("bastion_remnant", ((StructureFeatureInterface)Feature.field_23997)::plopAnywhere); + put("ruined_portal", ((StructureFeatureInterface)Feature.field_23996)::plopAnywhere); + }}; }