Giter Club home page Giter Club logo

orespawn's Introduction

Build Status

OreSpawn

Minecraft library mod that provides better control over the spawning of ores in Minecraft. If you're looking for a place to report bugs for the mod that adds extra mobs, the "DangerZone", etc... go to the site for that mod as this is not it.

How it works

Ore Spawn parses all of the .json files found in orespawn and adds ore generators to the game based on those files. The JSON structure looks like this:

[
  {
    "dimension": -1,
    "ores": [
      {
        "block": "minecraft:quartz_ore",
        "size": 15,
        "variation": 4,
        "frequency": 7,
        "min_height": 0,
        "max_height": 128
      }
    ]
  },
  {
    "ores": [
      {
        "block": "minecraft:coal_ore",
        "size": 25,
        "variation": 12,
        "frequency": 20,
        "min_height": 0,
        "max_height": 128
      },
      {
        "block": "minecraft:iron_ore",
        "size": 8,
        "variation": 4,
        "frequency": 20,
        "min_height": 0,
        "max_height": 64
      },
      {
        "block": "minecraft:gold_ore",
        "size": 8,
        "variation": 2,
        "frequency": 2,
        "min_height": 0,
        "max_height": 32
      },
      {
        "block": "minecraft:diamond_ore",
        "size": 6,
        "variation": 3,
        "frequency": 8,
        "min_height": 0,
        "max_height": 16
      },
      {
        "block": "minecraft:lapis_ore",
        "size": 5,
        "variation": 2,
        "frequency": 1,
        "min_height": 0,
        "max_height": 32
      },
      {
        "block": "minecraft:emerald_ore",
        "size": 1,
        "variation": 0,
        "frequency": 8,
        "min_height": 4,
        "max_height": 32,
        "biomes": [
          "minecraft:extreme_hills",
          "minecraft:smaller_extreme_hills"
        ]
      },
      {
        "block": "minecraft:dirt",
        "size": 112,
        "variation": 50,
        "frequency": 10,
        "min_height": 0,
        "max_height": 255
      },
      {
        "block": "minecraft:gravel",
        "size": 112,
        "variation": 50,
        "frequency": 8,
        "min_height": 0,
        "max_height": 255
      },
      {
        "block": "minecraft:stone",
        "state": "variant=granite",
        "size": 112,
        "variation": 50,
        "frequency": 10,
        "min_height": 0,
        "max_height": 255
      },
      {
        "block": "minecraft:stone",
        "state": "variant=diorite",
        "size": 112,
        "variation": 50,
        "frequency": 10,
        "min_height": 0,
        "max_height": 255
      },
      {
        "block": "minecraft:stone",
        "state": "variant=andesite",
        "size": 112,
        "variation": 50,
        "frequency": 10,
        "min_height": 0,
        "max_height": 255
      }
    ]
  }
]

dimension

The number ID of a dimension. Don't specify any dimension to target all dimensions that are not already specified.

ores

Array of JSON objects specifying ore generators for this dimension

block

Text ID of a block (the same you would use in the /give command)

state

The state of a block (typically used for colored blocks)

size

The number of blocks to spawn. Unlike the default Minecraft world settings JSON, this is the actually number of blocks that will spawn.

variation

How much to randomly vary the number of blocks spawned (I recommend making this value 50% of the size value)

frequency

How often, per chunk, to attempt to spawn this ore block. This value can be a fraction less than 1. If this value is between 0 and 1, then not every chunk will have a spawn in it. For example, a frequency of 0.1 means that there will be one attempt to spawn the ore per 10 chunks.

min_height

The lowest Y-coordinate that the ore is allowed to spawn at

max_height

The highest Y-coordinate that the ore is allowed to spawn at

biomes

If this array is not empty, then the biomes in which the ore will spawn is restricted to those specified by ID in this array.

API

Adding OreSpawn support to your mod is not hard. Look at VanillaOreSpawn.java for an example.

orespawn's People

Contributors

dshadowwolf avatar jriwanek avatar drplantabyte avatar ilexiconn avatar balam314 avatar yaibatoken avatar skyblade1978 avatar kilobyte22 avatar deanorhan avatar knoxhack avatar pau101 avatar

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.