Greymerk / minecraft-roguelike

This is a mod for minecraft that adds randomly generated dungeon complexes.
GNU General Public License v3.0
129 stars 53 forks source link

dungeon rarity and other questions #39

Closed whitewolfxs closed 7 years ago

whitewolfxs commented 8 years ago

i was wondering if when u make your own custom dungeon if u can have a rarity system like : this dungeon only spawns half of the time as the normal ones do..also if it is possible for this new dungeons to have their very own specific loot table (this to try make harder duegeons with better loot). ps : sorry for bad english :3

Greymerk commented 8 years ago

Yes, any custom settings will override the defaults. However you can weight your custom settings as part of the criteria.

All custom settings by default have a weight of 1, unless otherwise specified.

should look something like this:

{
    "name": "demo",
    "criteria": {
        "weight": 1
    }
}
whitewolfxs commented 8 years ago

and u can attach a loot file to a specific dungeon? ps: could u make a simples example of how the base file would look with multiple dungeons?

Greymerk commented 8 years ago

Yes, you can alter loot for specific dungeons. In the current build actually the desert dungeon is slightly harder than the grasslands one, and there's extra gold etc added to chests. Mostly for flavor. In jungle dungeons you'll find extra emeralds.

I'll create a sample configuration when I get some time.

whitewolfxs commented 8 years ago

ok thank you very much for all the help :)

petrukhnov commented 8 years ago

from wiki it is not clear how to get less dungeons... Something like: 'use 20 instead of 10 to reduce number of dungeons' will help

dshadowwolf commented 8 years ago

FYI: From careful reading of the source, the value of "spawnFrequency" is inverse - the lower the value, the more frequently dungeons will spawn.

Through actual testing I've found that it is, conversely, almost on a hyperbolic curve as the number increases above 10. At 20 I've explored an area of about 1k square chunks and seen, if memory serves, one dungeon - in the same area at 10 I'd seen over 100. For that same area, at 15, I saw 20 to 30 - though at that point I was more just confirming that they were generating and not generating in huge numbers.

So... Try setting "spawnFrequency" to somewhere between 11 and 15 (inclusive) if you want the dungeons to be rare but not "there are more strongholds than dungeons" rare.