SuperWheat

SuperWheat - Plants auto re-grow after harvesting!

Version v0.9

Description

This plugin allows to the automatic re-planting of specific plants like wheat, nether warts, carrots, sugar cane, potatoes & cocoa (plants).
It supports different harvesting modes, by a player (permission checks), water or a piston.
Additionally you can limit if the plants should be destroy-able by a piston or water; or prevent players to destroy not fully grown plants.
It's a rebirth of SuperWheat from @thescreem
The code rewritten, but all credit of the idea and the original plugin goes to thescreem!

Ships with a config & permissions!

Features

  • Support of different plants
    • wheat
    • nether warts
    • cocoa (plants)
    • carrots
    • potatoes
    • sugar canes
  • Players can't destroy your plants until they're fully grown.
  • Once you harvest the plant, the plant is automatically re-planted.
  • Supporting three harvesting methods
    • Player (also able to check permissions)
    • Water
    • Pistons
  • Configure what the creative guys are allowed to do
  • Uses the seeds out of the inventory again! (Only when broken by a player, permission to bypass it!)
  • Enable or disable trampling of plants
  • Command for reloading
  • MultiWorld support

Config

# For help please either refer to the
# forum thread: http://bit.ly/superwheatthread
# or the bukkit dev page: http://bit.ly/superwheatpage

# Message which should be displayed while trying to destory a pre-mature plant
message: '&6[SuperWheat] That plant is not fully grown yet!'
# Should the message above be displayed
message-enabled: true
creative:
  # Should there be drops in creative mode
  dropsCreative: false
  # Prevent the destroying of plants in creative mode
  blockCreativeDestroying: false
wheat:
  # Plugin enabled for wheat?
  enabled: true
  # Trampling of wheat is still enabled
  trampling: true
  # How long should be the delay until the wheat re-appears (punching)
  delayHit: 3
  water:
    # How long should be the delay until the wheat re-appears (water flow)
    delay: 5
    drops:
      # Which things should be dropped?
      wheat: true
      seed: false
    # Prevent water from destroying plants
    prevent:
      premature: true
      mature: false
  piston:
    # How long should be the delay until the wheat re-appears (piston push)
    delay: 5
    drops:
      # Which things should be dropped?
      wheat: true
      seed: false
    # Prevent the piston from destroying plants
    prevent:
      premature: true
      mature: false
# Please see the commented section for wheat above - same system for nether warts
netherWart:
  enabled: true
  delayHit: 3
  water:
    delay: 5
    drops:
      netherWart: true
    prevent:
      premature: true
      mature: false
  piston:
    delay: 5
    drops:
      netherWart: true
    prevent:
      premature: true
      mature: false
# Please see the commented section for wheat above - same system for cocoa plants
cocoaPlant:
  enabled: true
  delayHit: 3
  water:
    delay: 5
    drops:
      cocoaPlant: true
    prevent:
      premature: true
      mature: false
  piston:
    delay: 5
    drops:
      cocoaPlant: true
    prevent:
      premature: true
      mature: false
# Please see the commented section for wheat above - same system for carrots
carrot:
  enabled: true
  trampling: true
  delayHit: 3
  water:
    delay: 5
    drops:
      carrot: true
    prevent:
      premature: true
      mature: false
  piston:
    delay: 5
    drops:
      carrot: true
    prevent:
      premature: true
      mature: false
# Please see the commented section for wheat above - same system for potatoes
potato:
  enabled: true
  trampling: true
  delayHit: 3
  water:
    delay: 5
    drops:
      potato: true
    prevent:
      premature: true
      mature: false
  piston:
    delay: 5
    drops:
      potato: true
    prevent:
      premature: true
      mature: false
# Please see the commented section for wheat above - same system for sugar canes
# Special note: the plugin doesn't check if the block is fully grown or not!
sugarCane:
  enabled: false
  delayHit: 3
  water:
    delay: 5
    drops:
      sugarCane: true
    prevent: false
  piston:
    delay: 5
    drops:
      sugarCane: true
    prevent: false

Commands & Permissions

Only the bukkit permissions are supported! I highly recommend that you use a plugin for permissions like bPermissions or PermissionsEX (PEX)!!
If no permission system is found, all permissions are for OPs only!

Command: /superwheat reload
Aliases: sw, superw
Description: Reloads the configuration on the fly
Node: SuperWheat.reload

SuperWheat.*
Description: Includes all permissions

SuperWheat.wheat.*
Description: Includes all permissions for wheat

SuperWheat.wheat.regrowing
Description: Automatically re-grows the harvested wheat

SuperWheat.wheat.destroying
Description: Allows you to destroy not full grown crops

SuperWheat.wheat.seeds
Description: Drops seeds, too

SuperWheat.wheat.noseeds
Description: Allows auto re-plant if no seeds are in the inv

SuperWheat.netherwart.*
Description: Includes all permissions for nether wart

SuperWheat.netherwart.regrowing
Description: Automatically re-grows the harvested nether wart

SuperWheat.netherwart.destroying
Description: Allows you to destroy not full grown plant

SuperWheat.netherwart.noseeds
Description: Allows auto re-plant if no nether wart is in the inv

SuperWheat.cocoaplant.*
Description: Includes all permissions for cocoa (plant)

