Inactive [MECH] TreeAssist - Auto-Replant and Auto-Chop Trees [1.4.2-RB0.1]

Discussion in 'Inactive/Unsupported Plugins' started by itsatacoshop247, Apr 25, 2011.

  1. Offline

    itsatacoshop247

    TreeAssist - Auto Replants
    Version: v5.0

    This plugin will replant trees when they are cut down (or burnt down), and will keep it the same tree type. Also has a custom leaf decay planter and tree removal.

    Checkout the BukkitDev page!

    Most Recent Video


    Here is a video of the 3.0 Tree Removal Feature (slightly outdated):


    Here is a video of the normal functions

    Features:
    • Replants trees when the bottom log is cut down, or burnt down.
    • Break a birch tree? Replants a birch sapling. Same for all type of trees
    Commands
    • '/TreeAssist Toggle' - lets a player turn TreeAssist features on or off.
    • '/TreeAssist Global' - Toggles TreeAssist for everyone
    • '/TreeAssist Reload' - Reload the plugin's config file
    Config
    Permissions
    • treeassist.autoremove - Should the player be allowed to break the bottom block and the whole tree comes down?
    • treeassist.replant - When the player chops down a tree, should a sapling replant itself?
    • treeassist.toggle - Gives player access to the '/TreeAssist Toggle' command to turn TreeAssist on or off
    • treeassist.toggle.global - Gives player access to the '/TreeAssist global' command to turn TreeAssist on or off for everyone
    • treeassist.reload - access to '/treeassist reload'
    Download

    Source Code

    See the full change-log here!

    Roadmap:
    • Suggest things!
    • Custom Leaf Drops
    Like the plugin? Help me keep my programming hobby alive! Please consider donating!
    [​IMG]
     
  2. Offline

    Pyrii

    Umm, I was trying to tell you that the game already has that info. At least I think it does. As I said, in order to stop Endermen destroying user-builds it logs which blocks are generated and which are placed by users so Endermen only move generated blocks.

    Sorry, I suck at making myself understood x_x
     
  3. Offline

    itsatacoshop247

    Ah, no worries, I understood. What i meant by 'To do that with a plugin...' is that while the method exists in Minecraft, Bukkit doesn't actually allow me to use that data yet. I can do block.setType() or block.getLocation(), but there is no block.checkIfUserPlaced() or anything.

    Yet, at least. Maybe that's something which we will see in a future bukkit update, in which case I will be sure to implement it.
     
  4. Offline

    Pyrii

    Okay, ignore my stupidity, it seems Notch didn't implement this mechanic, just limited the blocks that Endermen can pick up. So yeah, there is no such data available.

    Sorry for the confusion I caused myself and you x_x
     
  5. Offline

    itsatacoshop247

    Haha, don't worry about it.

    Would anyone be interested in an addition that removes floating trees? That way if people don't use the auto-destroy feature, they could still have that to clean up ugly trees.

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

    Fuzzlr

    I love this plugin, but unfortunately I can't use it in my towns world because people go around destroying all the big trees in protected property.

    Is there a way to disable it in certain worlds? That would be awesome.
     
  7. Offline

    itsatacoshop247

    I will be adding ways to make sure protected area's are not destroyed - I think simply making my plugin's prority 'low' should help, since most protection plugins should have normal or high priority. What plugins are you using, since besides WorldGuard, I don't know what people use now-a-days. I haven't admined a server since H-mod :p
     
  8. Offline

    KTMRipper

    Wow great job! I've been looking and waiting for another version of this! One request though. Do you think you can make this something that you can change in the config where it lets you decide what you need in order for the whole tree to fall? Like for instance I wanted it only to let me chop the whole tree down with only a hatchet and if you used your hand you'd get on block of the tree. Other than that I love the plugin though! Thanks!
     
  9. Offline

    Pyrii

    Well shouldn't cutting any wood block check for tree/leaves above it not being grounded by destroyed?
     
  10. Offline

    Mufflo

    Hey, really love this type of plugins! I have a request for this plugin if you want ;)
    Can you make it possible to config what trees I can AutoTreeDestroy , also want to be able to config if I need a axe or just use my fist (hand). On my server player build in jungle trees and then someone come and chop the tree ;)
     
  11. Offline

    KakusCraft

    hello, how do i disable jungle tree ?
     
  12. Offline

    Fuzzlr

    The ones we're using that use region protection are Towny, Factions and WorldGuard.

    I would recommend adding options to disable on a per-world basis and the option to disallow the cutting of large jungle trees, due to the sheer effect it has on the appearance of the world (jungle tree maintenance may be an issue).

    Thanks for your prompt response!
     
  13. Offline

    itsatacoshop247

    Global note: I have a new file/config file system I am going to switch over to, and since I have no experience with it, the process may take a few days, but it will greatly improve that aspect of the plugin, and make it super easy to add more config options.

    Both your requests are being added in next update, sometime after the 1.2 RB.
    There's no way to right now besides disabling the jungle tree, but if you see what I'm adding with the usage of axes and things. I also may be able to add a true or false for the types of trees.
    I'll make sure to test it with all of those, then. I also should be able to add a world check/config option thing I don't even know what to call it anymore my god I am adding so many config options I can't keep track of them all. heh :p
     
  14. Offline

    KakusCraft

    i downgraded the treeassist version, and now jungle trees is disabled :)
     
  15. Offline

    itsatacoshop247

    Oh, good idea, glad that works for you! I don't think there should be any issues with that version since I added the new events system earlier than most Devs :D
     
  16. Offline

    Fokson

    I really appreciate your work on this plugin, Taco! After choptree died I missed not having to struggle to chop down those big ugly trees!

    Was wondering, though, if at some point you could implement some of the finer details that choptree offered, such as treedestroy only triggering if the player is using an axe, giving a proportional amount of damage to the axe, and most importantly, not failing to remove the entire tree if a) the player cut a block or two above the base, and b) the block under the tree is not grass or dirt. (A tree for some reason spawned on top of clay in the worldgen, and treeassist wouldn't recognise it as a tree). I know that all you have to do is a) replace the block you cut and try again or b) remove the block under the tree and replace it with dirt, but sadly not everyone I play with can figure that out. ^^;
     
  17. Offline

    itsatacoshop247

    I just learned how to setup the config.yml stuff for plugins, so I should have that ready by TOMORROW! with all the config options such as needing stuff in hand.
    Also, I will add clay and stone to the checks, I've seen some of that in world-gen.
     
  18. Offline

    Fokson

    Fantasic! I look forward to it! ^^
     
  19. Offline

    itsatacoshop247

    Updated to version 3.5!

    I moved over to the config.yml system, and it is beautiful! Added some more options to that, and added World Guard protection checks. I wanted to add the protections for the 'Factions' plugin, but it doesn't seem to have an API. I need someone to link me to it :D

    Link to TreeAssist v3.5
     
  20. Offline

    Creadoris

    How do i disable auto replant when I cut own any tree? I thought it was this line but I changed it to false and it still replants:

    Sapling Replant: trueAutomatic

    Also I noticed there is no space between true and Automatic. Is it suppose to be like that?
     
  21. Offline

    Junrall

    Hello,
    I'm running Bukkit 2037
    I keep getting this warning every now and again:

    Code:
    [WARNING] Could not properly handle event BLOCK_PHYSICS:
    java.lang.IllegalAccessError: Synchronized code got accessed from another thread: java.util.TimerThread
        at org.bukkit.event.Listener.onBlockPhysics(Listener:0)
        at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:441)
        at net.minecraft.server.World.k(World.java:514)
        at net.minecraft.server.World.applyPhysics(World.java:501)
        at net.minecraft.server.World.update(World.java:463)
        at net.minecraft.server.World.setData(World.java:406)
        at org.bukkit.craftbukkit.block.CraftBlock.setData(CraftBlock.java:71)
        at me.itsatacoshop247.TreeAssist.TreeAssistBlockListener$Reminder1$RemindTask.run(TreeAssistBlockListener.java:762)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)/CODE]
     
  22. Offline

    itsatacoshop247

    Oops, I missed adding a check for autoreplant if the player isn't using Permissions, I'll fix that. Also, it's your word editor that it messing things up most likely. Try using Notepad++.

    Yeah, this is an issue with the Sapling Replant. It won't break anything now, but I will try and figure out how to fix it soon.
     
  23. Offline

    BigTristen

    Code:
    Main:
      Automatic Tree Destruction: false
      Use Permissions: false
      Custom Leaf Decay: false
      Custom Leaf Decay Percent: 5
      Sapling Replant: true
    Automatic Tree Destruction:
      Tree Types:
        Birch: false
        Jungle: false
        Oak: false
        Spruce: false
      Require Tools: false
      Tools:
      - DIAMOND_AXE
      - WOOD_AXE
      - GOLD_AXE
      - IRON_AXE
      - STONE_AXE
      - AIR
    
    Trees are simply not replanting. They replant when I break a sapling. But not when any type of tree is cut down. What is going on?
     
  24. Offline

    itsatacoshop247

    Umm, do you have WorldGuard permission? It shouldn't do anything when a sapling is broken, that's really odd. I'd like to see that, if you'd PM me your server IP.
    Otherwise, it may be an issue similar to Creadoris's posted above, I'll get a new version out in just a bit.
     
  25. Offline

    BigTristen

    furnaceprison.com:25570 Get online!
     
  26. Offline

    Creadoris

    Ah thanks. I had forgotten about notepad++ it has been an age sincce I used it last. And I now have successfully disabled replant.
     
  27. Offline

    itsatacoshop247

  28. Offline

    Joormatt

    I just downloaded the latest version after switching from choptree... There is one problem... My config.yml file is completely blank, absolutley nothing in it. Please let me know if there is a way I can fix this.
     
  29. Offline

    itsatacoshop247

    My mistake, I'm new to this config.yml stuff too, bear with me on it everyone :D

    V3.61:
    http://dev.bukkit.org/server-mods/tree-assist/files/6-tree-assist-3-61/
     
  30. Offline

    Hellmourn

    with auto tree destruction on, require tools true, and removing - air from the tools list, hitting the bottom block of a tree with "air" will auto replant a sapling even though it doesn't destroy the block. It just turns it into a sapling.
     
  31. Offline

    itsatacoshop247

    Oh, the require tools only applied to the Tree Destruction, if you notice it is indented under the AutoMatic Tree Destruction line. I will switch it so that the there is an option for tools on the sapling replant as well.

    Edit: Fixed this in the new version! (3.7)

    Updated to TreeAssist 3.7 for 1.2.3-R0-1. See the changelog for full list.

    Get it here.

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

Share This Page