Obtain info about default generated chunk

A small new update is available now!
Update: The standalone should now be available! Sorry for the delay!
  • Hi.


    First, i thx again red51 for implemented method to reset a chunk via API.


    Now come next challenge. I wonder if is possible to obtain from game engine a chunk of unmodified chunk (not actual chunk, but the original default one) and have some method to query about data like:

    - What materials contains (stone, ore, coal, air, water,tree, vegetation, etc.).

    - If chunks contain object from POI, and list of them (Ex. is involved in a POI/Dungeon generated and have some objects inside)


    Example of desired data:

    The chunk x,y,z contain :


    a) Terrain/ore:

    - 200 blocks stone

    - 800 blocks air

    - 400 blocks of water

    - 10 blocks of iron ore

    - 30 blocks of gold ore

    - etc.


    b) Vegetation:

    - 2 tree birch

    - 2 flower

    - 10 fern

    - etc.


    c) Chunk contain a POI/Dungeon = true

    - POI INFO

    - etc.

    d) Objects (from POI/Dungeons)
    - 2 primitive tent
    - 1 golden chest
    - etc.



    This data is required to calculate "value" of chunks. If i give player posibility to reset a chunk i don't want a player to find a "rich" chunk and reset over and over for resources. I want player to pay some resource/currency for resetting chunk and this cost will be more higher than resource from inside so over time if player just reset chunk get a net loss. The scope of reset chunk is not to gather resource over and over but to help restore default generation of chunk and help to quick demolish some complex building, re enable posibility of start spawning again of animal inside, etc.



    Thx for any hint how can achieve that.


    BTW: Obtaining same data from actual chunk can be a thing too who can be used for other purpose.

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!