[1.13] TreeGravity 3.9.1

Chop entire trees down with just one swing!

  1. Dudenn
    Native Minecraft Version:
    1.13
    Tested Minecraft Versions:
    • 1.12
    • 1.13
    Source Code:
    https://github.com/Dudenn/TreeGravity
    Contributors:
    SlimeDog
    tg4.png
    threetrees.png


    Plugin Info
    Pretty much the same as TreeFeller and Timber, or a simpler version of Choptree and TreeAssist. There are currently four methods available for chopping trees with TreeGravity:
    1. Lumberjack Classic - Break one log and the entire tree falls down! The number of logs on the tree are dropped in a stack at your feet.
    2. Lumberjack Natural - Break one log and the entire tree falls down, but each log breaks naturally.
    3. Lumberjack Random - Same as Classic, but the number of logs dropped will be 20% more or less than how many were actually on the tree (so if a tree had 10 logs, 8 to 12 will be dropped).
    4. Gravity - Break a log and any logs directly above it fall like sand/gravel. Warning: This method can't distinguish between logs on a tree or player placed logs. See Update 3.0.0 for a temporary solution.
    5. Three experimental methods exist as well, see
    Runs on 1.13, 1.13.1, and 1.13.2 on Java 8 servers. If you want a working 1.12 version, see this discussion post.
    If you encounter ANY bugs or have ANY suggestions, please let me know in the discussion section or on Github!



    Current Features
    • Works on all tree types including mushroom trees!
    • No logs or leaves left floating in the air whatsoever!
    • Auto sapling-replant, so your forest stays a forest!
    • Player structure/house protections, so that buildings with logs & leaves are safe!
    • Works with anti-grief and region-protection plugins, so trespassers can't chop your trees.
    • Logs (or mushroom blocks) are the only blocks ever broken, besides items hanging on logs like vines, cocoa beans, etc.
    • Config settings can be changed in-game, see the config settings below.



    Config Settings
    (see "configuration details" for more info)​
    • tgType - Sets which method is active.
    • toolsAllowed - List of tools that will fell trees.
    • chopMethod - Whether players need to sneak to fell trees.
    • autoReplant - Automatically replants saplings when the tree is cut down.
    • houseProtection - Increase player structure protections, so your houses and buildings are safe!
    • fairDurability - Makes axe durability decline by the number of logs on the tree.
      • durabilityMultiplier - The degree of durability damage each log has on your axe/tool, if fairDurability is on.
    • saplingDrop - Drops a stack of saplings with the logs that are dropped at your feet the base of a tree.
    • updateChecker - Checks whether the plugin is up to date.
    • debugger - Whether debugging messages are sent to the server console when trees are chopped down.
    Code (YAML):
    Treegravity:
      General
    :
        tgType
    : 1.0
        toolsAllowed
    :
        - WOODEN_AXE
        - STONE_AXE
        - IRON_AXE
        - GOLDEN_AXE
        - DIAMOND_AXE
        chopMethod
    : default
        updateChecker
    : true
        debugger
    : false
      Lumberjack
    :
        houseProtection
    : 1
        fairDurability
    : true
        durabilityMultiplier
    : 1.0
        autoReplant
    : true
        saplingDrop
    : true
     
    • tgType - Sets which TreeGravity method is active.
    • toolsAllowed - List of tools that TreeGravity works with. Only add tools to avoid any errors.
    • chopMethod - Sets whether players need to sneak in order to fell trees, or if they can fell trees in any position.
    • autoReplant - Toggles whether saplings are replanted or not once you chop down a tree. Once you fell a tree there is about a 3 second delay before sapling(s) are replanted.
    • houseProtection - Determines how strict the plugin is when deciding whether a structure is manmade or a tree. There are three levels, 0, 1, 2, and 3. Putting 0 turns the settings off, 1 is low and 3 is high. 1 should work fine for everything, but if you're more worried about manmade log and leaf structures "felling" then you should set it to 2 or 3.(see Update 3.7.0 for more details about the logic behind this).
    • fairDurability - Toggles whether your axe durability declines by the amount of logs that are harvested from the tree chopped down.
    • durabilityMultiplier - The degree of durability damage each log has on your axe/tool. The default value (1) is same as vanilla MC. Changing the value up or down indirectly affects the tool's life when felling trees.
    • saplingDrop - Drops a stack of saplings immediately with the tree's logs at the base of a tree. Only applies to Lumberjack Classic and Random. Saplings dropped should include 1 sapling for every ~20 logs the tree has.
    • updateChecker - Whether you want the plugin to check for updates. If true, the following link is accessed: https://textuploader.com/d7v57/raw
    • debugger - When set to true, when you chop down a tree the following will be printed in your server's console: the tree's log type, location, and the number of logs the tree has. Only shows these values with the Lumberjack methods.
    More Details:
    Code (YAML):

    TreeGravity Info
    :
      CONFIG VARIABLE INFORMATION
    :
        GENERAL VARIABLES (apply to all tgTypes; 1,2,3,4)
    :
          tgType
    :
            desc
    : Determines which method is enabled, lumberjack [1,2,3] or gravity [4]
            values
    : [1, 2, 3, or 4]
              1 = Lumberjack Classic; You break one log on a tree and the entire tree falls down.
                  The number of logs the tree has are dropped in a stack at location of the block you broke.
                  A sapling is dropped for every 20 logs the tree has.
              2 = Lumberjack Natural; You break one log on a tree and the entire tree falls down.
                  Each log on the tree breaks naturally, so the logs will not drop in a uniform fashion
                  like they do with LumberJack Classic/Random
              3 = Lumberjack Random; Same logic as LJ Classic, but the number of logs dropped will be
                  anywhere from 20 percent more or less logs the tree actually had.
                  So if a tree had 10 logs, anywhere from 8 to 12 will actually be dropped for the player.
              4 = Gravity (experimental); You break a log of a tree and any logs directly above will fall
                  down one block like sand/gravel. Does not work with mushroom trees.
                   Warning - This method cannot distinguish between logs on a tree and logs placed by a player.
                               See Update 3.0.0 for a temporary solution (hopefully I'll find a solution eventually)
     
          toolsAllowed
    :
            desc
    : Tools that allow the aforementioned methods to work on trees, when that tool is used
                  to chop a tree. Only add tools in order to avoid any errors.
                  You can only add axes with the '/tgconfig tools add' command, but can add any other tools directly here in the config.
            values
    : [WOODEN_AXE, STONE_AXE, IRON_AXE, GOLDEN_AXE, DIAMOND_AXE], but other tools can be added directly here in the config.
     
          chopMethod
    :
            desc
    : Adds the ability to require players to sneak/crouch before TreeGravity methods will work.
            values
    : [default, sneak, or sneak.notify]
              default = The player does not need to explicitly crouch to get TreeGravity methods to work.
                        TreeGravity methods will work whether the player is standing or crouching.
              sneak = The player needs to crouch to get TreeGravity methods to work. There WONT BE notifications
                      telling the player TreeGravity modes are active when they crouch with an axe.
              sneak.notify = The player needs to crouch to get TreeGravity methods to work. There WILL BE notifications
                      telling the player TreeGravity modes are active when they crouch with an axe.
     
          updateChecker
    :
            desc
    : Checks whether your version of TreeGravity is the most recent version available.
                  If true, the following link is accessed - https://textuploader.com/d7v57/raw
            values
    : [true or false]
     
          debugger
    :
            desc
    : When set to true, when you chop down a tree the following will be printed in your server's console:
                   -the tree's log type, location, the number of logs the tree has, and your axe's durability.
                  Only shows your axe durability when the Gravity method is enabled
            values
    : [true or false]
     
        LUMBERJACK VARIABLES (apply for only lumberjack tgTypes; 1,2,3)
    :
          houseProtection
    :
            desc
    :
                 -Determines how strict the plugin is when determining whether a structure is manmade or a tree, by
                  looking at how many of the tree's logs share the same Y value location. If there are too many logs
                  sharing the same Y value, the structure is labeled 'manmade', and does not get chopped down.
                  -Tip
    : Many dark oak trees spawn in connected to one another, so you may need to disjoint them first before
                  being able to fell the trees.
                  -See Update 3.7.0 for more details -https://www.spigotmc.org/resources/1-13-treegravity.59283/update?update=249831
            values
    : [0, 1, 2, or 3]
              0 = House protection is disabled. The plugin will act without this increased manmade structure protection,
                  but will still be generally good at distinguishing houses from trees.
                   If you use 0, be weary of building houses out of many logs, and using leaves as decoration
                  placed directly on the house, as the plugin may think your house is a tree.
              1 = Low House Protection. Can still fell/chop down most trees without any issues, but may fell a
                  small house with leaves attached to it.
              2 = Moderate House Protection. Not as stringent as level 3, but not as lax as level 1.
                  Is it juuuust right? That's for you to decide.
              3 = Conservative House Protection. The plugin becomes extremely conservative/strict when deciding that
                  a structure is a tree. On level 3, trees with a "bottom base" of 4 logs will not fell (the "bottom base"
                  being the logs touching the dirt/grass with the lowest Y value). This applies to jungle and dark oak trees, and you
                  will need to chop one of the base logs so that there are only 3 on the ground in order to get them to fell.
     
          fairDurability
    :
            desc
    : Toggles whether your axe durability declines by the amount of logs that are harvested from the tree chopped
                  down with Lumberjack methods.
            values
    : [true or false]
     
          durabilityMultiplier
    :
            desc
    : The degree of durability damage each log has on your axe/tool. The default config value (1.0) is the vanilla value.
                  Changing the value up or down indirectly affects tool life. For example, the life of an iron axe at the following
                  values will be
    : 0.5 = 500 logs; 1.0 = 250 logs; 2.0 = 125 logs; etc.
                   I DO NOT SUGGEST SETTING THIS MULTIPLIER ABOVE 2 OR 3, as durability is pretty well balanced in vanilla minecraft anyways
            values
    : [0.5, 1, or 2], but any positive decimal number will work (a negative number will repair your axe)
                  With '/tgconfig set durabilitymultiplier' you can set the value within [0 < x < 25].
                  You cannot set it higher to 25 or lower than 0 with the command. You can change it to anything you want directly here in the config,
                  but is not recommended for survival gameplay. I cannot even recommend setting this value higher than 3.0 in a survival server.
     
          autoReplant
    :
            desc
    : Toggles whether saplings are replanted automatically once you chop down a tree. If so,
                  there is about a 3 second delay before saplings are replanted. Due to the current logic,
                  if you chop down a jungle tree from high up, the saplings will replant and then be broken.
            values
    : [true or false]
     
          saplingDrop
    :
            desc
    : Drops a stack of saplings immediately with the tree's logs at the base of a tree.
                  This setting only applies to the Lumberjack Classic and Random methods.
                  The sapling stack will have 1 sapling for every tree, plus an additional sapling for
                  every ~18 logs the tree has.
            values
    : [true or false]
     


    Permissions
    tg.user - Allows player to fell trees and use /tg commands except /tg reload. Given to every player by default.
    tg.operator - Gives access to /tgconfig commands and /tg reload. Given to every operator by default.​



    Commands
    /tg - Provides this list of TreeGravity commands
    /tg help - Explains what the commands and settings are
    /tg info - Provides general info about the plugin​
    /tg settings - Shows the server's current settings in the TreeGravity config.yml
    /tg toggle - Player by player toggling of TreeGravity on or off

    /tg reload - Reloads the plugin
    /tgconfig - Shows list of sub-commands for /tgconfig
    /tgconfig [enable, disable] - Turns plugin on or off
    /tgconfig set type [1, 2, 3, 4] - Changes the current plugin's method
    /tgconfig set durabilitymultiplier [0.5, 1.0, 2.0] - Sets the durability factor (any decimal works, not just the ones listed)
    /tgconfig set houseprotection [0, 1, 2, 3] - Sets the level of house protection (any manmade structures)
    /tgconfig set chopmethod [default, sneak, sneak.notify] - Sets whether players need to sneak to fell trees
    /tgconfig tools add [any one tool] - Adds a tool to the plugin's allowed tools
    /tgconfig tools remove [any one tool] - Removes a tool from the plugin's allowed tools
    /tgconfig toggle [fairdurability, updatechecker, autoreplant, sapling drop] - Turns the setting ON or OFF
    /tgconfig toggle [debugger]- Turns the debugger in the server console ON or OFF
    /tgd - Gives the player a diamond axe
    /tgd g - Gives the player a golden axe
    /tgd a - Gives the player one of each type of axe



    Community Suggestions
    • Add a method where if you chop in the middle of the tree, only logs above the chopping point are broken
    • Upload source code on the Github (will upload code within the next two months)
    • Hook the plugin in with MCMMO
    • messages.yml where we can configure all possible messages and prefixes with custom colors
    • Config setting where logs go directly from the tree into player inventory
    • Config setting to turn on FAWE support
    • Add a method to allow trees to act like mobs/entities, so you have to chop a log a certain number of times before it fells
    • Add an altered lumberjack method to have leaves break along with the logs added to 3.9.1 on 11/21/18
    • Add an altered gravity method to have all logs on the tree fall down when one block is chopped added to 3.9.1 on 11/21/18
    • Add a player by player option to toggle TreeGravity on and off added to 3.9.1 on 11/21/18
    • Add an option to "chopMethod" where when you sneak, trees do not fell when hit with an axe added to 3.9.1 on 11/21/18
    • Add a config setting that implements RNG to decide whether the player receives more, less, or the exact number of logs a tree has. Added 10/6/18
    • Create a Github repository/issues forum. Created 11/1/18
    • Add an option to auto plant saplings left on the ground? So no more holes in the forest... added 10/8/18



    Random Notes
    7/30/18: I don't have much programming experience so this plugin is pretty basic, I'm not sure if it even works properly on a small private server where two people are chopping wood at the same time. I decided to make my own "tree feller" after not finding anything updated for 1.13 except for one that seemed to be too hefty for such a simple mechanic. I'm planning on using this on one server with my friend, but if anyone wants to use it I figured I'd put it out there.

    9/29/18: has been a while since i wrote this note, as always use at your own risk. Working on this plugin is a hobby for me, and I can only do so much version testing on my own. Let me know of ANY issues you have in the discussion section, no matter how small. It helps a lot!!.


    birch1.png birch2.png birch3.png oak1.png oak2.png

Recent Reviews

  1. Borc55
    Borc55
    5/5,
    Version: 3.9.1
    simple and fuctional, much better than that treeassist alternative.
    keep it up pal
  2. Een_noob
    Een_noob
    5/5,
    Version: 3.8.0
    Nice plugin keep working on it ! But can you add a sneak fuction if you sneak the tree will (not) fall down ? :)
    1. Dudenn
      Author's Response
      Has been added with update 3.9.1. Make chopMethod = stand
  3. kohlerpop1
    kohlerpop1
    5/5,
    Version: 3.5.3
    This is very useful on any server as it does not leave floating trees. Great job.
    1. Dudenn
      Author's Response
      Thank you for the rating, glad you like it!
  4. Kappable
    Kappable
    5/5,
    Version: 3.5.2
    Fantastic, works perfectly but if possible could you have the plugin hook into MCMMO?
    1. Dudenn
      Author's Response
      Thanks for the support! I will definitely look into it, not sure how to go about it so if anyone knows post a quick message in the discussion section, thanks!
  5. EnderDesiredName
    EnderDesiredName
    5/5,
    Version: 3.5.1
    those 2 tree plugins you mentioned are somehow bugged and didn't work properly, but this plugin works so smoothly.
    1. Dudenn
      Author's Response
      I appreciate the support! That's exactly how this started, there was no "light" option regarding tree feller plugins so I set out to make one. It might not have all the bells and whistles, but it works.
  6. zi_o
    zi_o
    4/5,
    Version: 1.13.v8
    It can break the tree regardless of Residence's permissions. I'm sorry I'm not good at English.
    1. Dudenn
      Author's Response
      Residence/region protection should now work with update 3.6.2. If the issue isn't fixed, let me know in the discussion section!
  7. NightGamingTV
    NightGamingTV
    3/5,
    Version: 1.13.v6.1
    Hey Man The Plugin is realy nice but the player can farm Bedrock and in plotsquared the border can be destroyed with dies plugin can you fix it ? sorry for my bad englisch but im german
    1. Dudenn
      Author's Response
      Thanks for the feedback! The issues you had should now be solved. Only the tree's logs are broken now :) Please let me know of any other issues you encounter.
  8. zi_o
    zi_o
    5/5,
    Version: 1.13.v6.1
    This is a great plugin! can you make it work on the acacia tree.................
    1. Dudenn
      Author's Response
      Acacia trees are now supported :)
  9. Avaerian
    Avaerian
    5/5,
    Version: 1.13.v6
    Amazing plugin, works extremely well. Thanks for this plugin, and I hope you continue to develop plugins
    1. Dudenn
      Author's Response
      Thanks for the compliment and support! I definitely plan to once I get more free time and learn Java better.
  10. DrunkIrishPotato
    DrunkIrishPotato
    5/5,
    Version: 1.13.v6
    Brilliant, works perfectly on my 1.13 server. Been looking for a plugin like this so thank you!
    1. Dudenn
      Author's Response
      Glad to hear, hope you enjoy!