Started by
Kirro_YT
on
Topic category: General discussion
I want to make a mod that makes the player cold and show the freeze overlay to the player, but I don't know how to check the player in a certain biome. Please help me to make the procedure, I would appreciate any answer.
Edited by Kirro_YT on Tue, 10/26/2021 - 07:03
player tick update global trigger
if event target entity in biome:BIOME
do (whatever)
search Biome on the procedures search bar
Ok thanks RexCerv
But it will constantly run if the player is in the biome, won't it?
How do I know when a player JUST enters a biome.
@ImNotHustled
1. Create a Player persistent logic variable. By default, it should be false.
2. Create Global update trigger.
3. Check if player is in the necessary biome.
4. Check if the variable is currently set to false.
5. If it is, set it to true, and activate your procedure.
6. Out of that "If statement", check if player is not in the necessary biome.
7. If true, set the variable to false.
@AlbertOk1234
Would it be possible to have a pic to help us understand how it works?