One Time Mob

Started by RRTropical on

Topic category: Help with modding (Java Edition)

Last seen on 21:57, 28. Nov 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
One Time Mob

I wanna make a boos mob that only spawns once. Like literally only 1 mob, like the wonder dragon there’s only 1 ender  dragon unless u re summon it, but that’s beside the point I want a boss that spawns once and after you kill it, that’s it. No more of that mob

Last seen on 16:31, 21. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can add one global…
Mon, 07/26/2021 - 23:03

You can add one global variable boolean, make this var start in false, and when the player summon the boss check if this variable is true, make the boss despawn, else the boss can be stayed in the world, when the mob die make this variable true.

 

You need to make the variable global with scope "Global_map".

asd

and you need to check this variable in the next trigger

asd