How to find what potion effect an entity has

Started by BitterDoes on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to find what potion effect an entity has

I'm trying to make an enchantment for weapons so that if you have any potion effect that it will give it to an entity that you have hit, but i've looked through the forum and other sites and found nothing of interest what's done so far please help :(

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Idk if i understand it right…
Fri, 12/01/2023 - 11:39

Idk if i understand it right but : here is the result that you want(i think)
 

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do: if player has effect…
Fri, 12/01/2023 - 12:18

Do: if player has effect blindness, give entity blindness

replace blindness with what you want

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nono i need to have any…
Sat, 12/02/2023 - 02:32

nono i need to have any potion effect given to the entity like it checks if it has blindness and when you hit the entity it gets it, and so forth with each effect, i could check for every effect in the game but that's really unoptimized and tedious

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
please help :(  
Sat, 12/02/2023 - 22:25

please help :(