This NeoForge mod for Minecraft 1.20.x adds a neat little particle effect to leaf blocks. Users can configure which types of leaf blocks will drop leaves and the frequency that these leaves are dropped at.
Versions until 1.20.1 require Minecraft Forge.
Original Fabric Version:
Fabric Curseforge Fabric Github
For every leaf block you can configure spawn rate, leaf type and if it is a conifer block.
This is done by modifying/creating the file assets/<modid>/fallingleaves/settings/<blockid>.json
with the following content:
{
"spawnrate": <double>,
"leaf_type": <leaftype>,
"consider_as_conifer": <boolean>
}
The leaf type supports the default values fallingleaves:default
and fallingleaves:conifer
or add a new one.
the conifer setting is only relevant if no leaf type is set or for different spawn rates for normal and conifer leaves.
If no leaf type is set, the mod checks if there is a custom leaf type with the same name as the block id. If not either fallingleaves:default
or fallingleaves:conifer
is used depending on the consider_as_conifer
value
All textures in the assets/fallingleaves/textures/particle
folder can simply be overwritten by a resource pack.
Leaf types define the textures that can be used for the leaves. By default, there are two leaf types: fallingleaves:default
and fallingleaves:conifer
.
You can create a file assets/<modid>/fallingleaves/leaftypes/<type>.json
with the following content:
{
"textures": [
"<modid>:<particle texture>",
"<modid>:<particle texture>",
"<modid>:<particle texture>",
"<modid>:<particle texture>"
]
}
The value fallingleaves:falling_leaf_1
will map to the texture assets/fallingleaves/textures/particle/falling_leaf_1.png
.
Creating the type assets/byg/fallingleaves/leaftypes/pink_cherry_leaves.json
will be automatically used for the block byg:pink_cherry_leaves
without the need to create a settings file.
This mod is licenced under LGPLv3 except the following parts:
Any texture or particle type configs dir is licensed under MIT by RandomMCSomethin
Any Java class with a licence header or referenced source is licensed under the respected license