Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
M mmoitems
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 47
    • Issues 47
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • mmoitems
  • Wiki
  • World Generation Templates

Last edited by Indyuce May 03, 2020
Page history

World Generation Templates

World gen templates are used to make your custom blocks spawn in a newly generated world. Custom blocks spawn in veins of a random amount of blocks. They may only spawn in a set list of biomes of worlds. Gen templates do also have more specific options that this wiki page will be overviewing.

If you want custom blocks to spawn in your worlds, make sure you enable the custom-blocks.enable-world-gen option in the main MMOItems config file!

Basic gen template example

basic-template:
    replace: [STONE]
    chunk-chance: 0.7
    depth: 10=24
    vein-size: 5
    vein-count: 2

When a world is being generated, every chunk has a set chance to be selected in order to spawn a block (chunk-chance). You may also configure the depth at which your block will be placed. The replace option defines what vanilla blocks your custom block will replace. That means custom blocks cannot spawn midair so that custom ores can spawn inside stone walls just like vanilla ores.

vein-count is the amount of veins that will be generated inside a selected chunk, vein-size is the amount of custom blocks that will be generated in every block vein.

Specific options

Use the slime-chunk option so that your block may only spawn in slime chunks.

template-id:
    slime-chunk: true

Biome/World black/whitelist

By adding an entry to the worlds list, you can restrict any custom block to a specific set of worlds. If you use ! before the world name, the world whitelist will turn into a blacklist, and the custom block will spawn anywhere but in the specified worlds.

template-id:
    worlds:
    - world_nether # Just like nether quartz

The format is the same for biomes, just use biomes instead of worldsspigot docs

template-id:
    biomes:
    - moutains # Just like emerald
Clone repository

  • Home
  • Installation Guide
  • Commands

General

  • Item Types
  • Item Stats & Options
  • Item Creation

Features

  • Mitigation
  • Elemental Damage
  • Item Identification
  • Item Tiers
  • Gem Stones
  • Custom Durability
  • Item Sets
  • Item Upgrading
  • Soulbound

Crafting Stations

  • Crafting Stations
  • Upgrading Recipes
  • Recipe Conditions
  • Recipe Ingredients
  • Recipe Triggers
  • Recipe Options

Custom Blocks

  • Custom Blocks
  • World Gen Templates

Item Management

  • Item Updater
  • Item Drop Tables

Item Generator

  • General
  • Item Templates
  • Item Modifiers
  • Complex Stats
  • Obtaining a random item

Abilities

  • Abilities
  • Ability List

Compatibility & API

  • Supported Plugins
  • Custom Item Textures
  • Main API Features
  • Stat API