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


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

    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!

    • 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)

    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.

    Show Spoiler

    Approach tree...

    ...and punch it.

    All logs will be yielded.

    The leaves will decay like normal.


    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 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 file will look like this when first created:
    # -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.

    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)​

    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.

    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
    • 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


    I am having this problem too on my server. I hope it gets fixed, such a great mod.
    Running build 860.
  3. Offline


    Anyone have a solution to the grey-screen problem or is it better to remove the mod until an update has been released?
  4. Offline


    Remove until update.
  5. Offline


    Thanks for the information, this will help to track down the error.
    It seems to me like it's a CraftBukkit bug since no immediate changes on the code caused this error.
  6. Offline

    Jazy Lopez

    ...Well I guess i encountered the Unknowid bug... I chopped a tree with the plugin and worked perfectly (Got so Happy), I chopped another one and it worked fine, then when I chopped a third tree my client crashed and I couldn't log back in. I deleted my user from the server to clean my inventory. I loged in fine at the spawn BUT when I returned to the place where I chopped the tree and goten kicked it happen again, and once again on log in I crash... I guess the cursed blocks are on the floor and my client is trying to identify them. Pleaseeeee fix this bug, I really like this plugin
    PS: Avoid this Plugin till an update fixes this as it can REALLY mess up the server for some time....
  7. Offline


    Works with newest New Recommended Build #928?
  8. Offline


    Strange to see how so many people are having issues. It worked for my server on CB 818 and it's still working great on 860. That said, we're not running WorldGuard or Essentials, but we are running Permissions version 3.1.2. If it helps I could give you a detailed list of plugins (about 8 in all).
  9. Offline


    The error occurs with MCMMO only, AFAIK.
  10. This is great. We are using the Giant Tree mod on our server, and the chunk protect is just awesome.
  11. Offline


    I was using this just fine on one server, then set up another for a friend and it worked once, then failed and throws various errors, all similar but mostly this:
    2011-06-22 17:41:37 [SEVERE] Could not pass event BLOCK_BREAK to ChopTree
        at me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener.denyPermission(
        at me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener.onBlockBreak(
        at org.bukkit.plugin.RegisteredListener.callEvent(
        at org.bukkit.plugin.SimplePluginManager.callEvent(
        at net.minecraft.server.ItemInWorldManager.c(
        at net.minecraft.server.ItemInWorldManager.a(
        at net.minecraft.server.NetServerHandler.a(
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.b(
        at net.minecraft.server.NetServerHandler.a(
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(
    Any suggestions? =\
    We use:
    Bandages v1.2.3
    CommandBook v1.5.2
    FenceStack v1.13
    HSQL v1.8.1.3
    Heroic Death v1.8.1
    Permissions v3.0a+MP (Multiplay's version)
    Remote Bukkit v0.1
    Runecraft v2.7
    WorldEdit v4.6
    Wormhole Xtreme 0.854
    WormholeExtremeWorlds 1.0
    mcMMO v1.0.24

    I was using all of these except WorldEdit/CommandBook on the previous server. I believe I tried disabling mcMMO support on this one and it still failed, seeing that as a possible cause.

    Thanks a bunch!
  12. Offline


    Out of curiosity, I decided to test it on CB935, and the behavior was identical. It works fine until (seemingly at random) you get the blue-gray screen of doom.
  13. Offline


    Omg i can't log into my fucking server... i keep getting blue-gray screen of fucking doom D:
  14. Offline

    Jazy Lopez

    If other people are on tell them to stay away from your area, and wait around 6 minutes. If no one else is on then best thing to do is clear your inventory (Or use an editor to change your position) and wait 6 minutes before returning to the area.
    Happened to me.... :(

    EDIT: Also I do believe this is happening becuase the programmer is using pop.tree in the code. Which when I looked at lytreehelper's code it was actually creating new instances of wood... Maybe the pop method is'nt working correctly?

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


    I can't even log into my server, and u have to be in the chunk for the items to go away, is there a plugin which can /pickup blocks

    Oh and I've been waiting for 29 minutes...

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

    Jazy Lopez

    There is a plugin that picks up blocks but you have to be in the chunk, and you don't have to be in the chunk for the blocks to disappear, you just have to be in the server, I tested it out :D Sadly you will most likly have to erase your character because you may have some of the cursed blocks...
  17. Offline


    Anybody know if this is going to be updated to 935?
  18. Offline


    I really hope so. But it's important to understand that the developer has a life too.

    I'm curious as to your list actually. My players have become attached to McMMO. The addition of ChopTree just adds to the theme I'm going for. I suppose I COULD go without Essentials, I suppose it's time to use the ol' Process of elimination.

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


    I use WorldGuard and Essentials... Actually I run 50 plugins total including ChopTree -- CB#935, haven't had any issues yet. :)
  20. Offline


    Update It To 953 CraftBukkit,1.7
  21. Offline


    It would be great if someone could update this. It is a very helpful plugin for my server. Thanks
  22. Offline


    Now that Minecraft has been updated, we'll have to wait for MCP (Minecraft Coders Pack) to be updated before just about ANYONE can update ANY MOD. That means waiting for the author of MCP to update it to 1.7+, and then wait for the various plugin developers to have the time to code the needed changes.

    If you'd like to keep track of MCP, you can find it here:
  23. Offline


    I got this horrible problem... im using 1.23

    Every time we cut too many trees (2-6) our client blue screens, then blackscreens and we cant login for 10mn cause it will just blackscreen.

    Im using 1.23 and 953 RB
  24. Offline


    I'm using version 1.23 and I've found that ChopTree is incompatible with Essentials v2.4. Every time that I run ChopTree in conjunction with Essentials it gives me "[ChopTree] You have no permission to perform this command."

    If anyone knows a way around this I would appreciate it greatly :)
  25. Offline


    Anyone know if this plugin is still being supported/updated?
  26. Offline

    Jazy Lopez

    Yeah its a bug mentioned on the thread, best is to not use this plugin
    (I think Mcmmo was conflicting that bug)
    But regardless it may lead to the players having to clean their inventories in order to log back in...
  27. Offline


    It will be when I find the time, I am on a travel right now.
  28. Offline


    Got an error, when I change the properties through the file or IG via commands, it gets back to "default" properties after reload or restart.
    I know it's outdated, but it's such a great mod. Cheers to the op.
  29. Love it, truly love it. I'm curious if you can find a way to make trees 'fall over' rather than just dropping by one block or 'popping'?
  30. Offline


    Making a tree "Fall over" would mean a client-side mod, since there's no such thing as a sideways log in minecraft. The game doesn't have the physics you're asking for.
  31. I figured one might utilize elements of movecraft to make it happen. One can make movement of blocks happen, you'd just have to utilize the element that makes it recognize that you've chopped down the lowest block to make it initialize a movement algorithm. Not saying it'd be easy, mind you. Yes, visibly, it'd be a pile of blocks laying down (Since, as you say, no 'sideways blocks'), but it could be a pile shaped roughly in the way the tree was shaped.

    1. Configurable Option: If chopped by hand or (x) tool, will drop by one log, if chopped by other (x) tools, will pop like cactus.
    IE ~
    # Will descend one block if chopped by:
    Mat ~ Hand
    Mat ~ Wood Axe
    Mat ~ Stone Axe

    # Will pop like cactus if chopped by:
    Mat ~ Iron Axe
    Mat ~ Diamond Axe

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

Share This Page