How to check with a command if a player is wearing an effect from a mod?

Started by stelmint on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check with a command if a player is wearing an effect from a mod?

What id should i enter in this command. if my effect is added by mods ?
/execute as @a[nbt={ActiveEffects:[{id:1}]}] run say 123 

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
/execute as @a[nbt=…
Sat, 06/17/2023 - 15:47

/execute as @a[nbt={ActiveEffects:[{"forge:id":"modname:effectname"}]}] run say has effect