When a procedure call itself, why is a source entity added to the require dependencies?

Started by teambaklidamae on

Topic category: Help with modding (Java Edition)

Last seen on 17:46, 25. Jan 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When a procedure call itself, why is a source entity added to the require dependencies?

 

my code

When the procedure is not being called, the source entity does not exist in the require dependencies.
 

my code2

When calling it, a source entity that did not exist anywhere gets added to the require dependencies. Why does this happen, and how can it be resolved?

I plan to use this as a potion expired effect, so I need to remove the source entity from require dependencies.