What are all the types of entities

Started by Ch336ico on

Topic category: Help with modding (Java Edition)

Last seen on 22:24, 31. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What are all the types of entities
Can someone give a simple explanation of what are all the types of entities, for exemple, what is the event/target entity or what are source entities


 

Last seen on 15:36, 5. Aug 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This page has a lot of links…
Sat, 07/06/2024 - 14:59

This page has a lot of links that can help: https://mcreator.net/forum/80817/explanations-eventtarget-entity-source-entity-immediate-source-entity-entity-iterator

A event entity is the entity a event is happening on in the procedure.

Target entity is the entity being targeted in the procedure.

source entity is the entity causing the procedure.

immediate source entity is the entity performing the procedure.

Hope I helped! -PixelKid

Last seen on 22:24, 31. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Tysm, it really helped, I…
Sat, 07/06/2024 - 15:06

Tysm, it really helped, I just have one question, how to separate event entity and target entity, because both are in the same block

Last seen on 15:36, 5. Aug 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The event/target entity is…
Sat, 07/06/2024 - 16:47

The event/target entity is one block because mcreator treats them as the same thing. So it is not possible to separate them without a plugin. I'll put it this way:

source entity shoots a bow, and the event/target gets hit/affected by the arrow.

Hope I helped! -PixelKid

Last seen on 22:24, 31. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alr, tysm! Now I understand
Sun, 07/07/2024 - 06:16

Alr, tysm! Now I understand

Last seen on 22:24, 31. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is all the point of…
Mon, 07/08/2024 - 14:10

This is all the point of view of the procedure right? for example, if is a procedure of a mob attacking a player in this mob, the source entity will be the mob and the target entity will be the player

Last seen on 15:36, 5. Aug 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You are correct. Sometimes…
Mon, 07/08/2024 - 14:51

You are correct.

Sometimes the source entity and target entity can be both at once. This happens when the player calls the procedure and is also affected by it. Example:

Player eats food and then gets hunger bar filled up.

In this, the player activated the procedure and it changed it.

I know this can sometimes be confusing,because it is all point of view.

Hope I helped! -PixelKid