Configuration

SproutGarden Configuration

This config file allows you to customise and control all aspects of the SproutGarden plugin. Modify the settings to tailor the plugin's behavior to your needs. Whenever you make changes, be sure to reload the configuration in-game using the /sproutgarden reload command to apply your adjustments without restarting the server. Place all schematics in plugins/SproutGarden/schematics

schematics:
  minecraft:
    OAK:
      - SproutGarden_oak_1.schem
      - SproutGarden_oak_2.schem
    BIRCH:
      - SproutGarden_birch_1.schem
    CHERRY:
      - SproutGarden_cherry_1.schem
    SPRUCE: []
  itemsadder:
    namespace:example_sapling:
      - SproutGarden_IAexample_1.schem
    

settings:
  enabled-worlds:
    - world
    - world_nether
    - world_the_end
  place-at-sapling: true
  ignore_air_blocks: true
  random-rotation: true
  block-updates: false
  enforce-decay: false
  destructive-growth: false
  
  debug: false

Schematics Section

In the schematics section there are two sub-settings, minecraft and itemsadder. Where you can list the schematic files you want associated with the different tree types. Both work similarly, but minecraft controls all default minecraft trees and itemsadder controls any custom saplings you might have loaded. minecraft : . All TreeTypes are available. itemsadder : Itemsadder saplings are defined by putting the itemsadder namespace ID, followed by the schematics you want. These saplings will be able to be grown with bonemeal, or grow naturally. The itemsAdder block you use MUST be REAL_WIRE . Shown below:

example_sapling:
    display_name: "Example sapling"
    resource:
      generate: false
      material: PAPER
      model_path: example_sapling
    specific_properties:
      block:
        placed_model:
          type: REAL_WIRE
        cancel_drop: true
        sound:
          place:
            name: block.azalea.place
          break:
            name: block.azalea.break

Currently, ItemsAdder does not support blocks with leaf decay but this is a feature I will be adding soon.

Configuration Settings Explained

  • enabled-worlds: Specifies which game worlds the plugin is active in. Adding the name of a world to this list means the plugin functions in that world. An empty list ([]) will disable the plugin entirely.

  • place-at-sapling: If set to true, the plugin will automatically center schematics over a sapling. This involves calculation of the trunk, and schematics will be centered based on the trunk location.

  • ignore_air_blocks: If set to true, air blocks in schematics are not placed.

  • random-rotation: If set to true, enables random rotations of schematics to add variety.

  • block-updates: If set to false, disables block updates when placing a schematic. Useful if your trees contain blocks like floating flowers or torches.

  • enforce-decay: If set to true, all leaves in a schematic will be set to persistent=false, and distance=7. This allows for vanilla-like leaf decay and is useful if you forgot to set this when creating your schematics.

  • destructive-growth: If set to false, schematics will only replace air - not existing blocks.

  • debug: Enables debug mode when set to true, allowing for more detailed plugin logging which aids in troubleshooting.

Last updated