Spiders Produce Webs (Legacy Fabric) - Spiders Produce Webs
This minimalist mod adds realistic behavior to spiders in Minecraft. Now regular spiders and cave spiders can periodically create cobwebs when a player is nearby. The mod requires installation of the Collective (Fabric) library and Fabric API.
Important limitation: spiders can only produce webs while standing on an air block, making the process more realistic and limiting excessive web spread in the world.
Configurable Parameters
The mod offers a flexible configuration system through a config file:
maxDistanceToSpiderBlocks (default 32, minimum 1, maximum 256) - determines the maximum distance in blocks at which a player must be from a spider for it to start producing webs.
spiderWebProduceDelayTicks (default 12000, minimum 1, maximum 72000) - sets the delay between web creation in ticks (1 second = 20 ticks).
Demonstration
Here's how the effect looks in action with a reduced delay of 40 ticks (normally this is too fast):

Historical Background
Interesting fact: this feature was originally planned by Notch on October 23, 2009, but was never implemented in the original game:

This version is intended for Fabric 1.16 and 1.17. For newer Fabric versions (1.18+) and Forge, the main project version is available.