Not Attacking Specific Effects (SOLVED)

Started by DeathD84 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Not Attacking Specific Effects (SOLVED)
Sun, 04/23/2023 - 22:28 (edited)

So in my mod, I wish to make it so that if a player has a certain effect/global variable, the mob will not attack them, but attack any other player who does not have that effect/global variable.

Edited by DeathD84 on Sun, 04/23/2023 - 22:28
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1.global variable is for a…
Sat, 06/06/2020 - 05:04

1.global variable is for a map not a player,nbt instead

2.i don't know how to test effects in procedures

3.ai target not changable with procedures now.

4.coding plugins?

5.some ai bses make the mob attack player with "glowing" effect.

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
global variable is recquired…
Sat, 09/19/2020 - 00:55

global variable is recquired for what im using, to keep the effects after death

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its doable if the mob in…
Sun, 09/20/2020 - 04:55

its doable if the mob in question is your custom mob. very complicated if its vanilla or from other mods

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
very late response, but yeah…
Thu, 12/10/2020 - 02:04

very late response, but yeah, it'd be a custom mob. so i have vampires and magic users, if youre a vampire (which is given with an effect) i want the vampire mobs to not attack, but the magic user mobs to attack instead, and vise versa, yknow

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
are you into coding? because…
Thu, 12/10/2020 - 02:31

are you into coding? because what you're trying to do requires modifying the mcreator generated code