Degradation Paths
Degradation relationships allow server owners to decide which blocks turn into other blocks. So for example, if a server owner wanted to make a block of diamond turn into a coal block when a player walks over it, they can do it.
This means that if you are not satisfied with the default trail degradation path, you can change it at will.
Well, it depends on what version of the plugin you are using.
Degradation Paths/Relationships are not available in these versions.
In your config, you may notice a block of YML that looks a bit like this...
default_path:
STONE:
- COBBLESTONE
ANDESITE:
- COARSE_DIRT
DIORITE:
- COARSE_DIRT
GRANITE:
- COARSE_DIRT
GRASS_BLOCK:
- COARSE_DIRT
COBBLESTONE:
- COARSE_DIRT
COARSE_DIRT:
- DIRT
This is the default degradation path (as of v0.4 you can only have the default degradation path). What's great about this path is that you can now change which blocks turn into other blocks. The basic concept is simple...
Basically, under the word default_path:
you will see a list of block names. Each block that is listed is now "changeable" (This does not include the block names prefixed by a dash under the main blocks). If a player steps onto a changeable block, the plugin will randomly select an item in that blocks sub-list.
Here is an example:
default_path:
GRASS_BLOCK:
- GOLD_BLOCK
- DIAMOND_BLOCK
- COAL_BLOCK
In this example, if a player steps onto a grass block the plugin will randomly select a block from the three that are listed below it.
The names of the blocks are very specific, for instance, if you write GRASS instead of GRASS_BLOCK the plugin will target the plant block instead of what you would normally of as a grass block. For a list of the exact names of each block that is available, check out this website.
Copyright (c) Joel DeSante and Rugged Trails Contributors, 2019. All Rights Reserved.