ClayGen

Logo

This plugin is 1.7 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.

Source Code

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.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of NoPride NoPride Feb 28, 2014 at 00:46 UTC - 0 likes

    This mod still works great with spigot 1322 1.7.4

  • Avatar of Tux2 Tux2 Feb 02, 2014 at 00:18 UTC - 0 likes

    @UltraMC: Go

    Patch file please?

    http://myfavs.me/bcs.pngDonate Bitcoins?1Lr7prAnqYpZe2UizvPKV2Cg4KSuj2weXb
    If you didn't take the time to read how my plugins work, don't expect me to take the time to diagnose your stupidity.
    If updates to my plugins depended on donations, they would never update. Donate!

  • Avatar of diannetea diannetea Jan 23, 2014 at 16:59 UTC - 0 likes

    I don't know why people say it doesn't work, it's functioning just fine for me on 1.7.2 Spigot #1257

  • Avatar of UltraMC UltraMC Jan 23, 2014 at 12:56 UTC - 0 likes

    @Swang4004: Go

    @Tux2: Go

    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

    BFAK:90627105,4afb69952c26858b8e680b8c9ad8ae6b1989a6d68778ecc8c67e798e4ba33c57

  • Avatar of TwitchXTRM TwitchXTRM Jan 17, 2014 at 23:34 UTC - 0 likes

    This mod no longer functions on 1.7+ and appears to be abandoned by the author.

  • Avatar of Raptor2213 Raptor2213 Jan 07, 2014 at 07:25 UTC - 0 likes

    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?

    http://cex.io/informer-small/Raptor2213/59370678568f9493b3c2c2b9824e0f9a/

  • Avatar of TwitchXTRM TwitchXTRM Jan 01, 2014 at 20:43 UTC - 0 likes

    Does not work with Spigot 1.7.2

  • Avatar of Swang4004 Swang4004 Dec 19, 2013 at 19:12 UTC - 0 likes

    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;

    [11:55:03] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-1.7.2-R0.1-b2969jnks (MC: 1.7.2) (Implementing API version 1.7.2-R0.1)
    [11:55:03] [Server thread/ERROR]: Could not load 'plugins/ClayGen.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: Tux2/ClayGen/ClayGen : Unsupported major.minor version 51.0
    	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) ~[bukkit.jar:git-Bukkit-1.7.2-R0.1-b2969jnks]
    	at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:308) ~[bukkit.jar:git-Bukkit-1.7.2-R0.1-b2969jnks]
    	at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:231) [bukkit.jar:git-Bukkit-1.7.2-R0.1-b2969jnks]
    	at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:255) [bukkit.jar:git-Bukkit-1.7.2-R0.1-b2969jnks]
    	at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:233) [bukkit.jar:git-Bukkit-1.7.2-R0.1-b2969jnks]
    	at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [bukkit.jar:git-Bukkit-1.7.2-R0.1-b2969jnks]
    	at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14) [bukkit.jar:git-Bukkit-1.7.2-R0.1-b2969jnks]
    	at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:126) [bukkit.jar:git-Bukkit-1.7.2-R0.1-b2969jnks]
    	at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [bukkit.jar:git-Bukkit-1.7.2-R0.1-b2969jnks]
    	at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [bukkit.jar:git-Bukkit-1.7.2-R0.1-b2969jnks]
    Caused by: java.lang.UnsupportedClassVersionError: Tux2/ClayGen/ClayGen : Unsupported major.minor version 51.0
    	at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.6.0_26]
    	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) ~[?:1.6.0_26]
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:615) ~[?:1.6.0_26]
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) ~[?:1.6.0_26]
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) ~[?:1.6.0_26]
    	at java.net.URLClassLoader.access$000(URLClassLoader.java:58) ~[?:1.6.0_26]
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:197) ~[?:1.6.0_26]
    	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.6.0_26]
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:190) ~[?:1.6.0_26]
    	at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) ~[bukkit.jar:git-Bukkit-1.7.2-R0.1-b2969jnks]
    	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) ~[bukkit.jar:git-Bukkit-1.7.2-R0.1-b2969jnks]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:306) ~[?:1.6.0_26]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ~[?:1.6.0_26]
    	at java.lang.Class.forName0(Native Method) ~[?:1.6.0_26]
    	at java.lang.Class.forName(Class.java:247) ~[?:1.6.0_26]
    	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ~[bukkit.jar:git-Bukkit-1.7.2-R0.1-b2969jnks]
    	... 9 more
    

    Any ideas would be appreciated.

  • Avatar of Tux2 Tux2 Sep 16, 2013 at 06:53 UTC - 0 likes

    @MadCowsMinecraft: Go

    No updates necessary! No API breakages have been made. :D Why release an update to a stable plugin that still works?

  • Avatar of MadCowsMinecraft MadCowsMinecraft Sep 15, 2013 at 21:11 UTC - 0 likes

    Um... Updating it for 1.6.2 through 1.7 yet????

How long have you been using the plugin?

  1. Choice:

  1. Results
  2. 0 comments

Facts

Date created
Aug 28, 2011
Categories
Last update
Sep 28, 2013
Development stage
Mature
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
ClayGen
Downloads
7,853
Recent files
  • R: v1.7 for 1.6.4 Sep 28, 2013
  • R: v1.6 for CB 1.6.2-R1.0 Jan 26, 2012
  • R: v1.5.2 for CB 1.0.1-R1 Oct 12, 2011
  • R: v1.5.1 for CB 1240 Oct 07, 2011
  • R: v1.5 for CB 1240 Oct 06, 2011

Authors

  • Avatar of Tux2
    • Manager
    • Author