ThizThizzyDizzy / tree-feller

The most customizable tree feller ever made.
GNU General Public License v3.0
38 stars 9 forks source link

Thizzy'z Tree Feller

A Bukkit plugin for Minecraft 1.16+ (Older versions are available for 1.13-1.15)

Full customization

Plug-and-play

The default configuration will reliably cut down all vanilla trees, while not disturbing player-made structures.

Many user-requested features:

FAQ

Does it work with custom trees?

Yes

The tree feller is fully capable of detecting and cutting down trees of any shape and size, provided that the logs are connected.

The default config is configured for vanilla trees. If you have very large trees or trees with multiple or mismatched wood or leaf types, you may have to add your own trees to the config.

Many custom trees are generated improperly, containing diagonally connected or persistent leaves.

If this is the case, you may have to enable ignore-leaf-data, diagonal-leaves, and player-leaves.

My Tool/Tree settings aren't working!

In version 1.11, the config was overhauled with more options.

As a result of this overhaul, tool and tree-specific options no longer override global values.

For example, if you want a single tree to require no leaves:

  1. Set required-leaves for every other tree to some value (Default 10)
  2. Set the global required-leaves to 0
  3. Set required-leaves for the target tree to 0 (For readability)

Troubleshooting

If you can't get something to work:

If you are unable to pinpoint the problem, I’m happy to help on discord or GitHub. Make sure to provide the config, startup logs, and the debug information from /treefeller debug

Tips/Fun Facts

You can use the tree feller for ores

Add trees using ore for the trunk and with leaves disabled:

[COAL_ORE, STONE, {required-leaves: 0, leaf-detect-range: 0, leaf-break-range: 0, max-height: 256}]

Add tools for each pickaxe with allowed-trees set to ORE

{type: IRON_PICKAXE, allowed-trees: ORE}

Set allowed-trees for the axes to LOG

{type: IRON_AXE, allowed-trees: LOG}

For more specific configuration, allowed-trees should be set to a list of tree indexes, such as [0, 1, 2, 3, 4, 5] for the first 6 trees defined

(you may need to set max-height higher as well)

You can define more than one tool or tree of the same type

This is useful if you want OR behavior. In this example, a golden axe must have either unbreaking 1 or efficiency 2:

tools:

For example:

An explosion will never occur, as an iron axe with unbreaking 2 also matches the first tool.

Commands

/treefeller reload
Permission: treefeller.reload
Reloads the tree feller configuration

/treefeller help
Permission: treefeller.help
Displays help for tree feller commands

/treefeller on
Permission: treefeller.on
Toggles on the tree feller for the player who ran the command

/treefeller off
Permission: treefeller.off
Toggles off the tree feller for the player who ran the command

/treefeller toggle
Permission: treefeller.toggle
Toggles the tree feller for the player who ran the command

/treefeller debug [on|off]
Permission: treefeller.debug
Toggles debug mode on or off globally

/treefeller config
Permission: treefeller.config
Opens the ingame configuration

Configuration

When you update the tree feller, make sure to add any missing configuration options, as they will not be automatically added

(See config.yml)

Discord https://discord.gg/dhcPSMt