Jump to content

zlappedx3

Members
  • Posts

    157
  • Joined

  • Last visited

Posts posted by zlappedx3

  1. 1. Pass the ServerLevel parameter into factory().

    2. Call the getDataStorage() method within ServerLevel.

    3. Call the computeIfAbsent() method within the ServerLevel::getDataStorage() method.

    4. Pass the new SavedData.Factory<BeaconData>(BeaconData::new, BeaconData::load, DataFixTypes.LEVEL), yourmodID parameters into your computeIfAbsent() method.

    5. Return it out as the factory() method.

  2. On 6/2/2023 at 7:50 PM, ChampionAsh5357 said:

    Can you define method that has a parameter in this context? Do you mean your registry object holds a configured feature instance? If so, then your registry must be a datapack registry.

    It seems like I made a slight mistake. Now I am able to use it properly. I didn't thoroughly check the data pack and it seems like there was a bug in the error checking of the IDE I was using. I don't blame anyone for this confusion. However, I can still build it even though the IDE is still indicating errors.

  3. I have completed everything you mentioned, and here is an example from GitHub: https://github.com/Tutorials-By-Kaupenjoe/Forge-Tutorial-1.19.3/blob/7-treeGeneration

    I would like you to look at the two main classes as follows:

    ModConfiguredFeatures, located in the package net.kaupenjoe.tutorialmod.worldgen

    ModWorldGenProvider, located in the package net.kaupenjoe.tutorialmod.datagen

    If you're using version 1.19.4-45.0.39 without updating to 45.0.40, the mentioned code works fine. However, if you switch to version 45.0.40 and try to add the method ModConfiguredFeatures::bootstrap, there will be an immediate issue. It seems like it cannot accept a method with a parameter as an instance, but it can still work properly with an instance that doesn't have an instant parameter, such as BootstapContext<PlacedFeature>.

  4. Normally in 1.17.1 i use BiomeLoadingEvent#getGeneration()#getFeatures() then and add some Supplier ConfiguredFeature<?, ?>

    But in 1.18.1 it want PlacedFeature and i look ConfiguredFeature class i see placed() method.

    Ummmmm Let's go back to 1.17.1 on decorated() method by put this parameter

    .decorated(Features.Decorators.HEIGHTMAP_SQUARE).decorated(FeatureDecorator.COUNT_EXTRA.configured(new FrequencyWithExtraChanceDecoratorConfiguration(1, 0.1F, 1)))

    Okay now coming to 1.18.1 i use placed() method by put this parameter.

    .placed(PlacementUtils.HEIGHTMAP_WORLD_SURFACE, PlacementUtils.countExtra(1, 0.1F, 1))

    but there are no trees, 
    Is there a way to make a tree spawn?

  5. Hello normally in 1.17.1 i call BiomeLoadingEvent for add some Structure from BiomeGenerationSettingsBuilder#getStructures() but when i modding on 1.18.1 getStructures() method is missing.

    Don't ask me what I want, you should know what I want.

×
×
  • Create New...

Important Information

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