One Time Mob

Started by RRTropical on Mon, 07/26/2021 - 20:35

Topic category: Help with modding (Java Edition)

Last seen on 01:31, 17. Sep 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
One Time Mob
Mon, 07/26/2021 - 20:35

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:
  • Tracker tickets:
  • 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