How do I give a player effect while he is in a certainly dimension

Started by pedrolanza on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I give a player effect while he is in a certainly dimension

I'm creating a mod that add a new dimension, but I want the play get a weakness effect when he is at the dimension, how I do that?

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This should work,
Wed, 10/09/2024 - 08:28

This should work,

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
By using the global trigger…
Wed, 10/09/2024 - 08:40

By using the global trigger On player tick update, you can actively check the player every tick for if they're in your custom dimension, and then apply the potion effect, as shows in the image below:

https://imgur.com/a/wIRwb1z

 

hope this helps!