Plant Config File
A plant config file (.json) is a file that Greenery uses to register and configure a plant.
Properties
maxAgeThe max age of this plant. (The max age is the state in which the plant stops growing.)
Type:
IntThe default value depends on the plant type.
canGrowWhether this plant can grow on the random tick.
Type:
BooleanDefault:
trueworldGenThe world generation options of this plant.
Type:
List<String>The default values is an empty list.
dropsThe drops of this plant.
Type:
List<String>The default values is an empty list.
allowedSoilsThe allowed soils of this plant.
Currently only accepts material names:
air,grass,ground,wood,rock,iron,anvil,water,lava,leaves,plants,vine,sponge,cloth,fire,sand,circuits,carpet,glass,redstone_light,tnt,coral,ice,packed_ice,snow,crafted_snow,cactus,clay,gourd,dragon_egg,portal,cake,web,piston,barrier,structure_voidType:
List<String>The default value depends on the plant type.
compatibleFluidsThe compatible fluids of this plant.
Type:
List<String>The default values is an empty list.
hasTintIndexWhether this plant uses the biomes' grass color tint index.
Type:
BooleanDefault:
falsehasOffsetWhether this plant has a slight y level offset. (Like Vanilla grass blocks.)
Type:
BooleanDefault:
trueisSolidWhether this plant is solid or not.
Type:
BooleanDefault:
falseisHarmfulWhether this plant is harmful (or prickly) or not.
Type:
BooleanDefault:
false
Example
For example, we will create a config file in the floating subdirectory named example_plant.json to create a lily pad which will generate only in wet, swamp or lush biome dictionary types.