Does the event/target entity block focus on the mob you are coding, or the entity it is targeting?

Started by SimpleGingers on

Topic category: Help with MCreator software

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Does the event/target entity block focus on the mob you are coding, or the entity it is targeting?

Also, how would I say, make a custom monster, say, every 3 seconds have a 1 in 10 chance of summoning lightning on who its attacking/ a player? Because I am trying and I cannot find how. Mainly I am stuck on how to even find a block which describes the entity it is attacking

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Which entity is which…
Sat, 10/24/2020 - 11:05

Which entity is which depends on the trigger being used, so I would suggest sending a chat message with both entities like this:

https://drive.google.com/file/d/1qnFOiQ4jw6Yqe-f90Ct8MvyBB0LZz7kv/view?usp=sharing

Then you just need to trigger the event in game and you should be able to figure out which is the source entity and which is the target entity. Unfortunately, I am not sure how to do the lightning attack thing.

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm trying to make it so…
Thu, 03/03/2022 - 21:30

I'm trying to make it so that when a projectile hits an entity, the entity that was hit will receive slowness. How do I specify the hit target? An image of the blocks would be appreciated