Custom attacks/procedures won't aggro mobs?

Started by UndeadGmrDad on

Topic category: Help with modding (Java Edition)

Last seen on 01:58, 4. Feb 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom attacks/procedures won't aggro mobs?

Hey mcreator community! I'm new to modding and have been working hard on developing a magic mod. It is going fairly well, but my question is, how do i make my procedures aggro mobs?

For example, my one spell fires a custom projectile in which I created myself, but if it collides with say an Iron Golem, the iron golem ignores the fact that I had attacked it, when it should be angry and chase me down. What procedure block initiates the mob aggro procedure? The same happens when I cast a spell on a pigmen. They should all want to kill me, but i can run around and kill them without them ever noticing me.

Last seen on 01:58, 4. Feb 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
After testing further, my…
Sat, 03/05/2022 - 00:40

After testing further, my Projectile spells seem to aggro just fine, but my AOE spells do not. they use the entity iterator block procedure, essentially, if not entity iterator = event/target entity, do deal * damage to entity iterator. but it doesnt aggro mobs like zombified piglins