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


    Thank you so much for your work! This looks amazing :) Installing.
  3. Offline


    No problem^^
  4. Offline

    Mike A

    Post your PayPal email in your thread please ^^.
  5. Offline


    I can send you the e-mail address if you want me to, but I don't want to leave it in the open for spammers to get it :p
  6. Offline


    No more tree balls! Woot!
  7. Offline


    Lumberjack's job made easier? YEEEEEEEEEEEEEEEEEEEEEESH!
  8. Offline


    Does this work with iJobs ?? would i get paid for whole tree or bottom part??

    edit: just tested it doesnt count :( if you could sort that out i would be happy to use and recomend
  9. Offline


    I will look into it, if I can figure out how it works I'll implement it^^

    //Well, there is no source file in the iJobs thread so I can't look into the code. And as long as the original author doesn't update the plugin there's no way for me to modify it or to find a way to tell it that you chopped a tree.
    The only way would be to make a jobs plugin for iConomy myself, but that would take a while. If the original author of iJobs doesn't update his plugin it would be a good idea to make a new one though.
  10. Offline


    Could you add support for mcMMO?
    If you chop the bottom, you only get exp for the 1 wood.
  11. Offline


    wouldn't it just be easier to increase the amount of xp mcmmo gives for that 1 wood?
  12. Offline


    I will add this as soon as you make permissions support so this only works for certain groups
  13. Offline


    it might be easier but wouldn't it be less efficient, every tree is different so it would give you either a low amount of exp for a big one or a lot of exp for a small tree...

    Great plugin i tried it out and it works really well on my server [diamond]
  14. Offline


    ther a but bug with the dark logs some time it not remove them is liek 1/5 it does destory all they logs and you need to delte them manuel :) but white and logs work fine :)
  15. Offline


    I'll test this out, not sure if it'll link well with TreeAssist, though don't see any reason it shouldn't.
  16. Offline


    Again, like with iJobs I have to see if I can get hands on the source code, else I can't implement things like that. But I'll look into it.
    //It should be possible, I'm working on it.

    No problem, will do!
    //Added it. It'll come soon with the next version.

    That has to have something to do with how the trees are shaped, the type of log is disregarded until the blocks are dropped.
    How do the trees look, are they especially tall?
    If a tree doesn't have leaves on top it tends not to be recognised as a tree, I will try to reproduce the bug and fix it.
  17. Offline


    Would you be interested in incorporating any of the additional features from LyTreeHelper and AutoPlant and AppleTree? Such as customized drops from leaf decay, automatically replanting a tree-specific sapling, chance of monster spawning from the leaves.
  18. Offline


    A great thanks from all of the players from the Lumberjack class on my server. :)
  19. Offline


    could u make that leaf disappear instantly?
  20. Offline


    I think that would take away the simplicity of this plugin, creating a wide range of control features for trees isn't really the focus :p

    No problem :p
    The new version will be out when I get that mcMMO stuff figured out.

    Again, that would take a config file and I don't think it's important enough or necessary to be integrated.
  21. Offline


    Yeah, I get that, but at the same time I'd rather use one working plugin to get my tree functionality than 3 half-broken incompatible and unsupported ones. :p

    I kind of feel that developers that are creating very similar plugins should maybe try and work together and collaboratively release a polished plugin with a nicely defined feature set. A small team of 2 or 3 coders looking at the code has a better chance of making things work right and finding the bugs, and sharing the load of upkeep.

    just my off topic 2 cents :p
  22. Offline


    Nice plugin but I feel it's too easy... Would it be possible to not destroy the tree but lower it by 1 block if a block of the trunk is removed ?

    And probably a lot more difficult would be to also automatically drop the whole branch on the ground if it's broken.

    Thanks to that, players would need to chop trunks and branches themselves but a bit more easier (and realistic). That would be pretty awesome ! :)

    In another mod maybe ?
  23. Offline


    I like the idea .. please made something that you must do something to have this skill .. like lvl something in mcMMO
  24. Offline


    It would be interesting to grant this as a permission node - so only a certain group of players can "lumber jack" ;)
  25. Offline


    Any way you could make some sort of optional penalty or something? I'd like to see these options:

    > Max chopped logs per axe (Wood: 2, Stone: 4, Iron: 16, Gold: 128, Diamond: 32)
    > Durability penalty on axe (Every extra log chopped is +1 extra damage to axe - if axe breaks, logs still fall)
    > Chance of log falling (75% chance of a log being dropped?)
    > Ability to turn on/off per player (Or, even better, application to the mcMMO Tree Feller ability - but that'll never happen)
  26. Offline


    Do saplings still drop normally?
  27. Offline


    Since many people want additional features I might just create a TreeControl plugin or something :p

    I might make a proper big plugin with many knobs to twist. But this I think should stay simple :p
    As I am already trying to implement mcMMO I can also implement the Tree Feller ability on the way, not that much of a problem.
    Those are really good suggestions^^

    I will implement a Permissions node, you can control use of this plugin through that.

    As I said: it's already implemented, will be in the next version.

    Since leaves decay normally saplings appear normally too (as you can see in the pictures).
  28. Offline


  29. Offline


    Split the plugin into two then! =P ChopTree and ChopTree Lite! Also, really glad you can implement it into Tree Feller. My server is mcMMO-intensive and I would like to get rid of the big trees. Perhaps having higher Lumberjack levels will chop more logs per felling of a tree? Lv. 0 could drop 4 logs, Lv. 50 dropping 8, Lv. 100 dropping 16, 200 dropping 32, 400 dropping 64, etc.
  30. Offline


    I have to work myself into mcMMO first before I can attempt to specify levels :p
    Also, how do you mean making it drop more or less logs? Do you mean all logs disappear, but the drop rate differs or do you mean if you chop a tree only X blocks fall down with it?

Share This Page