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


    WTF when i downloaded this shit 1 000 000 000 of zombies shows up in my house every night!!!!!!!!!
  3. Offline


    Then WoldGuard seems to be good, only mcMMO is causing problems.
    The automatic farm would be possible that way, yes.

    Maybe the algorithm got stuck.
    That usually doesn't happen except you are destroying a huge man-made structure.

    This plugin has nothing to do with spawning anything and I can't help you if you don't give me any information about your Craftbukkit and Minecraft version etc. etc.
  4. Offline


    it was a large multi branch tree
  5. Getting a blue-white screen. Tried deleting the names in the Player folder, and it works O.K... until I get close to where I chopped the tree that caused this crash.

    I had planted a tree near walls, and when I chopped it down, my friend and I got this crash.

    My server is using the following plugins:
    Show Spoiler


    Client mods:

    Zan's Minimap
    Dynamic Lights
  6. Offline


    I am having the same problem as him.
  7. Offline


    I am running MCMMO, Stackable, Vegetation, Appleseed, and OtherBlocks.
  8. Offline


    Looks nice, but a little overpowered... I'm gonna use it anyway XD
  9. Offline


    what would happen if the rate the logs get auto chopped up were slowed down? maybe one log per sec up? maybe its just the speed they all go poof that is causing this crash.
  10. Offline



    never half tree's again!
  11. Offline


    For the conflict with mcmmo, are there any fixes we can do to mcmmo, like changing stats that would make this mod work? I wouldn't mind fully disabling the woodcutting xp if it would make this mod work.
  12. Offline


    I would like to put a feature request/compatibility request in. Any chance we can have this be compatible with the GiantTree plugin? A user accidentally chopped one down on my world and the server became pretty much un-responsive until the pieces of tree and sapling on the ground de-spawned. I love this plugin but my users like the giant trees more.
  13. Yes i have same problem, it happened when i instaled mcMMO plugin(so mcMMO fault) i think Woodcuter abiluty(wood explode) conflict with that addon.
  14. Offline


    Try disabling mcMMO support in ChopTree's options :p

    I will have to look into that.
    Can't you just use /protect or /full to disable ChopTree in the chunk(s) the tree is in?

    No, it's mcMMO in general that conflicts.
  15. Offline


    I will most likely end up doing this if you decide not to go anywhere with this. I wanted to avoid it because we have a great number of trees near the giant trees.

    A quick and dirty fix I can think of is to allow the user to set a maximum number of tree blocks that the plugin goes through. I haven't looked at the code but I am sure your algorithm finds the entire "tree" first before it actually breaks the blocks. You could have a check built into the algorithm (IE if blocks found is greater than maximum blocks then return). This would allow people to use the GiantTrees plugin easily. It would also add a basic catch to prevent the algorithm from using a ridiculous amount of CPU because it has to iterate through tens of thousands of blocks.

    I can't really thing of another way of doing it besides actually interfacing with the GiantTrees plugin in some fashion to find out where they are.
  16. Offline


    I think I'll add an optional cap on how many blocks can be chopped.
    However I really wanna fix the mcMMO compatibility first.
  17. Offline


    umh I was reading over the thing and I love this plugin but you said houses that are made out of log are safe however someone on my server built a wall and messed something up, destroyed a log block and the whole wall came down. I am not sure if it is something in the config or not but could you help me
  18. Offline


    Hi , My serveur use the id 160 for some tree , how i can make ur plugins chop down tree whit 160 log?
  19. Offline


    Is anyone running this on 1060? Does it work fine?
  20. Offline


    pleas update tis plug-in for PermissionsBukkit ;)
  21. Offline


    I'm getting so fuckin' pissed off because of this "Bluescreen" thing! How do I fix it!

    Oh, it works now!

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


    If you would just read the previous page it says it's because of an mcMMO conflict.
  23. Offline


    It got fixed just after I posted the comment, and I don't really care anymore
  24. Offline


    Choptree seems to override my worldguard region protections. Is this to be expected, or do I have something wrong?
  25. Offline


    works with 1060 :)
  26. Offline


    Is it possible to add an option fpr restricting this plugin on several tools ( e.g choptree only with diamond tools )
  27. Offline


    Yes, it's in the first post.
    Open the config file and set UseAnything to false.
    Then add the materials in the material list on the bottom.
  28. Offline


    I really enjoy this plugin and so does the players on my server.
    But as of right now, I'm adding permissions to the server using permissionsbukkit.

    Along with that, I've added WorldGuard. But for some reason, players can chop down trees, even though they're not allowed to, in that area.

    In other means, they can not remove or place any block, but they can chop down trees.
    How do I fix this?

    By the way, these are their permissions:
                choptree.chop: true
                choptree.command.check: true
                choptree.command.toggle: true
                choptree.command.chunk: true
    PS: How do I give myself access to the /choptree commands?
    These permissions are really confusing compared to other plugins.
  29. Offline


    the client crashes with a blue-white screen and keeps crashing for minutes after that.

    00:15:37 [INFO] Plugins: AutoClear, RawcriticsOreObfuscationPluginSpout, Jail, ChestShop,
     HeavenActivity, CFBanner, iConomy, BigBrother, AuthMe, NarrowtuxLib, Showcase, Spout,
     DynamicMarket, Votebans, BorderGuard, MyWarp, MyHome, Minequery, WorldGuard,
     WorldEdit, playerLives, FoundDiamonds, ChatCensor, Command iConomy, NaturalGiants,
     CommandHelper, GroupManager, ScheduledAnnouncer, CreativeStick, Essentials,
     StealthLogin, GuestPrev, StockCraft, Permissions, EpicGates, NormalizedDrops, NSCommand,
     Stats, bcVote, SortInventory, mcMMO, LWC, EssentialsSpawn, Achievements, iChat,
     VanishNoPickup, NoCheat, PreciousStones
  30. Offline


    The plugin does neither support WorldGuard nor PermissionsBukkit (yet).
    So ChopTree probably says it couldn't find any permissions and uses default, which is based on people being op or not.
  31. Offline


    I'm not sure if this has been stated before, but I had the blue screen crash and I think I know exactly how it happened. I'll draw out a diagram to show me chopping down a tree:

    [log] <-- chopped this log

    (logs move down)

    [log] <-- chopped this log

    (logs move down)

    [log][log][log] <-- chopped this log
    ^ ^
    | |
    (maybe it glitched because it tried to move these logs down, when they were already touching the ground)

    This is what I noticed anyway, it only seemed to happen on trees with logs sticking out horizontally.

Share This Page