Skip to content

Fast, high-performance block placing util (1.8 - 1.21.4)

License

Notifications You must be signed in to change notification settings

Devlrxxh/BlockChanger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlockChanger

A single class that offers very fast block placing, high performance and allowing multiple versions (1.8 - 1.21.4)

More Information can be found at: https://www.spigotmc.org/threads/methods-for-changing-massive-amount-of-blocks-up-to-14m-blocks-s.395868/

Setup

Just put the BlockChanger class in your project

Usage

BlockChanger.load(this, false);

World world = ...;
Location location = ...;
List<BlockChanger.BlockSnapshot> blocks = new ArrayList<>();
blocks.add(new BlockChanger.BlockSnapshot(location, Material.GOLD_BLOCK);

BlockChanger.setBlocks(world, blocks);

BlockChanger. // see all available methods

Snapshot System

Location pos1 = ...;
Location pos2 = ...;

BlockChanger.Snapshot snapshot = BlockChanger.capture(pos1, pos2);

BlockChanger.revert(snapshot);

Duplication System

BlockChanger.Snapshot snapshot = ...;

// Pasting the snapshot with an offset of X: 100 and Z: 0
BlockChanger.duplicate(snapshot, 100, 0);

About

Fast, high-performance block placing util (1.8 - 1.21.4)

Topics

Resources

License

Stars

Watchers

Forks

Languages