How do I make a single mob spawn?

Started by RandomMods846 on

Topic category: Help with modding (Java Edition)

Last seen on 22:48, 12. Jan 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a single mob spawn?

So I am trying to make a herobrine mod, but I don't want like 3 Herobrines after you, but if I set spawn chances low he pratically never appears, what do I do?

Last seen on 16:22, 4. Mar 2023
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You should be able to tweak…
Sun, 02/26/2023 - 17:09

You should be able to tweak the spawn weight to a good level, but it sounds like your spawn group max is too high. Set both the min and max entities in your spawn group to 1 in the 'spawning' tab.

 

Last seen on 22:48, 12. Jan 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did but there is a issue…
Mon, 03/13/2023 - 19:19

I did but there is a issue you can still see more than one of them

Last seen on 00:04, 29. Mar 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a global logic…
Wed, 04/05/2023 - 22:11

Create a global logic variable to track when herobrine spawns in.  When herobrine spawns set the variable to true, then use the wait (number) ticks then do on server side block to waite a long time before using the despawn event/target entity and setting the variable to false.  Also add in a custom spawn condition so that herobrine can only spawn if the variable if false, something like:  

If is light at x y z less than 7 and variable = false

        do  Return true

Return false

Last seen on 00:04, 29. Mar 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
A side effect of this is…
Wed, 04/05/2023 - 22:15

A side effect of this is that herobrine will randomly disappear, but I hope that that is not too bad.

 

 

Last seen on 22:48, 12. Jan 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Welp Its a good idea!
Wed, 07/05/2023 - 13:57

Welp Its a good idea!