HomeJavaModsTreeGen
This plugin contains one command that allows you to generate a forest of trees, with lots of different options.

Command usage:
/treegen <radius> [type] [space between trees (density)] [probability]

radius:
The radius in blocks that trees will be generated in. This area is a square in the x and z directions with the player in the centre. For example, radius 0 is the current block the player is on, radius 1 would be a 3x3 square, radius 2 is a 5x5 square, with the player in the centre.

type:
The tree type ID. Input -1 here for a list of the available tree types and their IDs. Default is oak. Read more on mixing tree types below.

density: This is the distance in blocks between each possible tree. As this number increases, the density decreases. Density 0 attempts to generate a tree on every block. Default is 4.

probability: A number between 0 and 1. This allows you to add randomness, or clearings, to the tree generation, so that trees are not just in a grid. Each time a tree tries to generate, the probability will be checked. Probability 1 means 100% of the time if a tree can generate it will, and 0 is 0%.

Mixing tree types:
As of version 1.2, The plugin allows you to mix tree types by separating them with commas.
Example: /treegen 20 0,4 will generate oak and birch trees in the ratio 1:1. 0,0,0,0,4 will generate oak and birch randomly in the ratio 4:1. Instead of doing 0,0,0,0,4 you can do 0*4,4 which gives the same ratio. So to generate big jungle, small jungle and jungle bushes in the ratio 1:3:7, you would use 5,6*3,8*7 as the type.

Permissions:
There is one permission node, treegen.use, which defaults to OPs only.

Configuration:
This plugin can integrate with the plugin CoreProtect to log tree generation for the person who executed the command.
Code (Text):
max-radius: 64
default:
  radius: 20
  density: 4
  probability: 1
allow-replace:
  - sapling
#Log all tree generations in CoreProtect for the player that executed the command
#When integrating with CoreProtect, there may be a bug where trees don't generate. Enable needs-manual-updating if that is the case.
integrate-with-coreprotect: false
needs-manual-updating: false

#stops check at this height and below. It's not used when player-height is enabled
terminate-at-height: 40

#allow the generator to continue to search for grass and dirt blocks upon encountering another block
#helps combat tall grass and flowers, though could spawn trees inside houses with grass or dirt floors
pass-through-blocks: true

#when enabled, only blocks within this height range of the player will be checked
player-height:
  enabled: false
  plus: 50
  minus: 50
Planned features:

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

TreeGen is a free Minecraft Java mod. Compatible with Minecraft 1.12. Downloaded 217 times (via Spigot). Download it and open it directly in the game.

Explore more