Skip to content

Tree Simulator Recipes

The Tree Simulator uses custom tree_simulator recipes to determine what a sapling produces and how long it takes to grow.

Auto-Generation

By default, a Tree Simulator recipe is automatically generated for every registered resource sapling. You do not need to create these files unless you want to customize the outputs.

The auto-generated recipe produces:

OutputChanceMin RollsMax Rolls
Log (matching tree type)30%11
Leaf Fragment100%11
Leaf Fragment (bonus)leafDropChance × 0.514
Sapling (same type)saplingDropChance11

Custom Recipe Format

To override the recipe for a specific sapling, place a JSON file at:

data/resourcestrees/recipe/tree_simulator/<sapling_name>.json

For example, to customize the iron_oak_sapling recipe:

data/resourcestrees/recipe/tree_simulator/iron_oak_sapling.json

JSON Format

json
{
  "type": "resourcestrees:tree_simulator",
  "tree": {
    "id": "resourcestrees:iron_oak_sapling",
    "count": 1
  },
  "ticksToGrow": 1200,
  "drops": [
    {
      "output": {
        "id": "minecraft:iron_ingot",
        "count": 1
      },
      "chance": 0.5,
      "minRolls": 1,
      "maxRolls": 3
    },
    {
      "output": {
        "id": "resourcestrees:iron_leaf_fragment",
        "count": 1
      },
      "chance": 1.0,
      "minRolls": 1,
      "maxRolls": 1
    }
  ]
}

Fields

FieldDescription
typeAlways "resourcestrees:tree_simulator"
treeThe sapling item this recipe applies to (matched by item + components)
ticksToGrowBase ticks per cycle (before axe multiplier). Lower = faster.
dropsList of output entries (see below)

Drop Entry Fields

FieldDescription
outputThe item to produce (uses ItemStackTemplate format: id + optional count and components)
chanceProbability (0.0–1.0) this drop occurs per roll
minRollsMinimum number of times to attempt this drop per harvest
maxRollsMaximum number of times to attempt this drop per harvest

The actual rolls per harvest = random.nextInt(maxRolls - minRolls + 1) + minRolls.

Viewing Recipes In-Game

If JEI is installed, Tree Simulator recipes are visible in the Tree Simulator recipe category. Click the Tree Simulator block in JEI to browse all recipes.

Released under the All Rights Reserved License.