Appleseed
Description: This plugin allows players to plant and grow trees that drop items, such as apples, on the ground around the tree. This can be a fun way to help your players to obtain hard to find items like apples, cocoa beans, etc. Cooked pork trees or the like can be entertaining as well. :)
Features:
- Plant items in soil(aka farmland) and grow a tree that drops that item on the ground
- Config file that controls allowed types of trees, item drop interval, and the need for fertilizer
- Permissions to control who can plant trees(and what type)
Installation: Drop Appleseed.jar in your Bukkit server plugins folder and restart/reload the server. After the plugin loads the first time the Appleseed/config.yml file will be created. See below for details on what is contained in the config file. Restarting/reloading the server is required for the plugin to see changes to the config file.
Fertilizer: If trees have the setting "RequireFertilizer" set to "Yes", then they will stop dropping items and require bonemeal as fertilizer to continue. To fertilize a tree, hold bonemeal in your hand and right-click anywhere on the trunk of the tree. Fertilizing more than once doesn't hurt, neither will fertilizing while a tree is still dropping items.
Signs: If a player has permission, they can place a sign on a planted tree that reads "[Appleseed]". The sign will show the type of tree it is, and the color of the text will indicate it's status. If the text is light blue, the tree is an "infinite" tree and will never require fertilizer. If the text is green, then the tree is healthy and dropping items. If the text is red, then the tree requires fertilizer before it will continue dropping items.
Config File: Remember, the config file is a YAML file, so the indentation is significant.
- DropInterval: This determines how often items might drop. The default is 60 seconds; any value lower than this might cause lag.
- FertilizerItem: Item used to fertilize a tree. Defaults to bone meal.
- MaxUncollectedItems: Optional, approximate maximum number of items that can sit uncollected under a tree.
- MaxTreesPerPlayer: Optional cap on number of trees a player can plant.
- MaxIsPerWorld: Optional, if MaxTreesPerPlayer is defined, this allows the max to be either per world or server-wide.
- WandItem: Right click a tree with this item in hand to see its type and fertilizer status.
- MinimumTreeDistance: Optional, minimum distance between trees.
- SignTag: Text that should be placed within square brackets on signs (defaults to "Appleseed").
- TreeTypes: This section defines the allowed types of trees that can be planted. The following values must be set for each tree type:
- DropLikelihood: The chance of a drop happening each interval. Can be set from 0-100, where 100 is always drop and 1 is one chance in a hundred intervals. Fractional values now permitted.
- RequireFertilizer: If set to Yes, the trees of this type will stop dropping items and require bonemeal to continue (if you set this to yes, either DropsBeforeFertilizer or IntervalsBeforeFertilizer must also be set).
- DropsBeforeFertilizer: Sets the approximate number of drops before the tree gets tired and requires fertilizer (this option cannot be combined with IntervalsBeforeFertilizer).
- IntervalsBeforeFertilizer: Sets the approximate number of time intervals before the tree gets tired and requires fertilizer (this option cannot be combined with DropsBeforeFertilizer).
- TreeType: Defines the type of tree that will grow from the sapling. Can be "Standard", "Spruce", "Birch", or "Jungle".
- MaxFertilizer: Optional, approximate number of times a tree can be fertilized. After the maximum is reached, the tree dies (trunk disappears and the leaves decay).
Permissions:
- appleseed.plant.*: This will allow the planting of any item in the AllowedTreeTypes list.
- appleseed.plant.apple: This only allows the planting of an "apple".
- appleseed.infinite.plant: Trees planted by a player with this permission will never stop dropping items.
- appleseed.infinite.fertilizer: Trees fertilized by a player with this permission will never need fertilizer again.
- appleseed.infinite.cap: This allows a player to plant more than the defined MaxTreesPerPlayer.
- appleseed.wand: Players can right-click a tree with a wand item(defaults to wooden hoe) to get type of tree and fertilizer status.
- appleseed.sign.place: Player has permission to place an [Appleseed] sign on a tree.
This video demonstrates how to plant an apple and a cookie. Note that the drop rate has been increased for demonstration purposes.
hello,
will it be updated for release R4?
cheers!
@Redstoner_Pro
I'll add caps per type to my to-do list. Not sure when it'll get done, though.
For those items, I'm guessing the item name in the config file is not right. Here are the correct names:
Hello there, first, thank you for this really nice plugin! But i cant seem to set a limit on my appletrees, there are over 2000 drops on the floor at moment, even after i have set MaxUncollectedItems: 4 . What can i do agains this? Greetings,
Hey Guy, i realy love your plugin but i got 3 suggestions ...
1. appleseed.infinite.cap: This allows a player to plant more than the defined MaxTreesPerPlayer. Make it possible to define a cap per grp like appleseed.infinite.cap.5
2. Make the infinite cap PER type of tree ... so if u got a cap of 5 define 2 diamond and 3 apple and 4 goldenapple will make u plant: 2 Diamond (not more) 2 apple and after u can only on more apple or goldenapple bc cap is 5 ... so a max cap, and precap per type
3. Make coloredwool trees ... like redwool or greenwool, or is it already? i only can use white ... :S
regards
@Smiley43210
You need to force the yaml parser to read the item id as a string rather than a number by putting quotes around the item id. Silly, but it works. I'll see if I can come up with a way to remove the need for quotes..
Item ID's dont work for me. Im using Appleseed 0.7.0 and Craftbukkit 1.1-R3. I tried to put 360 as the id (melon slice) but when I try to plant it, it wont work.
@redsgreens
Thanks for the update and the hard work!
I just uploaded Appleseed version 0.7.0 that includes the following changes:
It is awaiting admin approval but should be available for download soon.
@gamerphate
Item IDs are currently supported, but data values are not. I'll consider adding it in a future release.
Would this work with custom items with spout?
Like can I use an Item ID with Data value as a drop?
Such as , 318:1034 (all custom items use FLINT with DATA)
Right now it just uses names, any support for this? I want to make a Hemp Tree ;)
Thanks for the response! Please consider it as, there are no onCropGrow events and all that so as you know there are no custom plants in the game. So if I can make a tree drop the custom materials, it gives me a way to work around this. It just dawned on me today that your plugin might work as a patch to this problem when you add that. I still enjoy what it offers as do my players, but if you have time, please think about it, would bring this to a whole new level :)
Looking forward to trying this out on CB 1.1-R1. Following your page for the update. :)
I just uploaded Appleseed version 0.6.6 that has the following changes:
It still needs admin approval but it should be available for download soon.
Love it! Would you be willing to make a version that let's normal trees drop saplings? If trees could drop saplings (or arc them from the canopy) then something like the "Self Planting" plugin, in conjunction with this, would let forests spread/regrow.
I have used this appleseed plugin for a while now, and its awesome. Recently, I added multi-world support to my server, and now the secondary world produces unlimited fruit on the ground. Meaning, I can walk by my apple tree and although its limited to 6 fruit on the ground, 14 is not uncommon to find. In addition, some are not visible yet still exist. For example, I have a golden apple tree that has no fruit lying on the ground, but walking by it I pick up 3 or 4 golden apples. Just a couple issues I though you may wish to be aware of. I use "My Worlds" as my multi-world plugin. Thanx for the awesome trees, btw.
I have a problem that when I try and add my own tree types, [I.E. glowstone dust,..] that it will no longer recognized any of the default trees as well as the new one I added in.
good to see this is still going :D downloading again :D
i will be adding this to my server! (at a later point)
This mod is brilliant
Really dont understand... this plugin works for ages on mine server without even small problem.
i vote for approval due long time usage on another servers!
cheers!
@lennon223
He cant post one until his project is approved. (Hey moderators- this is a good one! I've used it)