Solved World Generation using Schematics

Discussion in 'Plugin Development' started by Dragonphase, Feb 8, 2014.

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

    Dragonphase

    I have been currently attempting to generate the entirety of a world using one schematic as a template. I have managed to load the schematic into the plugin using WorldEdit and generate it with a ChunkGenerator and BlockPopulator; however, only blocks that are located at both x > 0 and z > 0 will generate the schematic correctly. The picture below may suffice to explain what I mean by this:

    2014-02-08_23.27.13.png

    The schematic used to generate this world is shown elevated in the following picture:

    2014-02-08_23.28.54.png

    The top-left corner of the image shows the schematic being pasted correctly, the top-right corner is mirrored, and each corner converges around the block on the cursor. I would like for the top-left corner to be repeated on all sides, without a centre point or any mirroring.

    The source for this code is available here. Any help would be greatly appreciated!
     
  2. Offline

    tamajpm

    Maybe you can use the WorldEdit API?
     
  3. Offline

    Dragonphase

    I am, to store the schematic in memory.
     
  4. Offline

    tamajpm

    So you can load the schematics with the WorldEdit API to?
     
  5. Offline

    Dragonphase

    The link to the source code is in the main post, please refer to that. In the main file's onEnable function, the schematic is loaded in MCEdit format and stored in a CuboidClipboard object.

    bump

    Solved - schematic pasting where Z or X is less than 0 had to be offset by 1 block. As for the data issues, they are not solved to the best of standards but for the purpose of the plugin, the main issue was stair orientation, where stair data had to be swapped

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
Thread Status:
Not open for further replies.

Share This Page