Check if player in a biome?

Started by Kirro_YT on

Topic category: General discussion

Active 2 years ago
Joined Feb 2021
Points:
564

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
Check if player in a biome?
Tue, 10/26/2021 - 07:03 (edited)

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
Active 8 months ago
Joined Oct 2020
Points:
1590

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
player tick update global…
Tue, 10/26/2021 - 15:27

player tick update global trigger

if event target entity in biome:BIOME

do (whatever)

Active 8 months ago
Joined Oct 2020
Points:
1590

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
search Biome on the…
Tue, 10/26/2021 - 15:27

search Biome on the procedures search bar

Active 2 years ago
Joined Feb 2021
Points:
564

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
Ok thanks RexCerv
Wed, 10/27/2021 - 01:28

Ok thanks RexCerv

Active 1 year ago
Joined Jul 2023
Points:
138

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
But it will constantly run…
Wed, 08/02/2023 - 08:51

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.

Active 3 months ago
Joined Mar 2023
Points:
206

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
@ImNotHustled1. Create a…
Mon, 12/18/2023 - 19:29

@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.

Active 8 months ago
Joined Apr 2023
Points:
204

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 14
@AlbertOk1234 Would it be…
Sun, 01/07/2024 - 10:59

@AlbertOk1234

Would it be possible to have a pic to help us understand how it works?