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.
2012-12-10 11:07:19 [SEVERE] Error occurred while enabling Appleseed v0.7.3 (Is it up to date?)
java.lang.NoClassDefFoundError org/bukkit/craftbukkit/block/CraftSign
at redsgreens.Appleseed.AppleseedTreeManager.updateSign(AppleseedTreeManager.java:530)
at redsgreens.Appleseed.AppleseedTreeManager.ProcessTrees(AppleseedTreeManager.java:147)
at redsgreens.Appleseed.Appleseed.onEnable(Appleseed.java:47)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.v1_4_5.CraftServer.loadPlugin(CraftServer.java:304)
at org.bukkit.craftbukkit.v1_4_5.CraftServer.enablePlugins(CraftServer.java:286)
at net.minecraft.server.v1_4_5.MinecraftServer.j(MinecraftServer.java:324)
at net.minecraft.server.v1_4_5.MinecraftServer.e(MinecraftServer.java:303)
at net.minecraft.server.v1_4_5.MinecraftServer.a(MinecraftServer.java:262)
at net.minecraft.server.v1_4_5.DedicatedServer.init(DedicatedServer.java:147)
at net.minecraft.server.v1_4_5.MinecraftServer.run(MinecraftServer.java:402)
at net.minecraft.server.v1_4_5.ThreadServerApplication.run(SourceFile:856)
Caused by: java.lang.ClassNotFoundException org.bukkit.craftbukkit.block.CraftSign
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:34)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 14 more
@snitride
I just uploaded Appleseed version 0.7.3 that takes into account the vanilla dropped item stacking behavior when counting the MaxUncollectedItems near a tree.
Hi there, i am using MC1.4.2 and your plugin seems to be working fine, but there is one problem, somehow the apple drop limit does not seem to work anymore. There are stacks of apples mounting up around the trees, also after setting config to allow max of 3 apples. Just for information, i am at the moment not using any automatic stacking plugins like nolagg..
Can you please fix this, thank you, greetings, snitride
@albertsboy You probably have your permissions set to "*", which includes appleseed.infinite.plant and appleseed.infinite.fertilizer. I'm not sure what permissions plugin you are using, but to do what you want you need to remove those two permissions from yourself.
is there a way that it can be changed so that a server owner has to actually fertilize a tree instead of it always being fertilized. i have it set to require fertilizer but the ones that I myself planted never require it. they show that they are always fertilized according to the sign and to when i use the hoe.
I would really like a way to wipe out trees for a player, I'm trying to make a tutorial world, and it would be great if there was a command to just wipe out their trees that I could have run when they exit the tutorial room, leaving space for another player.
Appleseed 0.7.2 works great for CB 1.3.2-R1.0
Thanks, LHammonds
Water_lily trees do not seem to be working, would you be able to fix this?
@redsgreens
Awesome. Thank you! I didn't want to chance losing my apple tree, so I didn't dare run it on 1.3.1.
@MedlarGW
Version 0.7.2 works just fine with 1.3.1.
I hate to complain and such, but do you plan to update Appleseed for 1.3.1?
Is there a way to add multiple wand items? or have it in 1 catagory such as all types of Hoes?
@redsgreens
my bad
is work now
@Zefram
IT WORKS FINE FOR ME.
Maybe next time you make a complaint you could give some detail about your server configuration, what version of the plugin you are using, what other plugins you are running, what output there is on the console, etc. Thanks.
Hey, is it possible to make this plugin compatible with mods? I'd really like to have some trees that drop items from the Technic Pack like Uranium or Copper, but im quite positive it only recognises Vanilla items by name. With that in mind, is there a way to make it drop by ID instead?
I think this is a great mod. It is nice to allow some things to drop more often, like cocoa beans and apples.
I do have a suggestion though. Perhaps it would be possible to customize the fertilizer per tree type? That way I could have a more rare item tree, say gold, require a fertilizer more 'expensive' than, say, a cobblestone tree.
@FiddyCraft for netherwart you must use nether_stalk in the config and its working fine.
I also cant get this to work with netherwart
Anyway you can do this for other plants like having a fern drop mushrooms >_>
It was the capital letters that were causing the problem. Thank you!