Disable vanilla mob spawning

Started by camgampp on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 years ago
Joined Nov 2019
Points:
662

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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.

Active 5 years ago
Joined Nov 2019
Points:
662

User statistics:

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

I'm on 2020.1 by the way

Active 10 months ago
Joined Jun 2019
Points:
2602

User statistics:

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

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

despawn provided entity

Active 4 years ago
Joined Jan 2020
Points:
799

User statistics:

  • Modifications: 1
  • Forum topics: 21
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 77
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.