Effect check passes even if entity doesnt have the effect

Started by HDD on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Effect check passes even if entity doesnt have the effect

A part of my mod is meant to give you a status effect if you have a variable and the poison status effect however if its set to check for the amplifier 0 then it always happens, even if the entity doesnt have posion, however if the amplifier to check is 1 then it only works if they have posion II it wont work for posion I any idea how to fix it

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The image doesnt seem to be…
Sun, 03/22/2026 - 14:44

The image doesnt seem to be working so ill try to send the link to it\

https://imgur.com/a/X4gVL8t

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe try checking if they…
Sun, 03/22/2026 - 15:03

Maybe try checking if they HAVE the effect instead of checking for the effect's amplifier?

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes thanks, I didnt see the…
Sun, 03/22/2026 - 19:35

Yes thanks, I didnt see the block until now :/