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.
(Latest dev builds/bleeding edge builds) - - Dev builds from Jenkins
(Source code hosted on Github) - - Source Code
Future Plans (a.k.a. ToDo):
- noting, feature complete
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
Credits
@thescreem for the original plugin!
Banner
Feel free to use this banner!! :)
Donations
I'm very happy about any donation.
Support me & buy me some beer, this makes me happy and keeps me interested in this plugin.
Donation chain: -> I receive some money -> Buy coffee -> Work longer -> Faster Updates -> Your benefit!
There is a button on top of this page (right to the different tabs)
I'm accepting bitcoins, too! :)
Address: 1NnrRgdy7CfiYN63vKHiypSi3MSctCP55C
License
This plugin is released under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) license!
To be honest, I've never made an automated farm. There's never really been a need for mass-production and punching it was easier than setting up a whole piston system.
Also noticed another thing, when its auto-replanting plants it works but then leaves a phantom seed behind that can't be picked up and just kinda floats there until it disappears.
@Pentarctagon
Well, at the moment I only check for player trampling. I can see if I can change this.
Regarding the melons/pumpkins. Why do you need support for it? I mean, you can just make a farm which pushes e.g. the melon block away and not the piston.
This is why I excluded melons and pumpkins.
Thanks for your feedback (:
Awesome, thanks :)
edit - quick question, I have trampling disabled but it only disables it for people, animals can still trample the plants. Is that intended?
edit2 - would it possible to include melons?
@TryChen08
Updated.
If not yet approved use the links from dropbox/github above!
@Pentarctagon
Added an option for it :)
@TryChen08
Will add the new items very soon.
Also adding sugar canes.
Edit (@11/02/2012 01:30 AM GMT +1)
Update should be ready w/in the next 24 hrs
please make a update for 1.4.2 !
Yeah I did that, but then it still outputs a blank line.
@Pentarctagon
Yeah, you can set the message to ' '.
I can add an option for that in the new version (aiming for a release after 1.4, maybe with the new items like carrots and stuff, and sugar cane support, too!)
Is it possible to disable the message when you try and farm a not-fully-grown plant?
if i use water to harvest wheat it doesnt replant all only like 90% of my farm gets replanted, is it cause i have big farm (3360 plots) and i have to set replant time to 2 min so it will move all wheats/seeds to end of farm or what?
@Raxxon
i used the link u gave already it says its out of date but it still enables the plugin.
@xGh0sTkiLLeRx
Makes sense then, I was using water to destroy the wheat en mass.... I'll reconfig my perms accordingly then. :)
@twisted420mc
Use the github/dropbox link or the direct link, file is not yet approved!
http://dev.bukkit.org/server-mods/superwheat/files/7-v0-6-1/
@Raxxon
It's only pulling out of the inv if the player has destroyed it.
Just re-checked it:
If I don't have the noseeds permission, and destroy it with the hand/item in hand, it will only re-plant if I've got enough seeds (seeds, cocoa beans or netherwart)
@Raxxon
Same here... breaking cocoa beans doesn't take anything from my inventory when it auto replants. Would be nice if there was an option to change that.
still doenst work for me, says the plugin is out of date now.
@xGh0sTkiLLeRx
Seems to work now. I assumed it would pull seeds from inventory to replant though if you don't give a player the noseeds permission... It is not pulling seeds at all which kinda makes the seeds/noseeds useless....
@Raxxon
You can use dropbox or github ;)
Or the direct link to the file!
http://dev.bukkit.org/server-mods/superwheat/files/7-v0-6-1/
Waiting for the file to show up (still shows 0.6 for download...)
@Raxxon
@twisted420mc
@Alexplanetst
@procnole
Fixed in 0.6.1 - please delete your whole folder when the server is stopped - should work again!
(I'm still not sure why this issue is caused - since the message was the same...)
@Enigma2012
Since the wood blocks are pushed, there is no support for it (more or less yet).
The plants will re-grow if the are pushed by a piston or water flows over it.
I'll look into it, but unless I figured it out, maybe control a water block with a piston which flows down - then the water check would work!
Cocoa bean doesn't re-grow for some reason if one uses the cocoa bean farm from Monkeyfarm. Here is the link: http://www.youtube.com/watch?v=hbaihKS1ANA&feature=watch_response