identify the attacking mob

Started by Way2Rushed on

Topic category: Help with MCreator software

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
identify the attacking mob

I need to identify the mob when it attacks the player, so far it can identify the player but not the attacking mob.

 I am using the entity attacked procedure.

and I can't find a "is mob" block or something and i can't think of something else I can use.

 

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For the "entity attacked"…
Sat, 09/23/2023 - 15:08

For the "entity attacked" trigger, your (event/target entity) would be the entity that is hurt/being attacked. You can use (source entity) to get the entity that is causing the trigger/attacking the other entity. These blocks should be located under the "Minecraft components" in a procedure

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know about source entity…
Sat, 09/23/2023 - 17:57

I know about source entity block, but what I need is something that will identify the mob.

like a "source entity = cow" or something.

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, I found a block, " Is…
Sat, 09/23/2023 - 18:05

Oh, I found a block, " Is source entity (sub)type"

 

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To determine the exact…
Sat, 09/23/2023 - 18:30

To determine the exact entity type there is a block under the "logic" tab that says something like "is (event/target entity) of type [drop down menue]"

You can change out event/target entity for source entity