Saving blocks to files

Discussion in 'Plugin Development' started by mariosunny, Jul 30, 2015.

Thread Status:
Not open for further replies.
  1. Offline


    I want to save large areas of blocks to files for later use.

    What information do I need to save about a Block in memory such that when I reload the block into a different location in the world, it has exactly the same attributes (same material, same biome, etc.)?

    It appears I just have to save the Material and the Biome. Is there additional data I need to save beyond this?

  2. Offline


    You should probably also save the block's data so that blocks like wood and leaves can be different types. Maybe also special data for things like sign text.
  3. Offline



    Why would you save the biome? That isn't a property of a block...
  4. Offline

    Lolmewn Retired Staff

    Suggestion: Check how other plugins (e.g. WorldEdit) do it. Learning from examples is a great way to get to know new stuff ^^
Thread Status:
Not open for further replies.

Share This Page