[INACTIVE][MECH] AppleTree v0.4 - Trees now drop apples [699]

Discussion in 'Inactive/Unsupported Plugins' started by ngc0202, Feb 15, 2011.

  1. Offline

    ngc0202

    AppleTree - The only standalone apple tree plugin.


    **IMPORTANT: NEW DEV, USE THIS THREAD: LINK**

    Version: v0.4

    AppleTree is a very simple plugin that was designed with the sole idea of turning trees into apple trees. There is a configuration file that will be created in the same folder as craftbukkit called appletree.properties, which you can use to customize different aspects of the plugin.

    Properties Guide:
    • CanDropDecay - (true/false) Whether or not apples drop on decaying leaves.
    • GAChance - (number between 0 and 1) The chance of a golden apple drop. 5% = 0.05
    • CanDropGold - (true/false) If golden apples can drop.
    • AChance - (number between 0 and 1) The chance of an apple drop. 5% = 0.05
    *NOTE: The properties file is located in the root server directory!*

    Features:

    • Apples spawn from destroyed leaves.
    • Chance to spawn golden apples as well.
    • Properties file for different settings.
    Changelog:


    Version 0.4
    • Allowed compatibility with newer bukkit versions.
    • Fixed the "Stupidly long constructor" error
    Version 0.3.1

    • Fixed the bug where golden apples don't spawn.
    • *363 downloads*
    Version 0.3


    • Added a appletree.properties file for customizations.
    • Added source.
    • *360 downloads*
    Version 0.2


    • Allowed drops from decaying leaves.
    • *247 downloads*
    Version 0.1


    • Original release.
    Source: http://bit.ly/gt9Gxp
     

    Attached Files:

  2. Offline

    ngc0202

    I would, but I think that strays too far off the main idea of this plugin. Try out TreeHugger or BlockDrop, both of those can accomplish that.
     
  3. Hey Ngc0202.

    I think there is a bug with golden apple drop, i noticed that it simply dosent drop at all. I have tryed to set it to 1.0 but no drops.

    i am Using CB 339
    here is my .properties
    Code:
    #Fri Feb 18 08:25:34 CET 2011
    CanDropDecay=true
    GAChance=1.0
    CanDropGold=true
    AChance=0.02
    San-
     
  4. Offline

    ngc0202

    Hey sansai86, is there any errors in the console? I'm not at my computer right now so I can't test it out for myself...
     
  5. No it dosent say anything (besides its loaded), the red apple works perfect tho.
     
  6. Offline

    ngc0202

    Oh, weird. I'll check it out when I get a chance.
     
  7. Offline

    Solaris765

    yes. an easy plugin to bring apples back!
     
  8. Coolio :]
     
  9. Offline

    floid

    I have also the issue with golden apples. Even setting drop chance as 1.0, no golden apple is dropped.
     
  10. Offline

    ngc0202

    Sorry for the delay, I'll look into it now.

    EDIT: HAHAHAHAHA I musta been tired, found the mistake.
     
  11. Offline

    Nima304

    The only thing I'd really like to see from this plugin is the ability to configure what is dropped from a tree via item ID and drop percentage (for example, I could make a tree drop leaf blocks as well).
     
  12. Hello again :)

    I continued testing, and it still seems to have issues.
    The Red apple seems to work, but Golden apple dont drop like it should, i have gotten a very few golden appels by hitting the leaves, but it dosent drop on decay.

    I have tryed from 0.01 to 1.0 on ( GAChance ). ( and weird enough i got the golden apple hit-drop on the 0.01 and no drops at all on 1.0 )

    Tested with CB 339
    Code:
    AppleTree activated.
    No errors in the console.

    San-
     
  13. Offline

    ngc0202

    D: I'll look at it right now.

    EDIT: Solved the not dropping on decay, but I'd need to do some more testing to see what's wrong with it.
     
  14. Offline

    Entice

    Doesn't seem to be working with 1.3, any news on fixing?
     
  15. Offline

    ngc0202

    Specifically, what's wrong?
     
  16. Offline

    CzarRazc

    Nothing drops at all.
     
  17. Offline

    ngc0202

    That could be a problem... Any console errors?
     
  18. Offline

    CzarRazc

    2011-02-23 23:36:47 [SEVERE] Could not pass event LEAVES_DECAY to AppleTree
    java.lang.NoSuchMethodError: org.bukkit.World.dropItemNaturally(Lorg/bukkit/Loca
    tion;Lorg/bukkit/inventory/ItemStack;)Lorg/bukkit/entity/ItemDrop;
    at com.ngc0202.appletree.AppleTreeBlockListener.onLeavesDecay(AppleTreeB
    lockListener.java:65)
    at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.j
    ava:257)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
    at net.minecraft.server.BlockLeaves.g(BlockLeaves.java:131)
    at net.minecraft.server.BlockLeaves.a(BlockLeaves.java:120)
    at net.minecraft.server.World.h(World.java:1503)
    at net.minecraft.server.World.g(World.java:1434)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:329)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  19. Offline

    ngc0202

    Thanks that helps a lot, I'll see what I can do.
     
  20. Offline

    CzarRazc

  21. Offline

    Entice

    My trees seem to be dropping...mushrooms :X
     
  22. Offline

    CzarRazc

    any progress ngc?
     
  23. Offline

    ngc0202

    Yes, I beat my last record of damage as demoman...
     
    [F(r)iend] likes this.
  24. Offline

    CzarRazc

  25. Offline

    ngc0202

    TF2 lol

    EDIT: I'm working on it now

    EDIT2: @Entice, What??
     
  26. Offline

    floid

    I have the same problem as CzarRazc.

    I think it's related to the 1.3 update, because there are the "using long constructor" messages and one of them is about AppleTree.
     
  27. Offline

    ngc0202

    Ok I fixed the long constructor thing, and I should have the 1.3 fix out soon. They will be released together.
     
  28. Offline

    CzarRazc

    ok, thx ngc.
     
  29. Offline

    ngc0202

    Apparently this is a Bukkit issue, the event this plugin needs is having some issues and will probably be fixed soon, we apologize for the inconvenience.
     
  30. Offline

    Padathir

    Thanks for checking on it though :V
     
  31. Offline

    Phaedrus

    Minor thing, but can you move the properties file into it's own folder within the plugins folder?

    Otherwise, great work!
     

Share This Page