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

    MusicMonkey5555

    Thanks a ton Paulpkyou! Let me know if you need any help testing the white/blue screen issue to narrow down the conflict or anything. Also if you don't mind it would be cool for you to post updated source. You may even want to just pickup the plugin and make a new forum thread or a page on the dev site, if you don't mind. Assuming this is truly inactive, but it looks to be that way.
     
  3. Offline

    AVirusC

    You beat me to it! =) I was about to upload my modified version. Thanks for doing this as this plugin is a must have for so many people.

     
  4. Offline

    PDemon

    Hmm my server is using this on RB 1317 we don't seem to have trouble with it
    i am using Permmionsbukkit 1.2 + superpermbridge 1.2and in the permissionsbukkit configi type
    Example:
    superpermbridge.choptree.command.reload: true

    hope it helps
     
  5. Offline

    bigkevin112

    Your so awesome!!!! Thank you so much for doing this! I just tested in my server and its working great. There is one thing that I would love to see if you could add to it though. Is there anyway you could put in where the leaves like just drop instead of having to wait for them to decay away? Also I second that you should just pick up this plugin. Thats if you could and would want to.
     
  6. Offline

    Deathlysteve-

    awesome thanks... is it possible for you to make an option for the leaves of the tree to automatically go away when you chop it down? so it doesnt have to slowly decay, it just goes away when u chop the tree down.
     
  7. Offline

    Paulpkyou

    I'll work on the leaves option in a bit, currently working on other plugins.
     
  8. Offline

    beven66

    can you make the plugin for 1185 too please??=)
     
  9. Offline

    zarb

    the plugin linked in the OP works fine with CB 1337 so there really is no point in asking for updates. the server will generate an error how it couldnt pass the blockbreak onto ChopTree but it actually DOES pass it on and the trees get cut down like theyre supposed to, so just ignore that error and everything is dandy.
     
  10. Offline

    Tim Visee

    It need an update, if the plugin throws errors something goes wrong, so there's a problem which need to be fixed!
    The plugin also needs World Guard support btw...
     
  11. Offline

    zarb

    error looks like this if anyone cares:

    22:33: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)

    whomever decided to name his package askmeaboutloom (im thinking the choptree author?) - thank you for that, i had a good laugh about it.


    and @above me. yes youre right of course, i think i misphrased my point, which was: you can still use it if you want because its fully functional, so its not like youd be missing out waiting for it to get updated
     
  12. Offline

    Sayshal

    The dev seems to have left this project, can any one fix this? :/
     
  13. Offline

    Tim Visee

    He doesn't left his project, I had a conversation with him..
     
  14. Offline

    Sayshal

    Sorry to assume, but where is he?
     
  15. Offline

    Tim Visee

    I don't know :(
     
  16. Offline

    PyPKjE

    This is what this will update the plugin?
    Looking forward to a long and very necessary ...
     
  17. Offline

    mrboese

    I have an updated version with following changes:
    • Permissions always activated
    • Permissions added to plugin.yml (PEX needs it)
    • Instant-Replant (I will maybe change that behaviour, but it's better than nothing :) )
    • WorldGuard region based protection, which is easier than protecting every single chunk
    • Works with the newest build
    Commands:
    + /choptree rp <region name>
    + /choptree regionprotect <region name>

    Permissions:
    + choptree.commands.regionprotect
    + choptree.replant
     

    Attached Files:

  18. Offline

    Tim Visee

    I love the replant part but i've one question, could you add a function that you can't destroy that sappling for 3 secconds or so (confiugrable) so when you're destroying a tree that you didn't destroy the planted sappling..?
    (sorry for bad english)
     
  19. Offline

    redpois0n

    it crashed for me now, my client mods are my private client, its full of hacks.
     
  20. Offline

    airboy

    thx mrboese, but it dont work

    Code:
    2011-10-26 21:40:57 [SEVERE] Could not load 'plugins/ChopTree.jar' in folder 'plugins': WorldGuard
    org.bukkit.plugin.UnknownDependencyException: WorldGuard
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:136)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:112)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Server: MC 1.8.1 Bukkit 1353
     
  21. Offline

    Sayshal

    a) 1353? 1337 is recommended, so that might be why.
    b) Look closer at the error:
    'org.bukkit.plugin.UnknownDependencyException: WorldGuard'
    Try installing WorldGuard? His version works for me perfectly.
     
  22. Offline

    dmitlantis

    Please update the plugin to last Bukkit release!!

     
  23. Offline

    Loathsome

    There's a huge problem with this plugin.
    Because it can crash the server. I've many times received the error message "connection error" and discovered that it did so because there were over 4000 items lying at one spot.. in the woods. Obviously it was logs/and or saplings.

    I dunno if there's a way to prevent this. I hope there is because I liked this plugin.
     
  24. Offline

    Tim Visee

    There's a plugin called 'Auto Clear' with this you could say how much items could ly on the ground, so if you set a maximum of 500 it 'll say something in the chat (when there are more than 500 items on the ground) that the plugi is going to remove all the drops within one minute... Hope this helps.. (If you use a Showcase, Simple Showcase plguin or things like that that have shops with items on it, make sure you put the max drop count a little bit heigher because the AutoClear plugin also count and remove that drops..
     
    Loathsome likes this.
  25. Offline

    jjon43

    Hi, this plugin works great except whenever someone on the server chops a tree, I get this error in the console:
    Show Spoiler
    28.10 16:24:13 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    28.10 16:24:13 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    28.10 16:24:13 [Server] INFO at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    28.10 16:24:13 [Server] INFO at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    28.10 16:24:13 [Server] INFO at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
    28.10 16:24:13 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    28.10 16:24:13 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    28.10 16:24:13 [Server] INFO at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
    28.10 16:24:13 [Server] INFO at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:160)
    28.10 16:24:13 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:500)
    28.10 16:24:13 [Server] INFO at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:165)
    28.10 16:24:13 [Server] INFO at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:201)
    28.10 16:24:13 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    28.10 16:24:13 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    28.10 16:24:13 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$40.execute(JavaPluginLoader.java:534)
    28.10 16:24:13 [Server] INFO at me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener.onBlockBreak(ChopTreeBlockListener.java:58)
    28.10 16:24:13 [Server] INFO at me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener.Chop(ChopTreeBlockListener.java:87)
    28.10 16:24:13 [Server] INFO at me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener.updateInventory(ChopTreeBlockListener.java:107)
    28.10 16:24:13 [Server] INFO java.lang.IllegalAccessError: tried to access field net.minecraft.server.ItemStack.damage from class me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener
    28.10 16:24:13 [Server] SEVERE Could not pass event BLOCK_BREAK to ChopTree


    Just to be clear the trees fall like they're supposed too, I'm just getting this irritating error. Did I do something wrong?
     
  26. Offline

    WoodenAxe

    can you include the source?
     
  27. Offline

    Trollkemada

  28. Offline

    vrga

    Due to the fact that some of us truly hate and dont want to use WorldEdit, PLEASE make it optional. It has been optional so far, so why not continue with compatibility? Eh? Eh?
     
  29. Offline

    Loathsome

    The downloadlink was broken :(
     
  30. Offline

    Trollkemada

  31. Offline

    Apollyna

    Bukkit Build 1337, and ChopTree won't even load. I've redownloaded and reinstalled the plugin twice and get nothing, not even an error message. The jar shows up in McMyAdmin's plugin checklist, but not in the server log / console. Help?
     

Share This Page