Jump to content

MkUltra

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by MkUltra

  1. Hey Champion, Thanks for the help so far i been looking into the Features class. Here is an example of ore_iron from that class. I am just struggling with how to implement this with the forge hook of BiomeloadingEvent is there as i wouldn't want to use biome.func_242427 / "addFeature" ? public static final ConfiguredFeature<?, ?> field_243898_br = func_243968_a("ore_iron", Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.field_241882_a, Features.States.field_244046_aj, 9)).func_242733_d(64).func_242728_a().func_242731_b(20));
  2. removed second post same as above.
  3. Hey i have been doing the same i been working backwards to find all the different inputs of the "boime.addfeature" functionality. Sorry if i am going at this wrong... i am new to coding in java. Here is what i found. private static void genOre(Biome biome, int count, int bottomOffset, int topOffset, int max, RuleTest filler, BlockState defualtBlockstate,int size){ IPlacementConfig range =; ConfiguredPlacement config = Placement.field_242903_g.configure(range); OreFeatureConfig feature = new OreFeatureConfig(filler, defualtBlockstate, size); biome.func_242427_a(GenerationStage.Decoration.UNDERGROUND_ORES,Feature.ORE.withConfiguration(feature).withPlacement(config)); } } So firstly biome.addFeature is func_242427 in 1.16.3 ( I don't know if this is the same for you but it is what i have) it takes in the generation stage which is same as the video. Then the Feature.Ore.Oreconfig(feature) which is same as the video, as well as the with placement which is the same as the video. But CountRangeConfig functionality probably has changed to something else like the biome.addFeature has change to func_242427 (ignore the IPlacementConfig i haven't looked into it yet but i am going through the code of everything related to withPlacement). Sadly i have to call it a day before i worked out what range is needed to be I hope this help you or someone else find the solution to this or just teach me i am doing it wrong for a vaild reason. If you have further questions please ask i will get back as soon as i can.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.