How do I summon a boss entity once?

Started by Jean'sMods on

Topic category: Help with MCreator software

Last seen on 21:37, 4. Nov 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I summon a boss entity once?

I am currently making a Terminator mod, and I would like to spawn it once for the entire game, when I enter the world for the first time, but I can't find any info or other help! I am sorting still learning the ropes for Mcreator. 

Last seen on 16:51, 4. Feb 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could try to do this…
Sat, 10/09/2021 - 12:06

You could try to do this with variables, like make it so that if one spawns it will stop all others from spawning

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
or on GLOBAL_WORLD variable …
Sat, 10/09/2021 - 16:11

or on GLOBAL_WORLD variable (logic) and name it "spawn_condition"

your condition of spawning would be if spawn_condition = false

 do return true

return false

and on the trigger, "on initial entity spawn"

set spawn_condition = true

Last seen on 21:37, 4. Nov 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, thanks! I tried it…
Mon, 10/11/2021 - 11:10

Ok, thanks! I tried it earlier, and it didn't work, do I need to enable something else in order for it to work? Or do I just need that piece of code?

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it is 2 pieces
Mon, 10/11/2021 - 15:56

it is 2 pieces