
Melt Individual Snow Layers
solonovamax opened this issue ยท 0 comments
Currently, fabric-seasons will cause the entire snow layer block to be melted at once, even if it is multiple layers.
Ideally, layers would instead be melted individually over the course of multiple random ticks.
So each random tick would only decrement the snow layer count by one, unless it's already at 1, in which case it will remove the block.
This would be much nicer than entirely removing the snow layer, especially when in conjunction with a mod like Stiched Snow.
So, in SnowBlockMixin.java
, all the instances of
world.removeBlock(pos, false);
would instead be replaced with something along the lines of
int layers = state.get(SnowBlock.LAYERS);
if (layers > 1) {
world.setBlockState(pos, state.with(SnowBlock.LAYERS, layers - 1));
} else {
world.removeBlock(pos, false);
}