🌟customdrops.yml
Custom Drops Configuration
LevelledMobs' customdrops.yml
file allows you to build custom drops utilizing many different config options to create unique materials and custom commands to add to or replace an entity's drops.
Defaults:
These config options will apply to all drops constructed within CustomDrops unless you have modified a drops' individual properties to override these default settings. Each of these must have a value in order for LM's CD to function properly, but once it is set here, you do not need to set it within your individual drops if the value would not change. These defaults apply to all systems within the CD file, including Drop Tables.
For any value listed as a percent, use this method to determine what value to use:0.0 = 0% | 0.1 = 10% | 0.25 = 25% | 0.5 = 50% | 0.75 = 75% | 1.0 = 100%
0.01 = 1% | 0.05 = 5% | 0.001 = 0.1% | 0.005 = 0.5% | 0.00001 = 0.001%
Universal Groups:
LM includes several groups of entities which are bundled together in a convenient format. Each of these groups function as their own EntityType, applying to multiple entities at once. You can refer to the EntityType Universal Groups for the different types!
Specified Mobs:
LM has listed all vanilla entities as of Minecraft 1.20 within the CD file. You should locate the entity you wish to modify instead of adding additional entities at other spots within the config, as they will most likely not process as expected. You may delete any entities you do not use if you so choose, as you can always add them back again later.
Formula Processing
For some options, such as chance
, overall-chance
, and amount
, you can instead specify their corresponding -formula
variant. For example, chance-formula:
.
This will allow you to instead specify a mathematical formula for how to calculate this value rather than the static or slight ranged options available. You can utilize the many Placeholders available to adjust the value.
Below is an example of how you might implement the new mechanic, by making the same item have a much lower chance of success when at low levels, but a much better chance at the higher levels.
Sliding Values
There are three options that support sliding values; chance
, equipped
and overall_chance
. You can either use a decimal to represent a percent or assign tiers that represent a level range and an assignment range. The syntax is:
On the left side you put the min and max levels that the tier can match, then on the right side put the min and max chance those level ranges will use; where the assigned value slides based on the level values assigned. If the mob level is between the min and max then it will use the assigned min and max assignment. For example:
In the above example, level 1 mobs will have a 20% chance. Level 10 mobs will have 80% chance and any mob levels in between will scale accordingly. For mobs levelled 11 through 20, they will have a 100% chance. Any mob levels without an assignment will have 0% chance, such as level 21+ in the above example.
Drop Tables
CD includes the Drop Table system, which allows you to construct groups of materials or custom commands which can be attached to any EntityType as a single line item utilizing usedroptable: tableName
, helping to reduce any instances of duplicate drops covering multiple entities. This can also be used to craft 'tiered' drops.
When constructing drops with the Drop Table, you can replicate the same formatting used for any other drop, replacing the EntityType with the tableName.
NOTE: It is highly recommended that you instead use the Rules file to implement any drop table. It will provide far more accurate conditioning for when and how to apply drop tables.
LM Items - External Plugin Support
If you want to use custom items from external plugins, take a look at LM Items. This plugin bridges the gap so you can use third party items natively. Download from https://www.spigotmc.org/resources/lm-items.102081/
An example of how LM Items improves your server: Adding Player Heads to mobs!
Here is an example of how to use the - HeadDatabase:
LM Items item-type.
You supply the skull ID number from Minecraft Heads, which is provided in the URL of the skull which you select, and append it to the HeadDatabase:
item-type as shown above.
For example, the url https://minecraft-heads.com/custom-heads/humanoid/61942-demon-helmet
would have the ID 61942
.
Materials, Commands, and Special Items
MATERIAL:
drops gather their config options from the Defaults section listed above. Any config option listed there can be used within any MATERIAL:
or customCommand
drop.
customCommand:
tells CD that you wish to setup a command to process like any other drop.
In order for this feature to function, it requires at minimum the command:
config option with a valid console formatted command present.
You can also use multiple commands at once by listing them as demonstrated above.
An example of a valid command might be effect give %player% strength %ranged_a% %ranged_b%
.
The tags prefixed with ranged_
are unique. These allow you to construct a random number generator to be used within commands as placeholders. The example config above demonstrates how you would utilize the ranged config option, appending an A/B/C/D, et cetera to the end of ranged_
creates the tag, while the value represents a range of potential values which could be applied to the placeholder tag present in the individual command drop. Using the previous example command, with the ranged_A: 1-2
and ranged_B: 3-5
, then the first tag would be any value between 1-2, while the second would be any value between 3-5 when utilized within the command being activated.
ENCHANTED_BOOK
is a special type of MATERIAL
drop which will enable anvil-ready enchanted books by utilizing the enchantments:
config option.
Last updated