TheDeathlyCow / scorchful

A heat mod for Minecraft Fabric and Quilt. Sister mod to Frostiful.
GNU Lesser General Public License v3.0
5 stars 1 forks source link

Desert Visions #69

Closed TheDeathlyCow closed 2 months ago

TheDeathlyCow commented 2 months ago

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.