-
Posts
157 -
Joined
-
Last visited
Posts posted by zlappedx3
-
-
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.
-
Wow! I'm not alone anymore. Waiting for the answer.
-
Hi, I'm using the old way, the model is up. But when I use "loader": "forge:obj" and use the mlt file to call the texture normally, when I test it in the game, it loads all the textures in the texture.block packet in my resources.
If you have any further questions about this issue, you can ask me.
-
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.
-
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>.
-
Hello, in 1.19.4-45.0.40, I'm using the RegistrySetBuilder class to add a method that has a parameter ConfiguredFeature<?, ?>>. However, I'm unable to add it successfully. But in version 45.0.39, I was able to do it without any problems. Do you happen to have any solutions to this issue?
-
Hello, I want to render .obj inside my screen, is there a way to call .obj to render ? without using render items.
-
Wow Thank you so mush.
-
When i checking log update from forge it is not described as KeyInputEvent change to what, Can you give a hint or something? Or do I have to search in vanilla?
-
@Luis_ST Okay thank you very mush now i meet this example.
https://mcforge.readthedocs.io/en/latest/models/itemproperties/ -
@Luis_ST What is ItemPropertyFunction ?
-
Hello guys i create my bow and put overrides[] on my json model but pulling animetion don't work please try hint me something.
-
1 hour ago, Luis_ST said:
the sky color is not handled globally, it's handelt inside each Biome via the BiomeSpecialEffects
Thank you so mush. @-@
-
Hello guys i meet the getSunriseColor() but i just changed color of the sunlight only, can i change color of sky ?
-
Hello Devs now i can create some dimension from this tutorial Link now I'm searching buildSurface method on vanilla how to generate as random surface. where is it.
-
On 10/23/2017 at 10:34 PM, Draco18s said:
Here's a hint.
You're working in a language that has access to the file system.
Sometimes if you have a slight hint of vanilla, that's okay.
-
Thank you for direction, The next time i have plan for create some world. But now I will haven't asked yet.
-
I like to do things not like the locals. sorry for bothering.
By the way, HEIGHTMAP_WORLD_SURFACE is the same as HEIGHTMAP_SQUARE, right? -
@Luis_ST I check ConfiguredFeature class from vanilla i see method placed() has new PlacedFeature() object if i use @Override from placed() method and return some PlacedFeature from TreePlacements can it working ?
Edit : Maybe give me an example ? -
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? -
@Luis_ST Thank you so mush now i can do it.
-
@Luis_ST 2 Finally Quastion if i use StructureFeatures#registerStructures it's static method can it working ?, and the what is @mixin(something.class) and how to use it ?
PS. Sorry now i'm so stupid but if you example about this i will thank you so mush. -
If StructureSettings#configuredStructures is private variable how to add to the StructureSettings#configuredStructures ?
-
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.
Reference problem intellij (1.18.2)
in Modder Support
Posted
MinecraftForge.EVENT_BUS.register