May 15, 20205 yr 20 minutes ago, Budschie said: @Ugdhar Thanks. How do I register my DimensionType with a deferred register? Here's and example It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".
May 15, 20205 yr Author @Novârch You just registered the ModDimension. Edited May 15, 20205 yr by Budschie
May 15, 20205 yr 1 minute ago, Budschie said: @Novârch You just registered the DimensionMod. 3 minutes ago, Novârch said: Here's and example Use DimensionType#byName with that (the ResourceLocation). Edited May 15, 20205 yr by Novârch It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".
May 15, 20205 yr 19 minutes ago, Budschie said: @Ugdhar Thanks. How do I register my DimensionType with a deferred register? Your DimensionType is returned when using the forge registerDimensionsEvent public static DimensionType MY_DIMENSION_TYPE; @SubscribeEvent public static void registerDimensions(RegisterDimensionsEvent event) { if(DimensionType.byName(resourceLocation) == null) MY_DIMENSION_TYPE = DimensionManager.registerDimension(resourceLocation, modDimension, null, true); }
May 15, 20205 yr Author @QuantumSoul That code snippet isn't up to date anymore. Look into my github for up-todate-code: https://github.com/Budschie/Deepnether-Mod By the way, I think the problem is my custom structure saving system... But I am not quite sure at the moment if that is really the issue.
May 15, 20205 yr Author I found my mistake: It were theses lines in my biome code: ConfiguredPlacement<CountRangeConfig> placement = Placement.COUNT_RANGE.configure(new CountRangeConfig(10, 0, 0, 140)); this.addFeature(Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(COMPRESSED_NETHERRACK, BlockInit.AMYLITHE_ORE.getDefaultState(), 6)).withPlacement(placement)); this.addFeature(Decoration.SURFACE_STRUCTURES, Features.DEEPNETHER_TEST.withPlacement(Placement.DUNGEONS.configure(new ChanceConfig(25))));
May 15, 20205 yr Author Thanks to everybody who replied, especially to @Ugdhar for encouraging me to use github.
May 15, 20205 yr 2 hours ago, Budschie said: @QuantumSoul That code snippet isn't up to date anymore. Look into my github for up-todate-code: https://github.com/Budschie/Deepnether-Mod By the way, I think the problem is my custom structure saving system... But I am not quite sure at the moment if that is really the issue. How did you do for the dimensiontype tho?
May 15, 20205 yr Author @QuantumSoul I found out that there is no deferred register of dimension types, so I use DimensionManager.registerOrGetDimension(DEEPNETHER_MOD_DIM.getId(), DEEPNETHER_MOD_DIM.get(), null, false);
May 15, 20205 yr 44 minutes ago, Budschie said: @QuantumSoul I found out that there is no deferred register of dimension types, so I use DimensionManager.registerOrGetDimension(DEEPNETHER_MOD_DIM.getId(), DEEPNETHER_MOD_DIM.get(), null, false); Isn't the same than what I sent ?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.