Inactive [FUN/MECH] ChopTree 1.24 - Chop Trees by Removing Lowest Block - Like Cacti [1000] (by Arcwolf)

Discussion in 'Inactive/Unsupported Plugins' started by askmeaboutlo0m, May 1, 2011.

  1. Offline

    askmeaboutlo0m

    ChopTree - Chop trees like cacti or make logs move down while chopping
    Version: 1.24


    ATTENTION:
    There seems to be a plugin conflict where the client crashes with a blue-white screen and keeps crashing for minutes after that.
    If you encounter the error please give me a list of the plugins you are using, with enough lists I will be able to outrule what causes it. Please also tell me if you are using any client-side mods.


    Thanks very much to Arcwolf for developing version 1.24!

    Tested with Craftbukkit build [740], [766], [798], [818], [1000].
    Supports: Permissions v. 2.7.2 (Phoenix) and mcMMO v. 1.0.07.
    Please give me feedback, ask any questions you like and/or provide suggestions!
    Thank you!

    Features:
    • Lets trees act like cacti - remove a block and all blocks above are yieled too.
    • Or you can make that log blocks move down one by one instead - no more climbing trees.
    • Works with all three tree types (they all yeild their own wood).
    • Also works with "big" trees that have multiple branches - makes felling them a lot easier.
    • Restrict using this plugin to certain tools only.
    • Supports mcMMO and Permissions.
    • Only works on trees, houses made of logs are safe!
    • Chunk protection to make your tree houses safe.
    Download (JAR file) | Source (ZIP file)


    Description:
    This plugin was requested by Britich and is inspired by the Canary plugin RealTree by billyoyo.
    However, it is not just a simple port of that plugin, it was made from scratch after Britich's description.

    Pictures:
    Show Spoiler

    [​IMG]
    Approach tree...

    [​IMG]
    ...and punch it.

    [​IMG]
    All logs will be yielded.

    [​IMG]
    The leaves will decay like normal.


    Set-up:

    Even though I added a lot of things for version 1.2 it will act like the original one if you don't change any settings - with the exception of players are able to toggle the plugin.​
    To run this plugin just copy it into your plugins folder. On first startup it will create a ChopTree folder and a ChopTree.properties file, which you can edit.​
    There will be a ChopTree.players file which saves player toggles and a ChopTree.chunks file which saves protected chunks.​


    Properties File:
    Show Spoiler

    The ChopTree.properties file will look like this when first created:
    Code:
    # -ChopTree Properties-
    # You can add or change the command and toggle command aliases here.
    # Because of technical limitations the console commands will always be "ChopTree" and "ct", but the in-game comments will be taken from here.
    
    Command = ChopTree, ct
    Toggle = ToggleChop, tc
    
    # Here you can change the options (can also be done in-game).
    
    ActiveByDefault = true
    UseAnything = true
    MoreDamageToTools = false
    InterruptIfToolBreaks = false
    SupportMcmmoIfAvailable = true
    TreeFellerNeeded = false
    LogsMoveDown = false
    OnlyTrees = true
    
    # -Material List-
    # If the "UseAnything" option is false, the plugin will take the items you can use to chop trees with from here.
    # You can either put in the material's name or its ID.
    
    mat = WOOD_AXE
    mat = STONE_AXE
    mat = IRON_AXE
    mat = GOLD_AXE
    mat = DIAMOND_AXE
    
    Command and Toggle can be changed manually by just adding more aliases for them, seperated by commas. Note that if you run the command from the console it will always have the aliases "ChopTree" and "ct", no matter what it says in your file.
    You can also remove either of the lines to disable the command for players completely.

    The options can be changed manually in the file too. To find out which option has which effect look at the "Commands" section below.

    The material list will only be used if the option UseAnything is false. In that case you can specify which items players can use to chop trees with this plugin, other items will not trigger plugin effects (except chunk protection). You can either use the item ID or it's name.
    If you want to make tree chopping more costly you can only allow gold axes for example.
    List of item IDs on Minecraft Wiki, list of all item names in the Bukkit documentation.


    Commands:
    Show Spoiler

    ChopTree - show status of all options.
    ChopTree (option) - show status of specified option.
    ChopTree (option) (true/false) - switch option on or off.
    ChopTree chunk - shows if your current chunk is protected.
    ChopTree protect - deactivates the plugin in your chunk.
    ChopTree fullprotect - disables destroying logs in general (not only with plugin) in your chunk.
    ChopTree reload - reloades changes from your properties file (the normal reload won't do that)
    ToggleChop - toggles the plugin on and off for a player.

    (option) can be:
    ActiveByDefault - choose if plugin will be toggled on or off for players (on).​
    UseAnything - if activated players can use any item to chop trees, else materials list will be used (off).​
    MoreDamageToTools - toggles damage to tools for every chooped log (off).​
    InterruptIfToolBreaks - if activated tree chopping will interrupt if the tool breaks (off).​
    SupportMcmmoIfAvailable - if activated plugin will support mcMMO if it can find it (on).​
    TreeFellerNeeded - choose if players need to have mcMMO's tree feller enabled (off).​
    LogsMoveDown - if activated logs will move down when chopped instead of popping like cacti (off).​
    OnlyTrees - if enabled only trees can be chopped, else all logs can be (on).​
    EnableOverride - if enabled choptree.override nodes can be used (off)​



    Aliases:
    Show Spoiler

    ct or "command" in properties file for ChopTree.
    tc or "toggle" in properties file for ToggleChop.
    c for chunk.
    p for protect.
    f or full for fullprotect.
    r for reload
    a or default for ActiveByDefault.
    u or anything for UseAnything.
    m or damage for MoreDamageToTools.
    i or interrupt for InterruptIfToolBreaks.
    l or down for LogsMoveDown.
    o or trees for OnlyTrees.
    e or override for EnableOverride.


    Permissions:
    Show Spoiler

    Permissions node - description (default if you are not using Permissions)

    choptree.chop - chop trees using this plugin (all)

    choptree.command.check - check what status the options have (all)
    choptree.command.change - change status of options (ops)
    choptree.command.toggle - toggle plugin per player (all)
    choptree.command.protect - protect/unprotect chunks (ops)
    choptree.command.chunk - see if the chunk is protected (all)
    choptree.command.reload - reload properties file (ops)

    Override nodes will be ignored if EnableOverride is false.

    choptree.override.moredamagetotools - will not have tools damaged for every log (off)
    choptree.override.useanything - can use any item (off)
    choptree.override.interruptiftoolbreaks - chopping won't interrupt when the tool breaks (off)
    choptree.override.treefellerneeded - tree feller is never needed (off)
    choptree.override.onlytrees - can chop all logs, not only trees (off)
    choptree.override.chunkprotection - chunk protection will be ignored (ops)


    To Do:
    • (Medium) Test with WorldGuard, remove conflict
    • (Medium) Enhance isTree algorithm a bit more
    • (Medium) Add [tools], [non-tools] and [hands] to material list
    • (Low) Add configurable drops
    • (Low) Add automatic sapling replant
    Changelog:
    • Version 1.24 by Arcwolf - Download (JAR file) | Source (ZIP file) - July 28. '11
      • Removed deprecated methods
      • Fixed mcMMO compatibility
      • Updated for Craftbukkit build [1000]
    • Version 1.23 - Download (JAR file) | Source (ZIP file) - June 02. '11
      • Fixed an error with iron axe receiving double damage as if it wasn't an axe
      • Added /ct reload command to reload changes from properties file
    • Version 1.22_2 - Download (JAR file) | Source (ZIP file) - June 01. '11
      • Recompiled for Minecraft 1.6.6/Craftbukkit [818]
    • Version 1.22_1 - Download (JAR file) | Source (ZIP file) - May 22. '11
      • Fixed chunk protection Permissions
    • Version 1.22 - Download (JAR file) | Source (ZIP file) - May 22. '11
      • Fixed chunk protection
    • Version 1.21 - Download (JAR file) | Source (ZIP file) - May 16. '11
      • Added EnableOverride option (off by default) to fix wildcard problem
    • Version 1.2 - Download (JAR file) | Source (ZIP file) - May 14. '11
      • Rewrote tree finding algorithm
      • Fixed some bugs leading clients to crash
      • Fixed and extended Permissions support
      • Added toggle commands
      • Added mcMMO support
      • Added option that player has to have mcMMO's TreeFeller enabled
      • Added optional damage to tools
      • Added optional tools list to restrict using this plugin only with certian tools
      • Added option to let trees go down one by one instead of popping like cacti
      • Added chunk-wise protection
      • Included plugin.yml into source download
      • Probably more
    • Version 1.1 - Download (JAR file) | Source (ZIP file) - May 5. '11
      • Added Permissions support
      • Fixed bug with some pine trees not being chopped
    • Version 1.0 - Download (JAR file) | Source (ZIP file) - May 1. '11
      • Initial Release
     
  2. Offline

    vrga

    Have you tried the version from this post?

    It works fine for me on my CB1337.
     
  3. Offline

    FooBarFooBar

    The plugin works perfect but i get this error every time somebody chops a tree.
    my plugin list: announcer,backup,choptree,craftbook,essentials,foundboxx,
    basic,noenderman,oklogger,permissions,serversigns,
    suggestions,worldedit,worldguard,dynmap,lwc,mobarena


    Code:
    1-11-06 19:10:38 [SEVERE] Could not pass event BLOCK_BREAK to ChopTree
    java.lang.IllegalAccessError: tried to access field net.minecraft.server.ItemStack.damage from class me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener
    at me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener.updateInventory(ChopTreeBlockListener.java:107)
    at me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener.Chop(ChopTreeBlockListener.java:87)
    at me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener.onBlockBreak(ChopTreeBlockListener.java:58)
    at org.bukkit.plugin.java.JavaPluginLoader$40.execute(JavaPluginLoader.java:534)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:201
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:165)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:500)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    ~Timon
     
    Gandalf_911 likes this.
  4. Offline

    PyPKjE

    Need plugins like maybe has something to offer?
    because I see the plugins creator is not going to renew his work :/
     
  5. Offline

    Wehttam664

    It's not a crash but I'm getting an error that says:
    Code:
    2011-11-09 07:52:01 [SEVERE] Could not pass event BLOCK_BREAK to ChopTree
    java.lang.IllegalAccessError: tried to access field net.minecraft.server.ItemStack.damage from class me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener
        at me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener.updateInventory(ChopTreeBlockListener.java:107)
        at me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener.Chop(ChopTreeBlockListener.java:87)
        at me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener.onBlockBreak(ChopTreeBlockListener.java:58)
        at org.bukkit.plugin.java.JavaPluginLoader$40.execute(JavaPluginLoader.java:534)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:201)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:98)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:497)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    It's not really a concern but I'm just curious what's wrong.
     
  6. Offline

    AOD_Batman

  7. Offline

    Tim Visee

    You didn't updated the newest version of askmeaboutlo0m (I think, because he didn't released the soruce for this one yet) I mean the newest version has a lot of more features, he realeased it somewhere in a post on this thread. Also why do you removed the legacy permissions? A lot of users use them and It works fine, never remove anything which is working..!
     
  8. Offline

    Trollkemada

  9. Offline

    number1_Master

  10. Offline

    re4397

    can you update to last version of bukkit ?
     
  11. Offline

    joselitoeu

    Code:
    [SEVERE]Could not pass event BLOCK_BREAK to ChopTree
    And some times everybody gets disconnect after this.
     
  12. Offline

    klocky

    My server have propably problem with this plugin, here is log:
    [SEVERE] Could not pass event BLOCK_BREAK to ChopTree
    Could you help me please?
     
  13. Offline

    DrVolzak

    Not everyone on my server, but some people, get a blue and white screen. This happens after someone uses worldedit. Funny this is, I was on my server without choptree and the same blue and white screen happens.
     
  14. Offline

    klocky

    I am not plugin developer but i think we arent use compatible permissions.
    When i didnt use any permissions plugin. I didnt get this error "Could not pass......" But i am not sure i have true...
     
  15. Offline

    Sayshal

    Using the version someone put in here.. It's not working on 1.0.0 :( PLEASE KEEP THIS ALIVE!
     
  16. Offline

    NavidK0

    This one was one of my favorite plugins... I wish the author would've kept it going. It would've saved me the trouble of making my own. :(
     
  17. Offline

    itsatacoshop247

    Hey guys, my plugin TreeAssist has a feature just like this (its not as developed yet, but I've been working on improvements and will probably incorporate some of the ChopTree code), and I have already updated to 1.0. I'll be continuing updating mine (as it has other features) regardless of whether this Dev returns or not.
     
  18. Offline

    SergeH

    Great plugin except when it cut down my house made of 10 stacks of logs
     
  19. Offline

    Freestyling

  20. Offline

    666bob

    Make this for 1337, please! :] I love the concept. And, it's something really nice to have on a Lan Server. One of a kind thing for a server.
     
  21. Offline

    mrboese

    Private update round 2:

    Choptree with:
    * Replant
    * WorldGuard region protection

    Download: <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 14, 2016
  22. Offline

    AZNjimmyKID

    will this work for 1597
     
  23. Offline

    DaEgo

    it works on 1609^^
     
  24. Offline

    Aly

    so I am having this weird thing where they can use everything EXCEPT axes and the plugin will work. I have it set to UseAnything=true, but I am also using GroupManager so I was wondering if that is why it is not working? Any help would be nice. I don't get any errors or anything in console, it just does that in-game. :(
     
  25. Offline

    auiotour

    I can't seem to get this to work on Birch trees, I haven't tried any other types yet. I disabled all addons except Spout and ChopTrees and can not get it to do anything. please help. I have build 644 of Spout, latest Spoutcraft, and 1597 for bukkit.
     
  26. Offline

    lipe123

    2011-12-29 22:41:38 [SEVERE] Could not pass event BLOCK_BREAK to ChopTree
    java.lang.Error: Unresolved compilation problems:
    The method addXP(SkillType, int, Player) in the type PlayerProfile is not applicable for the arguments (SkillType, int)
    The method addXP(SkillType, int, Player) in the type PlayerProfile is not applicable for the arguments (SkillType, int)
    The method addXP(SkillType, int, Player) in the type PlayerProfile is not applicable for the arguments (SkillType, int)

    at me.Iso.ChopTree.ChopTreeBlockListener.mcMMOFake(ChopTreeBlockListener.java:531)
    at me.Iso.ChopTree.ChopTreeBlockListener.popLogs(ChopTreeBlockListener.java:223)
    at me.Iso.ChopTree.ChopTreeBlockListener.Chop(ChopTreeBlockListener.java:81)
    at me.Iso.ChopTree.ChopTreeBlockListener.onBlockBreak(ChopTreeBlockListener.java:58)
    at org.bukkit.plugin.java.JavaPluginLoader$40.execute(JavaPluginLoader.java:539)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:201)
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:165)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:501)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:208)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     
  27. Offline

    DaEgo

    PLUGIN IS DEAD !
    do not post here anymore and go to -> TreeAssist
     
  28. Offline

    Neillithan

    Is there a way to make this tree chopping take longer when you are destroying the bottom most log? Terraria style?

    I don't want players to devour a forest in 2 seconds flat.
     
  29. Offline

    sovietboy

    This plugin has Swag :)
     
  30. Offline

    Gandalf_911

    I have the same problem, it's not crashing my server, but when someone chops a tree, this comes up.

    Would be awesome if ChopTree and TreeAssist could be combined into one plugin, because askmeaboutlo0m thinks about adding an "Auto-replant" feature anyway so why not? :)
    But that's my opinion.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  31. Offline

    Mista Epic

    It makes me lag, any way to fix this?

    EDIT: It seems it was just the server getting used to it. The more trees I would chop, the less lag I would get.
     

Share This Page