Olafski / FastLeafDecay

Minecraft mod that provides faster leaf decay.
20 stars 6 forks source link

ChunkByChunk compatibility request: Disable decay for leaves close to bedrock chunks #61

Open xFirefalconx opened 1 year ago

xFirefalconx commented 1 year ago

Hi! I love using this mod. However, I ran into an issue. Due to the nature of the mod chunk by chunk, there are forests that are loaded chunk by chunk. This also means that for minutes, hours, weeks, ... there are chunks with floating leaves that actually belong to trees that are yet to be loaded into the chunk by chunk dimension. The leaf decay doesn't know and removes leaves, leaving vanilla (non dynamic) trees look ugly and also mods like croptopia lose their fruit leaves, which is unfortunate because it's difficult to obtain many of them at one tree without replacing blocks via command.

Now there are in theory three ways to solve this

a) have a config to instead speed up entirely disable decay globally b) recognize trees from the overworld dimension (chunk by chunk is on an other dimension, you don't use overworld actively) and disable decay on chunkload (which... is something that possibly the chunk by chunk dev might think about) c) only enable decay on trees that are player grown? not sure.

What I definitely could see as a config option for Fast Leaf Decay would be a checkbox for a certain world to temporarily deactivate decay entirely. I could always activate it again and see its magic, but I have not much control over global decay usually, especially with modded blocks. I already put the number for decay from 9990 to 9999 but... it still keeps happening, it's no foolproof way. I looked but at least for 1.18.2 there is no "no leaf decay" mod or the sort. I am no mod writer. Do you think it's possible to make such a thing work? I'll also ask the Chunk by Chunk dev, of course, but maybe somebody else would be happy about such an option.