Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

worldedit api copy schematic

CuboidRegion region = new CuboidRegion(world, min, max);
BlockArrayClipboard clipboard = new BlockArrayClipboard(region);

EditSession editSession = WorldEdit.getInstance().getEditSessionFactory().getEditSession(region.getWorld(), -1);

ForwardExtentCopy forwardExtentCopy = new ForwardExtentCopy(editSession, region, clipboard, region.getMinimumPoint());
forwardExtentCopy.setCopyingEntities(true);
Operations.complete(forwardExtentCopy);
Source by madelinemiller.dev #
 
PREVIOUS NEXT
Tagged: #worldedit #api #copy #schematic
ADD COMMENT
Topic
Name
2+4 =