Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Budschie

Members
  • Posts

    171
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Budschie's Achievements

Creeper Killer

Creeper Killer (4/8)

5

Reputation

  1. Hello there. I am currently stuck in the process of developing a custom dimension with its own chunk generator, as I want to implement features now. But I can't seem to get them working. They just don't appear (at least partially). Something that could cause this issue is the confusing system of having Features and ConfiguredFeatures, simultaneouly, in two very similarly named classes, with the same id. My question is: How can I take advantage of the data driven system (using configured_feature json files) and what do I have to do for this (e. g. do I have to register a ConfiguredFeature, a Feature, or maybe even both?) I'd be happy if you could help me with this problem. Here is my github repo: https://github.com/Budschie/Deepnether-Mod/tree/1.16.5 -Budschie
  2. Hello there! I have an configured as a json for one of my biomes, but the feature just won't spawn. I've already checked if my chunk generator is the cause of this problem, but I doubt it, as I couldn't find any evidence this could be the case by setting breakpoints. Maybe my JSON files are malformed, but wouldn't minecraft then refuse to load the world? Anyway, here are the important files: Biome JSON: https://github.com/Budschie/Deepnether-Mod/blob/1.16.3/src/main/resources/data/deepnether/worldgen/biome/soul_desert_biome.json Configured Feature JSON: https://github.com/Budschie/Deepnether-Mod/blob/1.16.3/src/main/resources/data/deepnether/worldgen/configured_feature/withered_tree_config_feature.json DeepnetherChunkGenerator.java: https://github.com/Budschie/Deepnether-Mod/blob/1.16.3/src/main/java/de/budschie/deepnether/dimension/DeepnetherChunkGenerator.java So, I hope you can help me with this. Thanks for any help, -Budschie.
  3. Is there any good source I can refer to if I want to create(and register) a biome in 1.16.3?
  4. @Draco18s But I only use one biome, which is the "green_forest_biome": https://github.com/Budschie/Deepnether-Mod/blob/1.16.3/src/main/java/de/budschie/deepnether/dimension/DeepnetherBiomeProvider.java#L34
  5. @Draco18s But shouldn't this be enough to register a biome: https://github.com/Budschie/Deepnether-Mod/blob/1.16.3/src/main/java/de/budschie/deepnether/biomes/BiomeRegistry.java#L19 https://github.com/Budschie/Deepnether-Mod/blob/1.16.3/src/main/java/de/budschie/deepnether/main/DeepnetherMain.java#L72 Or do I have to do more to register a biome?
  6. @Draco18s You probably mean these lines: BiomeDataHandler.addBiomeData(new ResourceLocation(References.MODID, "green_forest_biome"), new GreenForestBiomeData()); BiomeDataHandler.addBiomeData(new ResourceLocation(References.MODID, "deepnether"), new DeepnetherBiomeData()); But those aren't biome initalizations or anything like that, those are adding a key and data to a list. This list is then being accessed by my chunk generator to read additional information about the biome. There is no need to register a biome named "deepnether:deepnether", as this simply means that the netry in the second line is never used.
  7. As the title suggests, my game lagged and outputted following message: "[m[33m[21:07:58] [Render thread/WARN] [minecraft/BiomeContainer]: Received invalid biome id: -1" So, here is my github repo: https://github.com/Budschie/Deepnether-Mod/tree/1.16.3. I hope you can help me with this issue. -Budschie
  8. Is there maybe something else that could identify a biome uniquely, besides from the registry name?
  9. So, here is my code: Calling Biome#getRegistryName Biome biome = worldGenRegion.getBiome(new BlockPos(posXStart + x, 0, posZStart + z)); BiomeGeneratorBase biomeGenerator = BiomeDataHandler.getBiomeData(biome.getRegistryName()).getBiomeGenerator(); Setup of the BiomeDataHandler: BiomeDataHandler.addBiomeData(new ResourceLocation(References.MODID, "green_forest_biome"), new GreenForestBiomeData()); BiomeDataHandler.addBiomeData(new ResourceLocation(References.MODID, "deepnether"), new DeepnetherBiomeData()); Here is my GitHub-Repo: https://github.com/Budschie/Deepnether-Mod/tree/1.16.3
  10. So, I've recently been trying to create a new chunk generator for my mod. Because I want individual chunk generators per biome, and because the biome class itself can't be extended anymore, I decided to create a hash map with a resource location as an input and a custom class(with the chunk gen) as an output. The thing is, everytime I want to access this hash map with the resource location of the biome, it returns null. After a quick debugging sessions it turns out that the method Biome#getRegistryName always returns null, even on vanilla and hardcoded biomes. How can I solve/avoid this problem? Help would be appreciated. -Budschie
  11. @ChampionAsh5357 Thanks for the reply 🙂 So, I have one last question: I don't fully understand what you mean by: So, answers would be appreciated. -Budschie
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.