Jump to content

Too much mob generation, help me look at this code


ryan_zhou

Recommended Posts

Too much mob generation, include villager, skeleton, zombie,creeper, and villager register by mod.  My server is Forge1.12.2, Sponge7.1.5

Is there any problem if I register a villager like this? Other than here, I can't think what the problem is.

```

@SubscribeEvent
public void registerModel(RegistryEvent.Register<EntityEntry> event) {
   // event.getRegistry().register();
   List<Biome> values = ForgeRegistries.BIOMES.getValues();
   EntityRegistry.addSpawn(EntityVillager2.class, 1, 1, 1, EnumCreatureType.CREATURE, values.toArray(new Biome[values.size()]));
}

```

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.