i dont want a mob hitting my shield and giving me an effect

Started by crowinsanity13 on

Topic category: Help with modding (Java Edition)

Last seen on 19:33, 16. Apr 2023
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i dont want a mob hitting my shield and giving me an effect

i have a mob called a ghost parasite that when it gets hit, it turns invisible and gets faster, but when it hits you, you start to levitate, sad part is, when it hits my shield or i take fall damage near it, it makes me levitate again, which sucks and its annoying can someone help me out with this? what am i doing wrong? (i changed the cube size to 1, but idk if it works ill test it out later)heres the code

Last seen on 06:33, 1. May 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
there is a "source entity…
Fri, 08/06/2021 - 04:22

there is a "source entity dependency".Use this instead of detecting entity nearby.

Last seen on 19:33, 16. Apr 2023
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
now whenever i attack the…
Sat, 08/14/2021 - 19:47

now whenever i attack the parasite, it makes me levitate, and when it attacks me, it turns invisible, so its the opposite of what i wanted, ill just reverse the order? idk