Procedure Running Twice ( Entity Spawn )

Started by xhytenzhi on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure Running Twice ( Entity Spawn )
Tue, 03/31/2026 - 14:36 (edited)

Hello,

iam starting a procedure to set-up specific attributes.
 

I have created a trigger with "entity spawns". It is the only trigger wich "reacts" to this event.
but:

For some reason, the game is calling this trigger twice for a single entity, every time one is spawning, automaticly or manual. Actually i dont have an issue, but i think it will lack some performance in the future, because iam working on a really large mod.

i just saw this randomly, when i created a log output, and the log is always shown twice. The red line separates the first and second call of the trigger by 1 spawned entity. i created the logs to for checking, these are no errors 

Edited by xhytenzhi on Tue, 03/31/2026 - 14:36
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Because it is on two threads…
Thu, 04/09/2026 - 19:26

Because it is on two threads, one on server and one on render.