Disable vanilla mob spawning

Started by camgampp on

Topic category: Help with modding (Java Edition)

Last seen on 19:18, 21. Aug 2020
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Disable vanilla mob spawning

I'm trying to create a mod that disables all vanilla monsters from spawning. I created a procedure that checks when an entity is spawned, and if it's a monster, de-spawns it. But this procedure drastically reduces the performance of the game. (I'm creating a mod that spawns in hordes of a custom mob instead of vanilla mobs).

I know some Java if scripting is required, but I don't know how to edit vanilla entities.

Last seen on 19:18, 21. Aug 2020
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm on 2020.1 by the way
Sat, 03/28/2020 - 02:28

I'm on 2020.1 by the way

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on initial enitity spawn…
Sat, 03/28/2020 - 03:56

on initial enitity spawn global trigger -> if provided entity = ()

despawn provided entity

Last seen on 17:02, 24. Jan 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Isn't that the same thing? I…
Sat, 03/28/2020 - 20:52

Isn't that the same thing?

I'm using the same procedure, on entity spawn checks for each mob and despawns it.

It works but messes up all the spawn rates since mobs technically still spawn and are then removed. I had to create spawners to do the job instead. I made a copy of deadbushes to randomly spawn my mobs since the bushes are found in most biomes.