Skip to content

Changing generator

Timaaos edited this page Feb 8, 2021 · 3 revisions

Changing generator

In this tutorial you will change world generator setting!
Before player initialization(model._initialize()) we need to change variables that player have.

model.MOUNTHEIGHT = 2

This variable(MOUNTHEIGHT) changing mountain's height

model.MIN_Y = -20

This variable(MIN_Y) changing minimal y position

model.WORLDSIZE = 250

This variable(WORLDSIZE) changing world size

Generator blocks

model.GRASS_BLOCK = mc.GRASS

This variable(GRASS_BLOCK) changing grass block in generator settings

model.DIRT_BLOCK = mc.DIRT

This variable(DIRT_BLOCK) changing dirt block in generator settings

model.STONE_BLOCK = mc.STONE

This variable(STONE_BLOCK) changing stone block in generator settings

model.BEDROCK_BLOCK = mc.BEDROCK

This variable(BEDROCK_BLOCK) changing bedrock block in generator settings

Clone this wiki locally