Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Personal Mines Module

A Personal mines module created for Vortex Network Prisons
Explore the docs »

About The Project

ProjectShowcase

Project Accomplishments

(back to top)

Dependencies

(back to top)

Features

  • Mine Expansions
  • Mine Factories
  • Custom Mine Schematics
  • Autominer
  • Members System
  • Settings & Boosters

(back to top)

Massive Block Placement Algorithm

A couple of techniques were used to solve the problem of placing over 1,000,000 Blocks per private mine

  • PMine Creation Queue system (Max mines generated/s depending on TPS)
  • Schematics to FAWE Fast Print Technique
  • Mine Blocks Reset via FAWE Fast Print Technique
FAWE Fast Print Technique FaweQueue queue = FaweAPI.createQueue( FaweAPI.getWorld(world.getBlockAt(mineCenterX, 128, mineCenterZ).getWorld().getName()), false); queue.getRelighter().clear(); int count = 0; for (int x = getMineCenterX() - getXZRadius(); x <= getMineCenterX() + getXZRadius(); x++) { for (int y = getMineYSurface(); y >= getMineYSurface() - getMineYLength() && y > 0; y--) { for (int z = mineCenterZ - getXZRadius(); z <= mineCenterZ + getXZRadius(); z++) { if(count < genTableBlockIDs.size()) { MineBlock block = genTableBlockIDs.get(count++); if(block == null) queue.setBlock(x, y,z, Material.STONE.getId()); else queue.setBlock(x, y, z, block.getMaterial().getId(), block.getData()); } else queue.setBlock(x, y, z, 0); } } }

(back to top)

About

Official module for Vortex Network Prisons gamemode

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages