Started by
Ch336ico
on
Topic category: Help with Minecraft modding (Java Edition)
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
Topic category: Help with Minecraft modding (Java Edition)
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
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
Tysm, it really helped, I just have one question, how to separate event entity and target entity, because both are in the same block
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
Alr, tysm! Now I understand
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
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