-
Notifications
You must be signed in to change notification settings - Fork 100
Drop Creators
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.
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:
- A string which specifies the registry name of the drop creator. In this case the default configuration properties are used.
- 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 theproperties
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.
The most simple drop creator, defining the drops to use for each "drop type".
Key | Description | Valid Types | Default Value |
---|---|---|---|
drops |
Json Object | Empty Map |