[MECH] Cow Paths v2 - Back from the dead [1000]

Hello, im tips48, and I'm bringing back Cow Paths from the inactive forums. I only had to recompile and didn't have to change any source, but I do plan to add some new features and fix any bugs that come up. All credits go to the amazing author @deltahat

Cow Paths - Pave the paths where players walkVersion: v2

Cow Paths is a bukkit plugin for simulating the natural erosion caused by player walking. The name of the plugin comes from the phrase "to pave the cow paths." As players walk around the server, Cow Paths keeps track of the number of times each block has been stepped on and erodes the world accordingly. By default, the world erosion patterns are (with step thresholds in parentheses):

Configuration
The erosion patters and step thresholds used by Cow Paths are completely configurable. All wear patterns are stored in the config.yml file under the wearPatterns key. A wear pattern is made up of a three part string containing the fromMaterial, toMaterial, and stepThreshold. A line looks like this:

Code:

- Grass Dirt 10

When defining the fromMaterial and toMaterial, you can use either a material's canonical name or ID number. Malformed wear patterns will be ignored. If two wear patterns share the same fromMaterial, only the first one will be used.

Thanks for bringing this back! The biggest thing that needs fixing is how CowPaths stores its backing data. The initial implementation used one file per chunk. This was a bad idea - it made too many files.

Thanks for bringing this back! The biggest thing that needs fixing is how CowPaths stores its backing data. The initial implementation used one file per chunk. This was a bad idea - it made too many files.

Click to expand...

Oh, hey! I though you were dead
About the storing data, yes, I agree, I'm planning on moving it all to SQLite

Is it possible to have it check to see if it has been walked over for a configurable time to where it would degrade down its line? IE, after 10 minecraft days of not being walked on, the gravel that was walked on, would degrade to dirt?

The numbers above represent the percentage chance for each type. In the long run, this will essentially do the same thing, but be more random and less specific. Either way, heavy traffic areas will have a greater chance of erosion.

The numbers above represent the percentage chance for each type. In the long run, this will essentially do the same thing, but be more random and less specific. Either way, heavy traffic areas will have a greater chance of erosion.