WorldGuard TreeFarm Flag
WorldGuard TreeFarm Flag
WorldGuard extension to plant and protect saplings where a tree gets
destroyed and to block block placement inside of these regions
even if player is op/can build.
current version: 1.6 (now with QwickTree support, apples and shears)
How to use this?
this plugin adds a new region flag to worldguard: "treefarm"
- allows destruction of logs/leaves if set to deny or set to allow even if player is not op/can not build.
- replaces logs on dirt/grass by saplings (same type as the log) if set to deny or set to allow and player is not op/can not build
- prevents sapling drops.
- drops random apples (configurable)
- denies building if set to deny or set to allow and player is not op/can not build
so simply use the usual worldguard region command, like this:
/region flag <region> treefarm deny
to have a treefarm, which isnt even editable by ops/owners/members, or:
/region flag <region> treefarm allow
to have a treefarm, which is editable by ops/owners/members, or:
/region flag <region> treefarm
to turn treefarm the treefarm effect off in this region.
Commands
- /treefarm reload
Permissions
- treefarm.reload - Allows to reload the config file.
Default Config
settings: mcmmo-leveling: false qwick-tree-chopping: false apple-chance: 5 allow-shears: false messages: block: saplingdestroy: Let them grow! blockplace: This is a treefarm. You can't build here. blockdestroy: This is a treefarm. You can't destroy this here.
Dependencies
Required:
WorldGuard
WorldGuard Custom Flags
Optional:
McMMO
QwickTree
WG Block Restricter
to whitelist which blocks are still allowed in denied treefarms(except for leaves, logs, saplings)!
Click here for some other plugins using WorldGuard Custom Flags.
Problems ?
If you have problems with this plugin read the F.A.Q.. If this did not help you, you can receive help here.
ATTENTION ATTENTION ATTENTION ATTENTION
I have made my own plugin based on the concept of this one. https://www.spigotmc.org/resources/wgtreefarmflag.16369/
ATTENTION ATTENTION ATTENTION ATTENTION
On the most part this plugin works great however there's an annoying glitch that allows players to destroy leaves in a protected, non tree farm region.
Yes, update to 1.8 please!!
Any chance you could update to 1.8
Many Thanks
Hey I am having a slight issue, I don't want any apples to drop so I set it to 0 in the config yet there are still a lot of apples dropping per tree, how do I fix this?
Any chance you could include crops? I would like to have a small community farm (much like a vanilla village farm) near my spawn point. I just want new players to be able to farm a few crops before adventuring on into the rest of the world.
I was wondering if you would be interested in taking on this plugin idea that uses WorldGuard Custom Flags. http:forums.bukkit.org/threads/wgcf-anvil-damage-flag.295485/
Version 1.6
@Anewil
1. set the flag to "deny" instead of "allow" (allow = op edit mode)
2. thats on purpose
3. on purpose too
i will add options for you to enable sheers and apple farming later.
@StiDJa @FabioZumbi12 also i will see if i can do something about the mcmmo and qwicktree compat.
I found few issues 1. Sapling with op / * not replanting 2. You can't use sheers 3. Apples dont drop
Ok I have found the problem, MCMMO has since been updated. Can this please be updated to support the new MCMMO please? Thanks.
Hi, as of today the saplings are not replanting, is there a reason for this?
How we can make this plugin to be compatible with QuickTree: http://dev.bukkit.org/bukkit-plugins/qwicktree/
The sapling is replanted, but the tree dont break, still needing break block by block.
Thank You.
@BangL
Nice, ill check it out. Thanks!
@StiDJa
Version 1.5
mcMMO woodcutting leveling is now triggered if enabled in config (along with the TreeFeller ability) a reload command and its permission was added
@BangL
Hi has this been fixed now?
@maxlehot1234
i don't know. but i think that all plugins of this kind would need to go the way i dont want to go, since it looks like there is no other ;)
@BangL
Oh ok...any other plugin can do this? treeassist is good plugin or not?
@maxlehot1234
i experimented with it alot now, and the deeper i get into it the more problematic it gets. it looks like the only usable method to generate trees in bukkit is World.generateTree(), which differs completely from the method which is called "naturally". it is pretty unsafe and would require tons of additional checks before called. of course i could simply call this "natural" function in theory, but that would require to access craftbukkit code directly which is the last thing a plugin-dev should do.
so i am sorry, but i really have to cancel the tree-grow function for now. it would be too unsafe and unstable for a public release.
@BangL
fantastic thank u!