How do I get a procedure to run when a player changes biome?

Started by Instant Veemo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I get a procedure to run when a player changes biome?

I'm making a mod that tells you were you are when you change biome. But I can I get a procedure to run when a player changes biome?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
my guess is that you would…
Mon, 07/24/2023 - 12:12

my guess is that you would need to use the player update tick global trigger, store the biome a player is currently in as a global variable somehow, and check if the biome is not the same one as before.

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have done that about an…
Mon, 07/24/2023 - 12:48

I have done that about an hour after doing this post. Hard to do but does work.