Skip to content

Drop Creators

Harley O'Connor edited this page Jul 19, 2021 · 8 revisions

As of 0.10.0 Beta 18, drop creators for trees are configurable via the tree pack Json system. Note that this is in early stages and will be developed upon and added to in future betas.

Applying Custom Drop Creators

The Species Json has a new array property called drop_creators, which is where all custom drop creators will be defined. Just like with gen features, these can be added in two ways:

  1. A string which specifies the registry name of the drop creator. In this case the default configuration properties are used.
  2. A Json object which specified both the registry name of the drop creator under the name key, and the properties of the drop creator as an embedded object under the properties key.

For example, adding a seed drop creator without any properties using the first method can be done as follows:

{
  "drop_creators": [
    "seed"
  ]
}

The species will now drop seeds. However, this can also be done with the second method if you wanted to increase the rarity, for example:

{ 
  "drop_creators": [
    {
      "name": "seed",
      "properties": {
        "rarity": 1.2
      }
    }
  ]
}

This structure applies to all drop creator types. Below are specified the drop creators added by DT itself.

Drop Creator Types

Normal

The most simple drop creator, defining the drops to use for each "drop type".

Properties

Key Description Valid Types Default Value
drops Json Object Empty Map