Implements a new hallucination feature when the player is suffering from heat stroke. Visions only appear in Desert and Badlands biomes, except for the Husk vision which only appears in Deserts. Visions are chosen based on a weighted random distribution as follows:
Husk (6)
Oak Boat (6)
Poppy (3)
Blue Orchid (3)
Salmon (2)
Cod (2)
Squid (2)
Desert Well Visions were intended to be added, but currently implementing them is not very feasible. I will investigate using Flywheel for this when it updates to 1.21.
Currently, all visions are implemented as statue-like entities that are controlled by a component. These entities are never saved and will only render for the player that caused them to appear. If their causing player approaches them, then a dust cloud and sound effect will be emitted to all players. If the entities are not approached within 30 seconds, they will discard themselves.
A data-driven approach may also be investigated in the future, to replace the current static registry.
Resolves #49
Implements a new hallucination feature when the player is suffering from heat stroke. Visions only appear in Desert and Badlands biomes, except for the Husk vision which only appears in Deserts. Visions are chosen based on a weighted random distribution as follows:
Desert Well Visions were intended to be added, but currently implementing them is not very feasible. I will investigate using Flywheel for this when it updates to 1.21.
Currently, all visions are implemented as statue-like entities that are controlled by a component. These entities are never saved and will only render for the player that caused them to appear. If their causing player approaches them, then a dust cloud and sound effect will be emitted to all players. If the entities are not approached within 30 seconds, they will discard themselves.
A data-driven approach may also be investigated in the future, to replace the current static registry.