codename-B / BananaImageToMap

Turns an image into a playable in-game minecraft map (or generates its own image!)
http://tetragaming.com/codename_B/
9 stars 6 forks source link

Configuration #2

Open nightpool opened 13 years ago

nightpool commented 13 years ago

More of a feature, but I can't seem to get at the tagging system atm.

Feature request: add the ability to change configuration options on a per-world basis. This would be accomplished by creating multiple yml files, like NotchFace.yml of Test.yml. Then, when you create a world, first it searches if there is a yml file by the name in the id, and if not, falls back on default options and the hmap defined by the id. The config file would look a little something like this:

items:
    torches: yes      # Should we spawn torches?
    torchFactor: 20   # Prob. of spawning torches
image: hmap           # where hmap.jpg is a heightmap
                      # in the BananaImageToMap folder, where this config file resides

Of course, this is just sample code I made off the top of my head, but do you get the idea?

codename-B commented 13 years ago

Hmm yeah, I'm just always loathe to add configuration as it leaves room for people to make mistakes :P