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

Started by stelmint on

Topic category: Help with modding (Java Edition)

Last seen on 21:08, 15. Dec 2023
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 

Last seen on 18:00, 16. Jul 2023
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