The Stalker - TroupeMaster/TheDeepVoid GitHub Wiki

Introduction
The Stalker is the most complex mob in the Deep Void. It serves as a punishment for the Player if they stay in darkness for an extended period of time, a bit like the Warden, but for darkness instead of vibrations.
Darkness
When in an area with a light level of 0, the Stalker Spawn Timer will go up for each Player that isn't in light. After exactly 1 minute (which can be changed in the configs), the Stalker will spawn (which can be removed entirely in the configs) somewhere around the Player in a random direction with a random distance.
When in darkness, the Player will hear a Warden's heartbeat, indicating how close the Stalker is. The first heartbeat appears at 40% of the Spawn Timer and a second at 75% of the Spawn Timer. When at 92% of the Timer, a red text saying ''Seek Light'' will appear on screen, right before the Stalker shows up, giving a chance for Player to avoid the encounter. This text only shows up once and can be removed in the configs. Another of knowing if the Stalker will show up is by seeing if darkness is creeping around the edges of the screen. This will happen if the Player is in a light level of 0.
In Light
In light, the Player's Stalker Spawn Timer will go down by 4 every tick.
The Stalker
When the Stalker appears, the targeted Player will be given the Call Of The Void effect for 21 seconds, which will make the Stalker dig to that Player when the effect ends. All Players nearby will be given the Darkness effect and will be able to hear a heartbeat followed by the sounds of souls, which indicates that the Stalker is somewhere nearby.
The Stalker is afraid of light (light entities) and will run away from them. Do note that it will try to get some hits in before fleeing away. It is recommended to place a lot of torches around yourself to make sure it doesn't get those hits in. You can also build up a few blocks to be sure, but keep in mind that the Stalker can jump when attacked if the Player is not too high up on their pillar.
The Stalker can also break doors, trapdoors, fences, fence gates, walls and leaves, so it cannot be trapped by those methods. This ability can be removed in the configs.
When alive, no other Stalkers can spawn and the Stalker Spawn Timer won't go up. When the Stalker is killed, the Spawn Timer will reset.

Stalker Treat
A Stalker Treat can be used to lower the Spawn Timer when right clicked. If the Stalker already spawned, the Stalker Treat can be thrown away from you by shift right clicking, which will make the Stalker go to where the Treat landed and will distract it for a few seconds. Stalker Treats can be crafted or found in chests in structures.


Rotten Flare Gun
The Rotten Flare Gun can be shot at the Stalker to slow it down temporarily.