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

Started by SimpleGingers on Thu, 10/22/2020 - 13:06

Topic category: Help with MCreator software

Last seen on 14:16, 29. Oct 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Does the event/target entity block focus on the mob you are coding, or the entity it is targeting?
Thu, 10/22/2020 - 13:06

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

Last seen on 11:10, 23. Nov 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.