ClayGen
This plugin is 1.20.2 ready!
ClayGen is a plugin I made to turn gravel into clay after it was removed from mcMMO. There are three different modes:
Turn gravel into clay whenever water flows over or around it (mcMMO style) Only when a certain block is below the gravel block (the default is Brick as of version 0.5). Farming mode: Sets a configurable delay before the gravel turns into clay. Just like any other crop in Minecraft.
To change the behavior of the plugin just edit the claygen.ini file that it creates on first run under plugins/ClayGen.
Comments, suggestions and bug reports are all welcome.
Features:
- Turns Gravel into clay with or without an activator.
- Configurable option to only change a certain percentage of the gravel into clay.
- Change the default number of clay drops
- Saves the blocks turning into clay in farming mode across server reboots.
- Configurable option to have the clay drop more clay balls the longer water runs over the clay.
- Multi-world support (although all worlds share the same config)
- Editable config file.
- Automatically adds new settings to config file when updating.
Changelog:
Version 1.5
- General cleaning up of code.
- Fixed bug where the gravel on the very edge of the water flow would not turn into clay.
- Fixed bug where gravel would turn into clay unusually fast.
- Fixed (hopefully) bug causing main server thread lockup.
Version 1.4
- Updated depreciated hooks for CB 1000.
Version 1.3
- Solved farming issues with threads not being in sync and locking up servers, causing NextTickOutofSync errors, among others.
Version 1.2
- Fixed StackOverflowError when regenerating regions with WorldEdit. (Should fix other world regeneration plugins as well.)
Version 1.1
- Fixed problem with gravel not turning to clay when the chunk wasn't loaded. (Thanks to mtszyk for pointing it out and helping test the fix.)
- Added option to keep chunks loaded when gravel is turning into clay.
Version 1.0
- Added option to have a percentage chance for the gravel to turn into clay. (A suggestion by someone on the canary forum.)
Version 0.9
- A Canary mod only version. This version does not exist on bukkit. I bumped the version number to 1.0 on bukkit to not break compatibility going between the two server mods.
Version 0.8
- Fixed bug where when you only had 1 activator and the more drops over time feature enabled, you could leave the other one that wasn't activated next to the clay and it would still accumulate drops.
Version 0.7
- Speed enhancement (cpu load) for farming mode
- Added configurable default clay drops
- Added the "more drops the longer water runs over the clay" feature. (Thanks to DarkLiKally for suggesting this feature!)
Version 0.6
- Fixed problem where it would save the gravel file excessively.
- Minor code enhancements/speed-ups.
Version 0.5
- Option to save all the gravel blocks turning into clay in farming mode. (Useful if you have a long delay set and you restart the server.)
- Added relevant option in the config file to turn saving on and off.
- Fixed a bug in farming mode where some blocks wouldn't update until the next round if the block next to them changed to clay.
- Removed lingering debug message in farming mode.
- Changed default activator block to BRICK. Please note that you will not see this change unless you are just installing the plugin or delete the config file.
Version 0.4
- Added a "farming" mode, where the gravel only turns into clay after a semi-random delay. (as requested)
- Added relevant options to the config file to configure minimum and maximum time it takes to turn into clay.
- In farming mode, placing gravel next to already running/still water will start the timer as well.
Version 0.3
- Added config options to set what flow triggers the gravel into clay change (water and/or lava)
- Cleaned up redundant code.
Version 0.2
- Made it so that water/lava can flow next to the gravel turning it into clay, not just on top.
- Added mcMMO style.
- Created a proper config file.
Version 0.1
- First release of the plugin.
This mod still works great with spigot 1322 1.7.4
@UltraMC
Patch file please?
I don't know why people say it doesn't work, it's functioning just fine for me on 1.7.2 Spigot #1257
@Swang4004
@Tux2
Tux - add casts to your for-loops and it will stop breaking 1.7. I have forked it and patched so my server has it running.
PS great plugin, I love % chance feature
This mod no longer functions on 1.7+ and appears to be abandoned by the author.
While I like this type of mod in general, perhaps you might consider another tactic. There's an old mod called GravelClay that does everythign this mod does. It's also compatible with every version thus far - except that it causes rare crashes on 1.7.2. Perhaps you could take it over as a more simplistic solution?
Does not work with Spigot 1.7.2
First up love this mod, used it forever it seems.
I'm working on updating to 1.72 and am having a problem with claygen. I currently have no other mods for testing to ensure no compatibility issues. The relevant log entry is below;
Any ideas would be appreciated.
@MadCowsMinecraft
No updates necessary! No API breakages have been made. :D Why release an update to a stable plugin that still works?
Um... Updating it for 1.6.2 through 1.7 yet????
@Deps7
Version 1.6 works in 1.5.2-R0.1. Updated File description to reflect that.
Download for 1.5.2 RO-1?
Works fine with 1.5.2 R0.1
@BangL
Of course! It hasn't needed an update in forever though.
just downloading and presenting this new ability to my players. thanks! youre still updating if needed, right?
@Wizards1234
This was my first ever bukkit plugin. Thing is, I've programmed in java for quite a while and I've always used ini (.properties) files in my programs that I've made. I didn't really want to have to learn this new "yml" programming just to get my plugin on bukkit so I used a properties file. Thing is, by doing so my plugin never broke when bukkit changed how they wanted to handle yml files as I didn't use their system. Why fix something if it ain't broke? A properties file works fine for the plugin and I've had no reason to change it to yml.
I like the idea of this plugin! I am so gettng it!
One question though: Why a .ini file? Many plugins ue .yml, so I am just wondering why you chose a ini. THanks!
W
@ArmyHill01
I know how University IT departments can be! I worked as the Assistant IT Director at one for over 2 years! I also appreciate the help. :)
Sorry for the long delay, I'm working at my university's IT department now which gives me only a few free hours a day, if I'm lucky.
I most definitely prefer this plugin over your competitors Tux2. I've been developing in Java for about 6 months now and would love to help debugging. I'm on campus 11 hours a day so I have very little free time but will grab the source and see if i can help any. (Just don't tell my wife, lol)
@ace1177 I tried many combinations of settings to no avail. I'll double check and make sure I tried the time delay. Thanks for the advice !
It's working completely fine on my server. Any chance you have tried turning the time delay all the way down to no delay Armyhill?