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. i cant wait for the new version. might donate!
     
  3. Offline

    askmeaboutlo0m

    New version is basically done, but I want to test it thoroughly before releasing it :p
    And it will need quite some documentation too.
     
  4. Offline

    Sphax

    Ok I understand.
    So the only solution for me would be to check the proximity of the chopped log for the same level AND above. Then, just trees with 1 block as trunk would be chopped. That will protect houses and artificial big trees. :)
     
  5. Offline

    Stahlbrand

    Does this support group managers? Because I have installed it and its not recognizing perms.
     
  6. Offline

    askmeaboutlo0m

    No, it doesn't support Group Manager.
    But your plugin has a fake Permissions option I believe, try switching that on.

    //ChopTree 1.2 is out.
    Added lots of stuff, the plugin is very configurable now.
    However if no options are changed it will still behave like version 1.1, so still no configuration needed. The only exceptions are commands, they are on by default.
    And working Permissions this time :p
     
  7. Offline

    Stahlbrand

    Fake perms is on, i guess i was just experiencing same issues as others with perms. Thanks for update I will install!
     
  8. Offline

    askmeaboutlo0m

    Maybe you were, I thought the plugin wasn't even saying that it detected Permissions.
    Is it working now?

    Permalink was added, it should now work with CraftBukkitUpToDate.

    And that has been added too :p
     
  9. Offline

    Maxis010

    @ Raspberry
    I know the item requirement has been added but it wasn't any axe, it was anything, period. I actually had the entire server consider axes as worthless because they could take out entire trees with their fists
     
  10. Offline

    askmeaboutlo0m

    I didn't like that either, it made wood chopping cost no time and no material.
    Now that you can decide on tools and make them wear out faster too.
     
  11. Offline

    tassox33

    This doesn't seem to work with TreeAssist, I saw that you had auto replant of saplings on low priority. Do you have a timeframe of when you might get to it? thanks
     
  12. Offline

    askmeaboutlo0m

    I am not sure, I am working on other plugins and of course also doing other RL stuff :p
    Maybe next week?
     
  13. Offline

    tassox33

    Thank you for the quick relpy
     
  14. Offline

    Krispy

    Feature request: Could we adjust how much each "chopped" wood block costs the tool in durability? I'd like to make trees wear out axes but not quite at the rate that blowing up trees works at. Thank you. :)
     
  15. Offline

    askmeaboutlo0m

    Yeah, that should be possible :p
     
  16. Offline

    St3vYb0y

    Hi, your plugin works great.
    My problem is, that my players can only chop with diamond axe as I wrote it to the config, but I (admin) can chop with any of the axes, although I deleted them from the config.
    I'm using permissions, so maybe a permission node is the cause for this.
     
  17. Offline

    askmeaboutlo0m

    Yes, there is a permission "choptree.override.useanything". If you have that node then it overrides the config and lets you use any tool.
     
  18. Offline

    St3vYb0y

    Ah ok thanks, now I've got to figure out how I can exlude commands in Permissions :D
     
  19. Offline

    kronflux

    K. so. thanks. version 1.2 just took out half my city, because it's all connected via logs.
    checked the settings, it says that only trees can be cut this way. and on top of that, I had a stick in hand, and its set to only work with axes. way to go. downgrading to 1.1, because it actually fracking worked.
     
  20. Offline

    St3vYb0y

    Maybe you are also admin?
    Then you automatically have the nodes activated, that ignore the restrictions. And I think a tree are logs which are in any way, long distances too, connected to leaves.

    Edit:
    @askmeaboutl00m: I haven't yet found a way to exclude commands in bukkit.
    When it is not possible, could you remove the override node or make it toggleable, if you want to keep it?
     
  21. Offline

    kronflux

    well, I downgraded to 1.1, which works perfectly. doesnt screw up the tree detection or whatever.
    luckily I had a backup of my map.
     
  22. Offline

    askmeaboutlo0m

    1.2 works too (obviously, it can even take out a whole city and not crash, 1.1 couldn't because of errors in the algorithm) and it has got override functions. I understand you're angry, but I am not responsible for what you did since it does say the reason for it plainly in the documentation.
    However there should be a way to disable overriding, I didn't notice the conflict with admins having the "*" permission node.
    //Actually, you can just disable the plugin by toggling it off. I will include a warning in the documentation.
    //Also, read this: http://forums.bukkit.org/threads/request-saying-its-broke-doesnt-help-solve-the-issue.839/
    Report a problem that way, then I'd also rather help you.

    I should make overriding toggleable, yes, else it conflicts with admins having all permissions.
    //Overriding is kind of togglable, just disable the plugin by using the normal toggle command.
     
  23. Offline

    Maxis010

    Code:
    Works
    - -permission.node.here
    Doesn't
    - -permission.node.*
    That will allow you to kill the override node
     
  24. Offline

    askmeaboutlo0m

    Still, if you have many plugins installed it might be very tedious to do without the one little star :p
    But toggling the plugin off works fine, disabling override wouldn't really have a different effect.
     
  25. Offline

    Maxis010

    Well my advice only counts for Perm 2.#
    Perm 3 introduces wildcard removal
     
  26. Offline

    Kaydie

    Random noob question (i'm still pretty new to this hehe)

    for the mat list, what value would i put in for just fists?

    basically im looking to have the trees only work with axes and fists, with the exception of gold axes, therefore i need to use the item list but i want it to work with no item.


    Any help? thanks :)
     
  27. Offline

    askmeaboutlo0m

    You can't because fists do not have an item value, they are null.
    And I didn't implement fists because of two reasons:
    1. If you activate fists and then punch a tree with any item in your hand (which is basically your fists too) it still won't recognise that item as fists.
    2. If you allow fists you might as well allow anything, because by allowing nothing you give the players free choice, everyone has a "nothing" in their inventory.
    I didn't think that someone would want an exceptional item though, like you don't want gold axes to chop stuff :p
    So I probably should include [tools], [non-tools] and [hands] options in the material list to fix that issue.
     
  28. Offline

    kronflux

    I know you're not responsible. I'm not angry at you, just angry in general. Apologies if I made it seem that way. Just frustration. regardless, I've downgraded to 1.1, which works perfectly for me. I don't really see a problem with it, and thus, I simply won't update unless I absolutely need to, at which point I'll address the situation.
    Are you sure it's got something to do with overriding the restrictions?
    personally, I like the error, if it is an error, in the algorithm, because it chops down trees perfectly, while not harming my city when breaking logs like that.
    I have yet to have any issue whatsoever with 1.1, and in my opinion, you should go back to doing it however you were in that version. Just my own opinion.
    either way, I'd like to request that you release the source to 1.1(if you haven't already. I havent checked yet.), if you don't go back to that way of detecting whether something is a tree, as I'd like to continue compiling it as bukkit progresses.
     
  29. Offline

    Kaydie

    yeah it was just a thought because like some people may want to play around with the trees they are cutting.

    also i just tested this out and i broke my entire spawn by cutting one block haha, seems its the permissions thing like said before. going to look into it :p

    1.1 does not allow the "tree falling" mode, correct? - since i cannot seem to find any config or properties file o.o

    hehe i know im being so so picky sorry D: i like the tree falling idea much better because that way the trees take the same amount of hits to fall but you don't need to make a platform.

    Basically im trying to circumvent people leaving floaters without letting people get 100 wood in 2 minutes (thus obliterating forests and decorative trees >_>)
     
  30. Offline

    askmeaboutlo0m

    You didn't give me your permissions file, but if you have the "*" permission - yes.
    It overrides the material list and it overrides the tree check which results in your error.
    Also, it's only people with the "*" permission, everyone else works fine.

    The error is that if you have a structure of wood and it is shaped in a certain way it will cause the player's client to crash and they will keep crashing upon logging in until you delete their players file.
    That's a pretty brutal error and 1.2 fixed it.

    Source is released.
    And the problem is not the isTree algorithm (that one is actually still basically the same, just with less bugs and more structured), the problem is that you have the "*" permission :p
    No other players will have problems like you do and you can fix your own by disabling your plugin.
    I guess in the next version I'll add an option to override overrides (which is kinda silly, but meh).

    You can just use this version, I guess you are the only one that has the "*" permission and therefore you are the only one with override activated. Other players will be normal.
    You can make yourself normal by just not giving yourself the "*" permission or instead toggling the plugin off every time you want to interact with logs that you don't want to destroy.
    The only problem is the override which only you have.
     
  31. Offline

    Kaydie

    ok Thanks lo0m, REALLY noob question inc, wherein do i change that permission? you can ignore this and insult me if its too stupid a question i don't mind ^//^

    i LITERALLY just started my minecraft serv last night and first time ever touching bukkit etc. so i'm learning hehe
     

Share This Page