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?

    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


    Areoace likes this.
  3. Offline


    @BakedPotato_HD try something like this:
              * 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);
    Hopefully I could help you
  4. Thanks
    But what is a vector?
  5. Offline


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


    @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