Advertisement
Guest User

NecromodConfiguredStructures

a guest
Feb 5th, 2023
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. public class NecromodConfiguredStructures {
  2.  
  3.     public static StructureFeature<?, ?> CONFIGURED_SECRET_ROOM = NecromodStructures.SECRET_ROOM.get().configured(IFeatureConfig.NONE);
  4.  
  5.     public static void registerConfiguredStructures() {
  6.         Registry<StructureFeature<?, ?>> registry = WorldGenRegistries.CONFIGURED_STRUCTURE_FEATURE;
  7.         Registry.register(registry, new ResourceLocation(Necromod.MODID, "configured_secret_room"), CONFIGURED_SECRET_ROOM);
  8.  
  9.         FlatGenerationSettings.STRUCTURE_FEATURES.put(NecromodStructures.SECRET_ROOM.get(), CONFIGURED_SECRET_ROOM);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement