-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Samples don't appear sometimes #305
Comments
I have to correct the above. Sometimes sample simply don't appear at all. Doesn't look like snow (or not) has anything to do with it. For example, I've been scratching my head about why I can't find any coal. After turning on the debugging data in the lot, I teleported exactly to where it says it placed a pluton. I stripped out the world to find the coal exactly where it says it should be: However, if I stand on that deposit and look up: Not a single sample to be seen (except those related to a different pluton nearby). I did override the config file, but everything looks correct: {
"config": {
"blocks": {
"default": [
{
"block": "geolosys:bituminous_coal_ore",
"chance": 0.7
},
{
"block": null,
"chance": 0.3
}
],
"minecraft:deepslate": [
{
"block": "geolosys:deepslate_bituminous_coal_ore",
"chance": 0.7
},
{
"block": null,
"chance": 0.3
}
]
},
"dimensions": {
"filter": [
"overworld"
],
"isBlacklist": false
},
"generationWeight": 9,
"samples": [
{
"block": "geolosys:bituminous_coal_ore_sample",
"chance": 1
}
],
"size": 48,
"spread": 12,
"yMax": 32,
"yMin": -32
},
"type": "geolosys:deposit_sparse"
} ...and there are no errors reported in the log:
|
I did a little digging around in the code, and I found where the samples are generated. I figured it would help to mention that my |
Might have to do with some of the changes to the logic for multiple deposits in a single chunk, this might be on my end. Have you tested in 1.18.2 with the latest build perhaps? Just want to check that I haven't already fixed it :) |
I'm afraid not. Several of the mods in my modpack (Create, in particular) weren't available for 1.18.2 when I set everything up. |
I see - for now let's keep this open, and when you can test in 1.18.2 we'll reconvene :) |
I'm running into a similar issue in 1.16.5. I'm using the mod Blame, which gave me the following information.
I'm hoping that's helpful/relevant. For some additional info, I was using Geolosys 5.1.5 up until recently but ran into errors when creating custom JSON files. Ores that did not have custom data files would generate fine, but none of my custom entries would generate at all. So I updated to 6.0.2; I'm not getting any errors now for my JSON files, but I'm not seeing any samples. I haven't tried any ore detection to see if the ores are actually spawning. That's going to be my next step in testing. |
Either my luck is worse than I ever imagined or ores aren't spawning at all, so this seems like a different issue. I'm also running a ton of mods in addition to Geolosys, so my input might not help much at all (though I'll be happy if it did). Update: Decided to poke into the config files (which did not appear to be changed at all by me at any point as far as I can tell). I noticed the following setting:
That certainly explains some things... I changed it to 0.9 to see if that helps. When I loaded my new world, Notepad++ informed me that the file had been modified by another program. My debug settings had been turned off and the chunkSkipChance was set to 0.15. The entire underground is ore now. So I seem to have isolated my problem. It probably won't help the issue at hand, unfortunately, but I didn't want to just delete my messages and figured I'd share my folly. |
Wow, so I was experiencing this issue too so I decided to look at the source code to see if I could find anything. As it turns out, I found this line: int maxSampleCnt = (Math.min(CommonConfig.MAX_SAMPLES_PER_CHUNK.get(), (this.size / CommonConfig.MAX_SAMPLES_PER_CHUNK.get()) + (this.size % CommonConfig.MAX_SAMPLES_PER_CHUNK.get()))) * (spread / 16);
|
Improved chunk generation speed, fix #305, fix floating point error bug
Versions:
What happens:
Deposits in snowy climates should still generate samples on the surface, even if they have to disrupt the surface snow layer (e.g., removing a
minecraft:snow
block).What should happen:
No samples are generated at all. I used a world-stripper mod to remove all "ordinary" blocks except samples and ore blocks. I was able to see the ore, but not the sample. Repeating the same operation in other climates shows both the ore and the samples.
The text was updated successfully, but these errors were encountered: