Switch Language
  1. PowerNukkitX
  2. Get Started
  3. Config

    1. server.properties
    2. nukkit.yml
    3. pnx-cli-config.ini
    4. Anti-xray
    5. Resource Encryption
    6. Compression Acceleration
    7. PNX with WaterDogPE
    8. Flat World
  4. FAQ

    1. To Newcomers
    2. How to use PNX-CLI
    3. Common Questions
    4. Terra Questions
    5. Spawn-point Questions
    6. Convert Worlds
  5. For Devs

    1. Java

      1. Goto JavaDoc
      2. Mod API

        1. Custom Block
        2. Custom Item
        3. Custom Entity
        4. Custom Enchantment
      3. Entity AI

        1. Behavior
        2. Memory
        3. Sensor
        4. Motion Controller
        5. Navigator
        6. Behavior Group
        7. Work Cycle
    2. JavaScript

      1. setup dev env
      2. Base LLSELib dev
      3. Hello World
      4. Basic knowledge
      5. Event Listener
      6. FAQ
    3. Resources

      1. Event List
      2. IDs(block & item)

Terra Questions

What's terra

Terra is an open-source 3rd party terrain Generator, pnx included it in terra branch, You can use terra to generate epic worlds in pnx.

Enable Terra

To enable Terra and apply Terra to your world, the following two steps are required:

In file server.properties:


In file nukkit.yml:

  Name of the world:
   seed: Seed of your world
   generator: terra:default:overworld

Then, restart the server, and now you can try the terra terrain generator.

Use a third-party Terra terrain configuration package

Terra allows you to get completely new terrains by using different configuration packs. Simply put the pack into ./terra/packs and restart your server to install it.

You can view the currently available configuration packages (incomplete) at this site: Community Packs

Next, let's take ReimagEND configuration package as an example, the configuration package file name is "Reimag END.zip"

We want to apply this config package in the end, we need to set the following in nukkit.yml:

   seed: Seed You Want
   generator: terra:ReimagEND:end

Please note that in PNX, the configuration package selection syntax is different from the original terra, the format is:

terra: configuration package file name (without suffix): dimension type (overworld, nether, end)

For example, in this example, the configuration package file name is Reimag END.zip, so we need to set the generator to terra:Reimag END:end to select this configuration package

Note that we append an "end" parameter at the end, which sets the world type to End.

For different world types, the height limit of the y-axis is different, as follows:

For some specific configuration packages, there may be cases where the world height limit is lower than the height required by the configuration package (such as the Tartarus hell package), at this time, the world type can be set to the main world to avoid this problem

After the setup is successful, you should be able to see the new terrain brought by the Reimag END configuration package in the end:


Why terra doesn't work

Too much memory used

Sorry for the excessive memory usage, but due to the complexity of the terra algorithm and the high level of customization, it is inevitable that about 300MB of memory is used at startup. We have done our best to optimize it.
If you really want to reduce memory usage, you can try modifying ./terra/config/yml

  structure: 0 # default 32
  sampler: 0 # default 128
  biome-provider: 0 # default 32

Please note that this will affect performance and increase CPU load.

© PowerNukkitX Dev team