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

    false_chicken

    Very helpful plugin! Any change that giant mushrooms could be chopped in the same way? That would be a nice addition.
     
  3. Offline

    turtledude01

    The server i play on has this plugin and they have the problem where their houses made of wood break completely when they try to break a single block. They get rid of Chop Tree and it stops doeing it right away. can you please fix this problem?

    Possible make a command that anyone with the choptree permission node can use a command that disables the ChopTree ability untill they do the command again?

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

    Ranakastrasz

    On that note, Could we get the ability to add new blocks to the list, specifically leaves as well as logs?
     
  5. Offline

    turtledude01

    That is such a good idea :) i think that would b awsome too. they should put it in so u can type in the item id :)
     
  6. Offline

    Ranakastrasz

    Yea, how else will I chop down redpower Trees in less than two years? :p
    And Imagine, Going at a redpower tree with 7 friends, with Industrialcraft chainsaws, which would still take at least a minute.
     
  7. Offline

    flea1777

    when destroying a tree in 1.1 R4 an error comes up
    Code:
    17:09:00 [SEVERE] Could not pass event org.bukkit.event.block.BlockBreakEvent to
    ChopTree
    java.lang.IllegalAccessError: tried to access field net.minecraft.server.ItemSta
    ck.damage from class me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener
            at me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener.updateInventory(Chop
    TreeBlockListener.java:107)
            at me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener.Chop(ChopTreeBlockLi
    stener.java:87)
            at me.askmeaboutlo0m.ChopTree.ChopTreeBlockListener.onBlockBreak(ChopTre
    eBlockListener.java:58)
            at org.bukkit.plugin.java.JavaPluginLoader$42.execute(JavaPluginLoader.j
    ava:558)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:61)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:460)
            at net.minecraft.server.ItemInWorldManager.breakBlock(ItemInWorldManager
    .java:216)
            at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:81)
     
            at net.minecraft.server.EntityPlayer.y_(EntityPlayer.java:137)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1262)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:1
    10)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1244)
            at net.minecraft.server.World.tickEntities(World.java:1151)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:528)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  8. Offline

    itsatacoshop247

    Hey, thanks for the plug!
    I updated my plugin TreeAssist to 1.1-R4 a few days ago, and I redid my whole tree-removal section, and it works great! Come check it out at Bukkit.org or BukkitDev!
     
  9. pls update the plugin for the newest server-version
     
  10. Offline

    TheGreatPenor

    does this work with MC 1.2
     
  11. Offline

    MusicMonkey5555

    Probably not. I know it didn't work with a precise version, but there are a couple other plugins that do the same thing, like TreeAssist.
     
  12. Offline

    wall142

    I've been looking for one of these for bukkit for about 3hours. I can't wait to put this in my server. :)
     
  13. Offline

    Apollyna

    ChopTree for 1.2.3 -> [link]
     
  14. Offline

    doggon

    Can update your plugin?
     
  15. Offline

    tyzoid

  16. Offline

    TienSon

    Sweet! I was wondering if this plugin was still in the works. I am planning on restarting my own server for friends after about 6 months and this is one of the few "must-have" plugins that I had in mind. I'm glad to see it still alive and kicking.

    btw, I recommend adding [1.2.3] to the title so that people will know that it's updated. I couldn't tell until I looked at these recent posts.

    Thanks for keeping up the good work. This is definitely one of the simple concept plugins that really smooth out gameplay.
     
  17. Offline

    josephdennis

  18. Offline

    Riffy

  19. Offline

    drake338

    it wont work fore me on 1.2.4 please help someone
     
  20. If you look at the changelog - it was last updated JULY 28 11 - therefore has not been kept upto date
     
  21. Offline

    busa

    is it possible to make it work better with big jungle trees?

    a few blocks here and there is not removed, so the leaves dont disappere
     
  22. Offline

    Freestyling

    if choptree doesnt work anymore use treefeller
     
  23. Offline

    Kantspel

    Dose it work with PEX and will there be an update. By the way its a great plugin.[diamond]

    Thanks

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

    rodier

    its not working :(

    20:08:25 [INFO] This server is running CraftBukkit version git-Bukkit-1.2.3-R0.2-96-ge16ae9a-b2124jnks (MC: 1.2.4) (Implementing API version 1.2.4-R0.1-SNAPSHOT)
    20:08:26 [SEVERE] Could not load 'plugins\ChopTree.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/event/block/BlockListener
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:148)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/block/BlockListener
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at me.askmeaboutlo0m.ChopTree.ChopTree.<init>(ChopTree.java:28)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
    ... 8 more
    Caused by: java.lang.ClassNotFoundException: org.bukkit.event.block.BlockListener
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 27 more
     
  25. Offline

    disturbed13

    im in the same boat
    it needs to be updated for 1.2.5
    any ideas on when that will be?
     
  26. Offline

    Fevix

    I'm using Tekkit's server, which has ChopTree installed, and I've tried and failed several times to get mod items such as the Ruby Axe to work with Choptree. The default choptree.properties file doesn't let it work, and when I edit the file to add in the values reported by NEI, it still refuses to drop the whole tree when I break it with the Ruby Pickaxe.

    Edit: Something that might help is a "/choptree Add" command or something similar, to add the currently held item to the choptree list so that it can be used for chopping trees.
     
  27. did you update this to jungle trees and all that? :)
     
  28. Offline

    itsatacoshop247

    Ohhhh yeah, it works wonderfully with jungle trees! Watch the video in the main post :p
     
  29. Offline

    AlexCityOfFun

    Please update!
     
  30. Great plugin, if it works >.<

    havn't tested it yet: but it is massivly outa date.

    The source code is there right? Could someone plz update this?

    Just tested with R4: don't work =(

    is there NO bukkit treefellin plugin that is outa date? lumberjack is outa date/chop tree is outa date

    =(
     
  31. Offline

    svekkxor

    I have been looking around for a mod like this to use on my tekkit server.
    Tried TreeAssist aswell , but my IC tools dissapear on that one.

    So I decided to check out the code and make a few changes.
    Works with the latest bukkit API. I couldnt get my head around the mcMMO stuff, since some classes have dissapeared and I don't use it anyway, so I commented out that code.

    Tested on the latest Tekkit server and works for me, so I guess the least I can do is share the plugin untill the owner comes back.

    You can find the source in the GIT repo I forked.

    So heres the jar:ChopTree.jar.zip

    Enjoy!

    Edit: Removed a check on the Permission option. Now permissions work in default or PEX or your favorite permission manager :)
     

    Attached Files:

Share This Page