Pasting Schematics

Discussion in 'Plugin Development' started by BakedPotato_HD, Dec 27, 2015.

Thread Status:
Not open for further replies.
  1. How can I past a schematic in front of a player using worldedit api?
    Thanks

    Does anybody know how I can do this?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Dec 27, 2015
  2. Offline

    teej107

    Areoace likes this.
  3. Offline

    Saith1998

    @BakedPotato_HD try something like this:
    Code:
            /*
              * IMPORTS:
              * com.sk89q.worldedit.Vector;
              * com.sk89q.worldedit.bukkit.BukkitWorld
              * com.sk89q.worldedit.EditSession
              * com.sk89q.worldedit.CuboidClipboard
              * */
    
    Vector v = new Vector(Coordinates);//new Vector(X, Y, Z);
    BukkitWorld w = new BukkitWorld(world);
    EditSession es = new EditSession(w,MaxBlocksThatCanChange);
    CuboidClipboard c = SchematicFormat.MCEDIT.load(file);
    c.paste(es,v,withoutair);
    Hopefully I could help you
     
  4. Thanks
    But what is a vector?
     
  5. Offline

    mine-care

    @Saith1998 Do not spoonfeed code, especially without explaining what it does.
     
  6. Could you explain what a vector is please
     
  7. Offline

    mine-care

    @BakedPotato_HD Vector is an object holding coordinate values containing useful methods to manipulate them. commonly used in bukkit (and not only).
     
Thread Status:
Not open for further replies.

Share This Page