Saving blocks to files

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

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

    mariosunny

    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?

    Thanks!
     
  2. Offline

    Freelix2000

    @mariosunny
    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

    mythbusterma

    @mariosunny

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

    Lolmewn

    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