Giter Site home page Giter Site logo

blendergamer / oregeneration Goto Github PK

View Code? Open in Web Editor NEW

This project forked from terasology/oregeneration

0.0 0.0 0.0 62 KB

A plugin system for adding randomized ore generation to the world

Home Page: http://forum.terasology.org/threads/ore-generation.1104

Java 100.00%

oregeneration's Introduction

Ore Generation

A plugin system for adding randomized ore generation to the world

Pocket Ore Generation

All pocket ore generation variants share the base properties defined in the base pocket ore-generation component BasePocketOreGenComponent. Default values can be found in the component definition.

Density-based generation

Pocket ore generation is small clumps of blocks that occur underground. The pocket density ore gen component PocketDensityOreGenComponent provides additional properties. Default values can be found in the component definition.

// Minimal definition, e.g, in 'CoalOreGen.prefab'
{
    "OreGenDefinition":  {},
    "PocketDensityOreGen": {
        "block": "CoreAssets:CoalOre",  // What block will be placed
        "frequency": 1                  // How often this pocket will happen in 10 vertical blocks in the region
    }
}

Depth-based Generation

This pocket ore gen is contained within a certain range of depth underground. The depth pocket density ore gen component DepthPocketOreGenComponent provides additional properties. Default values can be found in the component definition.

// Minimal definition, e.g, in 'CoalOreGen.prefab'
{
    "OreGenDefinition":  {},
    "DepthPocketOreGen": {
        "block": "CoreAssets:CoalOre", //  What block will be placed
        "frequency": 1,                // How often this pocket will happen in 10 vertical blocks in the region
        "minDepth": 4,                 // The minimum depth that this pocket will occur
        "maxDepth": 80                 // The maximum depth that this pocket will occur
    }
}

Veins Ore Generation

The veins ore generation creates a round central "mother lode" with branches radiating in all directions. Branches may twist and turn, and may fork to create a more tree-like structure. All veins-based or generators share the properties defined in the base veins ore-generation component BaseVeinsOreGenComponent. Default values can be found in the component definition.

Density-based Generation

Restricts the generation of veins based on the density. The density-based veins ore-generation component VeinsDensityOreGenComponent defines additional properties. Default values can be found in the component definition.

// Minimal definition, e.g, in 'IronOreGen.prefab'
{
    "OreGenDefinition":  {},
    "VeinsDensityOreGen": {
        "block": "CoreAssets:IronOre",  //  What block will be placed
        "frequency": 1                  // How often this ore gen will happen in 10 vertical blocks in the region
    }
}

Depth-based Generation

Restrict the generation of veins to a specific range of depth underground. The depth-based veins ore-generation component DepthVeinsOreGenComponent defines additional properties. Default values can be found in the component definition.

// Minimal definition, e.g, in 'IronOreGen.prefab'
{
    "OreGenDefinition":  {},
    "DepthVeinsOreGen": {
        "block": "CoreAssets:IronOre",  //  What block will be placed
        "frequency": 1,                 // How often this ore gen will happen in 10 vertical blocks in the region
        "minDepth": 4,                  // The minimum depth that this pocket will occur
        "maxDepth": 80                  // The maximum depth that this pocket will occur
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.