How to find what potion effect an entity has

Started by BitterDoes on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Nov 2023
Points:
144

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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 :(

Active 6 months ago
Joined Dec 2019
Points:
685

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 54
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)
 

Active 6 months ago
Joined Oct 2023
Points:
302

User statistics:

  • Modifications: 1
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 274
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

Active 1 year ago
Joined Nov 2023
Points:
144

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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

Active 1 year ago
Joined Nov 2023
Points:
144

User statistics:

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

please help :(