SuperWheat.cocoaplant.regrowing
Description: Automatically re-grows the harvested cocoa

SuperWheat.cocoaplant.destroying
Description: Allows you to destroy not full grown plant

SuperWheat.cocoaplant.noseeds
Description: Allows auto re-plant if no cocoa beans are in the inv

SuperWheat.carrot.*
Description: Includes all permissions for carrots

SuperWheat.carrot.regrowing
Description: Automatically re-grows the harvested carrots

SuperWheat.carrot.destroying
Description: Allows you to destroy not full grown plant

SuperWheat.carrot.noseeds
Description: Allows auto re-plant if no carrots are in the inv

SuperWheat.potato.*
Description: Includes all permissions for potatoes

SuperWheat.potato.regrowing
Description: Automatically re-grows the harvested potatoes

SuperWheat.potato.destroying
Description: Allows you to destroy not full grown plant

SuperWheat.potato.noseeds
Description: Allows auto re-plant if no potatoes are in the inv

SuperWheat.sugarcane.*
Description: Includes all permissions for sugar canes

SuperWheat.sugarcane.regrowing
Description: Automatically re-grows the harvested sugar cane

SuperWheat.sugarcane.noseeds
Description: Allows auto re-plant if no sugar canes are in the inv

Downloads/Source Code/Dev Builds

Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.

https://dl.dropbox.com/u/26476995/jenkins.png (Latest dev builds/bleeding edge builds) - - Dev builds from Jenkins
https://dl.dropbox.com/u/26476995/github.gif (Source code hosted on Github) - - Source Code

Future Plans (a.k.a. ToDo):

  • Open for suggestions...
  • Let water flow over/through wheat/crops -> I guess impossible :(

Make sure to take a look at the always up to date ToDo!

Known Bugs

  • Message is sometimes displayed twice

Changelog

Version 0.9

  • Added multiworld support
  • Added /superwheat reload command

Version 0.8

  • Fixed hydration value of farmland ignored

Long changelog

Credits

@thescreem for the original plugin!

Banner

Feel free to use this banner!! :)

http://dl.dropbox.com/u/26476995/superwheat_banner.png
http://dl.dropbox.com/u/26476995/superwheat_banner_small.png

Donations

If you really like my plugin, you can if you want make a donation via PayPal!

There is a button on top of this page :)

License

This plugin is released under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) license!

http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png

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

  • Avatar of xGh0sTkiLLeRx xGh0sTkiLLeRx Jul 23, 2014 at 17:15 UTC - 0 likes

    @d3voo: Go

    I'm planning to release an update to this in the near time :)

    Want to have a dropbox acc with 500MB more space? Contact me!

    Need a dev? Drop me a PM!

    Server | Twitter | Github

    Donations are very appreciated!
    http://goo.gl/tXb7G

  • Avatar of d3voo d3voo Jul 23, 2014 at 11:58 UTC - 0 likes

    please update this :(

  • Avatar of beezy9876 beezy9876 Feb 08, 2014 at 15:31 UTC - 0 likes

    How do you set it up

  • Avatar of Enigma2012 Enigma2012 Dec 31, 2013 at 18:23 UTC - 0 likes

    Ghostkiller,

    This seems to work for all plants except potato and carrot. These plants won't regrow for some unknown reason. I've double-verified the config and even used the config with the comments at the top. I am using version 1.7.2.

    Finally! Got it to work on 1.7.2. For some unknown reason, setting the server up to run on BukkitGUI fixes the problem.

    Last edited Jun 04, 2014 by Enigma2012
  • Avatar of xGh0sTkiLLeRx xGh0sTkiLLeRx Dec 29, 2013 at 16:15 UTC - 0 likes

    Normally should work fine, will check this and if the plugin is broken release an update.
    Cheers

  • Avatar of fbafaro fbafaro Dec 26, 2013 at 03:38 UTC - 0 likes

    The plant doesn't automatically get re-planted after beeing harvest, is it bc the plugin hasn't been updated?

  • Avatar of hplowe hplowe Dec 05, 2013 at 16:27 UTC - 0 likes

    Anyone have this working in anything past 1.6.4?

  • Avatar of blomman2 blomman2 Oct 08, 2013 at 11:04 UTC - 0 likes

    cant u add cactus :)?

  • Avatar of imaboy321 imaboy321 Sep 05, 2013 at 21:53 UTC - 0 likes

    Nevermind! Fixed it!

    BFAK:90779877,cd4ca95772e994552628473061de1379386b0ae93227acb036d14a457eecca5c

  • Avatar of imaboy321 imaboy321 Sep 05, 2013 at 16:10 UTC - 0 likes

    doesnt work with Pex at all. im deoped and it doesnt replant even with the permissions

Facts

Date created
Mar 26, 2012
Category
Last update
Jan 18, 2013
Development stage
Release
Language
  • enUS
License
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0)
Curse link
SuperWheat
Downloads
15,621
Recent files
  • R: v0.9 for CB 1.6.2-R0.1 Jan 18, 2013
  • R: v0.8 for 1.4.7 Dec 25, 2012
  • R: v0.7 for CB 1.4.5-R1.0 Nov 02, 2012
  • R: v0.6.1 for CB 1.3.1-R2.0 Aug 14, 2012
  • R: v0.6 for CB 1.3.1-R1.0 Aug 13, 2012

Authors