Natural Schematic in Center of World

Discussion in 'Plugin Development' started by ccrama, Jun 1, 2014.

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

    ccrama

    Hello Bukkit,
    I am trying to force paste a schematic at the center of the world (for a game that regenerates landscape but keeps the same central spawn), but can't figure out how to make it look natural. Is there a simple way to make it spawn a bit under the current ground level, making it blend in with the edges of the paste area? I would prefer not to use the WorldEdit API as they can't paste sign data.

    Thanks,
    ccrama
     
  2. If you have an arraylist with the blocks you can use the world.getBlock(loc).setMaterial(material);
    etc. And with the loc you can say where it needs to be put, so a phew blocks below the surface (just get the highest block).
     
  3. Offline

    mythbusterma

    As far as I've seen, WorldEdit does indeed save sign data if the schematic is taken directly from in game, and not handled with any outside programs (i.e. MCEdit, which will scrub the data). Using the WorldEdit API if you copy a schematic without a Player, it will paste it in the same location again.
     
Thread Status:
Not open for further replies.

Share This Page