mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2025-03-12 13:19:25 +01:00
Update Drop Tables
parent
712d630af0
commit
3ce0ffe745
@ -1,6 +1,6 @@
|
||||
The **/drop-tables** folder is where you setup all of your custom drop tables for block and loot chest drops. Since their use is not limited to block drops, we decided to give them a separate folder so that you can setup them there and only use their reference in other configs to make them lighter.
|
||||
The **/drop-tables** folder is where you setup all of your custom drop tables for block and loot chest drops. Since their use is not limited to block drops, we decided to give them a separate folder so that you can setup them there and only use their reference in other configs to make them lighter/easier to read and setup.
|
||||
|
||||
Drop tables currently support for vanilla items, mmoitems, and other drop tables. That means you can have drop tables inside of other drop tables to change the probabilities of your items to drop.
|
||||
Drop tables can be used to drop vanilla items, mmoitems or the content of another MMOCore drop table. You can encapsulate drop tables inside of other drop tables to create complex drop tables.
|
||||
|
||||
## Default Config
|
||||
```
|
||||
@ -23,11 +23,11 @@ other-drop-table:
|
||||
items: []
|
||||
```
|
||||
|
||||
This section is very self explanatory, and is detailed well with comments within the file. First you name your drop table, in this example it is named `diamond-drop-table`. We know from reading the wiki on blocks.yml that this is the drop table that is called when breaking a diamond ore.
|
||||
This default file is pretty self explanatory. The first drop table example showcases all the drop items you can use inside of any drop table. In order to create a drop table, just add a new section to any file in the `/drop-tables` folder. Then find an ID for your drop table (this identifier must be unique and will be used as a reference later).
|
||||
|
||||
The items it can drop is vanilla diamonds, a rare diamond from mmoitems, and an example drop table to see the format. The numbers after the item mean the chance, and then the amount. Amount can be a range.
|
||||
The `diamond-drop-table` example is the drop table used in the [Mining profession](https://git.lumine.io/mythiccraft/mmocore/-/wikis/Mining%20and%20Block%20Regen) when breaking diamond ore blocks. The items it may drop are vanilla diamonds, a rare diamond from MMOItems, and all the content from the table called `other-drop-tables` (it's empty tho).
|
||||
|
||||
The format for every drop item is the following:
|
||||
The numbers after the item mean the chance, and then the amount (can be an integer range). The format for every drop item is the following:
|
||||
```
|
||||
droptype{<parameter1>=<value1>;<parameter2>=<value2>} <drop-chance> <min-max> <weight>
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user