from Boxel import *

def onChunkLoad(chunkId):
  if chunk.biome == '0':
    boxelBiomes.setBiome(chunkId, 'plains')
  elif chunk.loadRange() = boxelLag.lagRange():
    boxelPlay.prime.fps -= boxelLag.getLagSet(boxelLag.lagRange())

def generate():
  boxelTerrain.createTerrain('Voxel', 'irregular', (16, 16), onChunkLoad(boxelTerrain.chunkID))
